

Doc AWS SDK Examples GitHub リポジトリには、他にも SDK の例があります。 [AWS](https://github.com/awsdocs/aws-doc-sdk-examples)

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# CLI で `StartPipelineExecution` を使用する
<a name="codepipeline_example_codepipeline_StartPipelineExecution_section"></a>

次のサンプルコードは、`StartPipelineExecution` を使用する方法を説明しています。

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

**AWS CLI**  
**パイプラインを介して最新のリビジョンを実行するには**  
この例では、「MyFirstPipeline」という名前のパイプラインを介して、パイプラインのソースステージに存在する最新のリビジョンを実行しています。  
コマンド:  

```
aws codepipeline start-pipeline-execution --name MyFirstPipeline
```
出力:  

```
{
  "pipelineExecutionId": "3137f7cb-7cf7-EXAMPLE"
}
```
+  API の詳細については、「*AWS CLI コマンドリファレンス*」の「[StartPipelineExecution](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codepipeline/start-pipeline-execution.html)」を参照してください。

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

**Tools for PowerShell V4**  
**例 1: この例では、指定されたパイプラインの実行を開始します。**  

```
Start-CPPipelineExecution -Name CodePipelineDemo
```
+  API の詳細については、「*AWS Tools for PowerShell コマンドレットリファレンス (V4)*」の「[StartPipelineExecution](https://docs.aws.amazon.com/powershell/v4/reference)」を参照してください。

**Tools for PowerShell V5**  
**例 1: この例では、指定されたパイプラインの実行を開始します。**  

```
Start-CPPipelineExecution -Name CodePipelineDemo
```
+  API の詳細については、「*AWS Tools for PowerShell コマンドレットリファレンス (V5)*」の「[StartPipelineExecution](https://docs.aws.amazon.com/powershell/v5/reference)」を参照してください。

------