Newer Version Available
Cancel a Metadata Deployment
You can cancel a metadata deployment from the CLI and specify a wait time for the command
to complete.
To cancel your most recent deployment, run force:source:deploy:cancel. You can cancel earlier deployments by adding the -i (JOBID) parameter to specify the deployment that you want to cancel.
The default wait time for the cancel command to complete and display its results in the terminal window is 33 minutes. If the command isn’t completed by the end of the wait period, the CLI returns control of the terminal window to you. You can adjust the wait time as needed by specifying the number of minutes in the -w (WAIT) parameter, as shown in the following example:
Curious about the status of a canceled deployment? Run a deployment report.