Deploy through a Power Platform pipeline
cs_deploy_pipelineStart a pipeline deployment of a solution to a Power Platform pipeline stage; set confirm: true to apply changes, or omit it for a dry run.
Instructions
Start a pipeline deployment of a solution to a stage (the alternative to cs_deploy_solution when the tenant uses Power Platform pipelines). stageId comes from cs_list_pipelines. Runs 'pac pipeline deploy' with the active pac auth profile. Mutates a live environment: requires confirm: true (a dry run otherwise).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"solutionName": "<solutionName>",
"stageId": "<stageId>",
"currentVersion": "<currentVersion>",
"newVersion": "<newVersion>"
},
"name": "cs_deploy_pipeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for pac (for project commands: the solution project folder) | |
| wait | No | Wait until the deployment finishes | |
| confirm | No | Required to actually perform a change in a live environment. Without it the tool returns a dry run. | |
| profile | No | pac auth profile to run as: the admin account for tenant commands. Defaults to CPS_ADMIN_PROFILE for admin commands and CPS_PAC_PROFILE otherwise, then the active profile. cs_init lists the profiles. | |
| stageId | Yes | Deployment stage id (cs_list_pipelines with pipeline) | |
| background | No | Run in the background and return a jobId immediately, for a command that takes longer than the client will wait. Poll cs_job_status. | |
| newVersion | Yes | Version to deploy as | |
| environment | No | Environment id or URL; default: the environment of the active pac auth profile | |
| solutionName | Yes | Solution unique name | |
| currentVersion | Yes | Current solution version | |
| timeoutSeconds | No | Default 3600 |