

Ada lebih banyak contoh AWS SDK yang tersedia di repo Contoh [SDK AWS Doc](https://github.com/awsdocs/aws-doc-sdk-examples). GitHub 

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Gunakan `StartPipelineExecution` dengan CLI
<a name="codepipeline_example_codepipeline_StartPipelineExecution_section"></a>

Contoh kode berikut menunjukkan cara menggunakan`StartPipelineExecution`.

------
#### [ CLI ]

**AWS CLI**  
**Untuk menjalankan revisi terbaru melalui pipeline**  
Contoh ini menjalankan revisi terbaru yang ada di tahap sumber pipa melalui pipa bernama "MyFirstPipeline”.  
Perintah:  

```
aws codepipeline start-pipeline-execution --name MyFirstPipeline
```
Output:  

```
{
  "pipelineExecutionId": "3137f7cb-7cf7-EXAMPLE"
}
```
+  Untuk detail API, lihat [StartPipelineExecution](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codepipeline/start-pipeline-execution.html)di *Referensi AWS CLI Perintah*. 

------
#### [ PowerShell ]

**Alat untuk PowerShell V4**  
**Contoh 1: Contoh ini mulai menjalankan pipeline yang ditentukan.**  

```
Start-CPPipelineExecution -Name CodePipelineDemo
```
+  Untuk detail API, lihat [StartPipelineExecution](https://docs.aws.amazon.com/powershell/v4/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V4)*. 

**Alat untuk PowerShell V5**  
**Contoh 1: Contoh ini mulai menjalankan pipeline yang ditentukan.**  

```
Start-CPPipelineExecution -Name CodePipelineDemo
```
+  Untuk detail API, lihat [StartPipelineExecution](https://docs.aws.amazon.com/powershell/v5/reference)di *Referensi Alat AWS untuk PowerShell Cmdlet (V5)*. 

------