api:environments:code-switch
Switches code on this environment to a different branch or release tag.
For more help, see https://cloudapi-docs.acquia.com/ or https://dev.acquia.com/api-documentation/acquia-cloud-site-factory-api for acsf commands.
Usage
acli api:environments:code-switch [--cloud-actions CLOUD-ACTIONS] [--task-wait] [--] <environmentId> <branch>
acli api:environments:code-switch 12-d314739e-296f-11e9-b210-d663bd873d93 'my-feature-branch'
acli api:environments:code-switch myapp.dev 'my-feature-branch'
Arguments
environmentId
Required
The environment identifier. The identifier is a compound key consisting of the internal database ID of the environment and the application UUID. You may also use an environment alias or UUID.
branch
Required
The name of the branch or tag to switch to. Tags should be prefixed with "tags/".
Options
--cloud-actions
Required
An optional array of Cloud Actions.
Defaults to
[]--task-wait
Optional
Wait for this task to complete
Defaults to
false--help | -h
Optional