1 | module.exports = {
|
2 | description: 'cancel a metadata deployment',
|
3 | longDescription: 'Cancels an asynchronous metadata deployment.',
|
4 | help: `Use this command to cancel a specified asynchronous metadata deployment. You can also specify a wait time (in minutes) to check for updates to the canceled deploy status.
|
5 |
|
6 | Examples:
|
7 |
|
8 | Deploy a directory of files to the org
|
9 | $ sfdx force:mdapi:deploy -d <directory>
|
10 | Now cancel this deployment and wait two minutes
|
11 | $ sfdx force:mdapi:deploy:cancel -w 2
|
12 |
|
13 | If you have multiple deployments in progress and want to cancel a specific one, specify the job ID
|
14 | $ sfdx force:mdapi:deploy:cancel -i <jobid>
|
15 | Check the status of the cancel job
|
16 | $ sfdx force:mdapi:deploy:report`,
|
17 |
|
18 | jobId: 'job ID of the deployment you want to cancel; defaults to your most recent CLI deployment if not specified',
|
19 | jobIdLong: 'The job ID (requestId) of the deployment you want to cancel. If not specified, the default value is the ID of the most recent metadata deployment you ran using Salesforce CLI.',
|
20 |
|
21 | MissingRequiredParameter: 'A required parameter [jobid] is missing.',
|
22 | CancelFailed: 'The cancel command failed due to: %s'
|
23 | }; |
\ | No newline at end of file |