@salesforce/plugin-devops-center 0.1.0-beta.3 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/README.md +25 -22
  2. package/lib/commands/project/deploy/pipeline/quick.d.ts +23 -0
  3. package/lib/commands/project/deploy/pipeline/quick.js +45 -0
  4. package/lib/commands/project/deploy/pipeline/quick.js.map +1 -0
  5. package/lib/commands/{deploy → project/deploy}/pipeline/report.d.ts +2 -2
  6. package/lib/commands/{deploy → project/deploy}/pipeline/report.js +2 -2
  7. package/lib/commands/project/deploy/pipeline/report.js.map +1 -0
  8. package/lib/commands/{deploy → project/deploy}/pipeline/resume.d.ts +3 -3
  9. package/lib/commands/{deploy → project/deploy}/pipeline/resume.js +3 -3
  10. package/lib/commands/project/deploy/pipeline/resume.js.map +1 -0
  11. package/lib/commands/{deploy/pipeline.d.ts → project/deploy/pipeline/start.d.ts} +6 -4
  12. package/lib/commands/{deploy/pipeline.js → project/deploy/pipeline/start.js} +6 -5
  13. package/lib/commands/project/deploy/pipeline/start.js.map +1 -0
  14. package/lib/commands/project/deploy/pipeline/validate.d.ts +19 -0
  15. package/lib/commands/project/deploy/pipeline/validate.js +37 -0
  16. package/lib/commands/project/deploy/pipeline/validate.js.map +1 -0
  17. package/lib/common/base/abstractAsyncOperation.d.ts +42 -0
  18. package/lib/common/base/abstractAsyncOperation.js +94 -0
  19. package/lib/common/base/abstractAsyncOperation.js.map +1 -0
  20. package/lib/common/base/abstractPromote.d.ts +8 -16
  21. package/lib/common/base/abstractPromote.js +19 -66
  22. package/lib/common/base/abstractPromote.js.map +1 -1
  23. package/lib/common/base/abstractQuick.d.ts +59 -0
  24. package/lib/common/base/abstractQuick.js +111 -0
  25. package/lib/common/base/abstractQuick.js.map +1 -0
  26. package/lib/common/base/abstractResume.d.ts +7 -13
  27. package/lib/common/base/abstractResume.js +9 -32
  28. package/lib/common/base/abstractResume.js.map +1 -1
  29. package/lib/common/constants.d.ts +2 -1
  30. package/lib/common/constants.js +1 -0
  31. package/lib/common/constants.js.map +1 -1
  32. package/lib/common/flags/flags.d.ts +5 -0
  33. package/lib/common/flags/flags.js +14 -6
  34. package/lib/common/flags/flags.js.map +1 -1
  35. package/lib/common/index.d.ts +1 -1
  36. package/lib/common/index.js.map +1 -1
  37. package/lib/common/outputColumns.d.ts +1 -0
  38. package/lib/common/outputColumns.js +2 -1
  39. package/lib/common/outputColumns.js.map +1 -1
  40. package/lib/common/outputService/aorOutputService.js +12 -6
  41. package/lib/common/outputService/aorOutputService.js.map +1 -1
  42. package/lib/common/outputService/deployCommandOutputService.d.ts +1 -1
  43. package/lib/common/outputService/deployCommandOutputService.js +2 -2
  44. package/lib/common/outputService/deployCommandOutputService.js.map +1 -1
  45. package/lib/common/outputService/deploySummaryBuilder.d.ts +13 -1
  46. package/lib/common/outputService/deploySummaryBuilder.js +64 -12
  47. package/lib/common/outputService/deploySummaryBuilder.js.map +1 -1
  48. package/lib/common/outputService/outputServiceFactory.d.ts +11 -5
  49. package/lib/common/outputService/outputServiceFactory.js +8 -2
  50. package/lib/common/outputService/outputServiceFactory.js.map +1 -1
  51. package/lib/common/outputService/promoteOutputService.d.ts +0 -6
  52. package/lib/common/outputService/promoteOutputService.js +0 -11
  53. package/lib/common/outputService/promoteOutputService.js.map +1 -1
  54. package/lib/common/outputService/reportOutputService.js +1 -1
  55. package/lib/common/outputService/reportOutputService.js.map +1 -1
  56. package/lib/common/outputService/resumeCommandOutputService.d.ts +7 -4
  57. package/lib/common/outputService/resumeCommandOutputService.js +8 -4
  58. package/lib/common/outputService/resumeCommandOutputService.js.map +1 -1
  59. package/lib/common/outputService/resumeOutputService.d.ts +7 -0
  60. package/lib/common/outputService/resumeOutputService.js +14 -0
  61. package/lib/common/outputService/resumeOutputService.js.map +1 -1
  62. package/lib/common/selectors/deployComponentsSelector.d.ts +1 -0
  63. package/lib/common/selectors/deployComponentsSelector.js +9 -1
  64. package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
  65. package/lib/common/selectors/deployProgressSummarySelector.js +1 -1
  66. package/lib/common/selectors/deploymentResultsSelector.d.ts +19 -1
  67. package/lib/common/selectors/deploymentResultsSelector.js +29 -1
  68. package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
  69. package/lib/common/selectors/environmentSelector.d.ts +1 -1
  70. package/lib/common/selectors/environmentSelector.js +1 -1
  71. package/lib/common/selectors/pipelineStageSelector.d.ts +5 -0
  72. package/lib/common/selectors/pipelineStageSelector.js +13 -1
  73. package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
  74. package/lib/common/selectors/validateDeploySelector.d.ts +6 -0
  75. package/lib/common/selectors/validateDeploySelector.js +22 -0
  76. package/lib/common/selectors/validateDeploySelector.js.map +1 -0
  77. package/lib/common/types.d.ts +11 -5
  78. package/lib/common/types.js +0 -6
  79. package/lib/common/types.js.map +1 -1
  80. package/lib/common/utils.d.ts +7 -1
  81. package/lib/common/utils.js +19 -6
  82. package/lib/common/utils.js.map +1 -1
  83. package/lib/streamer/processors/asyncOpStream.js +2 -1
  84. package/lib/streamer/processors/asyncOpStream.js.map +1 -1
  85. package/messages/commonFlags.md +6 -6
  86. package/messages/config.md +1 -1
  87. package/messages/deploy.output.md +18 -2
  88. package/messages/project.deploy.pipeline.quick.md +45 -0
  89. package/messages/{deploy.pipeline.report.md → project.deploy.pipeline.report.md} +3 -3
  90. package/messages/{deploy.pipeline.resume.md → project.deploy.pipeline.resume.md} +1 -5
  91. package/messages/{deploy.pipeline.md → project.deploy.pipeline.start.md} +5 -1
  92. package/messages/project.deploy.pipeline.validate.md +17 -0
  93. package/messages/promoteFlags.md +4 -4
  94. package/oclif.manifest.json +296 -67
  95. package/package.json +221 -110
  96. package/schemas/{deploy-pipeline-resume.json → project-deploy-pipeline-quick.json} +3 -3
  97. package/schemas/{deploy-pipeline.json → project-deploy-pipeline-resume.json} +3 -3
  98. package/schemas/project-deploy-pipeline-start.json +25 -0
  99. package/schemas/project-deploy-pipeline-validate.json +25 -0
  100. package/lib/commands/deploy/pipeline/report.js.map +0 -1
  101. package/lib/commands/deploy/pipeline/resume.js.map +0 -1
  102. package/lib/commands/deploy/pipeline.js.map +0 -1
  103. /package/schemas/{deploy-pipeline-report.json → project-deploy-pipeline-report.json} +0 -0
@@ -1,10 +1,229 @@
1
1
  {
2
- "version": "0.1.0-beta.3",
2
+ "version": "1.0.0-beta.2",
3
3
  "commands": {
4
- "deploy:pipeline": {
5
- "id": "deploy:pipeline",
4
+ "project:deploy:pipeline:quick": {
5
+ "id": "project:deploy:pipeline:quick",
6
+ "summary": "Quickly deploy a validated deployment to an org.",
7
+ "description": "Before you run this command, first create a validated deployment with the \"sf project deploy pipeline validate\" command, which returns a job ID. Validated deployments haven't been deployed to the org yet; you deploy them with this command. Either pass the job ID to this command or use the --use-most-recent flag to use the job ID of the most recently validated deployment. For the quick deploy to succeed, the associated validated deployment must also have succeeded.\n\nExecuting this quick deploy command takes less time than a standard deploy because it skips running Apex tests. These tests were previously run as part of the validation. Validating first and then running a quick deploy is useful if the deployment to your production org take several hours and you don’t want to risk a failed deploy.\n\nThis command doesn't support source-tracking. The source you deploy overwrites the corresponding metadata in your org. This command doesn’t attempt to merge your source with the versions in your org.",
8
+ "strict": true,
9
+ "pluginName": "@salesforce/plugin-devops-center",
10
+ "pluginAlias": "@salesforce/plugin-devops-center",
11
+ "pluginType": "core",
12
+ "state": "beta",
13
+ "aliases": [],
14
+ "examples": [
15
+ "Run a quick deploy using your default Devops Center org and a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2",
16
+ "Asynchronously run a quick deploy of the most recently validated deployment using an org with alias \"my-prod-org\":\n<%= config.bin %> <%= command.id %> --async --use-most-recent --devops-center-username my-prod-org"
17
+ ],
18
+ "flags": {
19
+ "json": {
20
+ "name": "json",
21
+ "type": "boolean",
22
+ "description": "Format output as json.",
23
+ "helpGroup": "GLOBAL",
24
+ "allowNo": false
25
+ },
26
+ "async": {
27
+ "name": "async",
28
+ "type": "boolean",
29
+ "summary": "Run the command asynchronously.",
30
+ "description": "The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run \"sf project deploy pipeline resume\". To check the status of the deployment, run \"sf project deploy pipeline report\".",
31
+ "allowNo": false
32
+ },
33
+ "concise": {
34
+ "name": "concise",
35
+ "type": "boolean",
36
+ "summary": "Show concise output of the command result.",
37
+ "allowNo": false,
38
+ "exclusive": [
39
+ "verbose"
40
+ ]
41
+ },
42
+ "verbose": {
43
+ "name": "verbose",
44
+ "type": "boolean",
45
+ "summary": "Show verbose output of the command result.",
46
+ "allowNo": false
47
+ },
48
+ "wait": {
49
+ "name": "wait",
50
+ "type": "option",
51
+ "char": "w",
52
+ "summary": "Number of minutes to wait for command to complete and display results.",
53
+ "description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To check the status of the operation, run \"<%= config.bin %> <%= command.id.split(' ').slice(0, -1).join(' ') %> report\".",
54
+ "helpValue": "<minutes>",
55
+ "multiple": false,
56
+ "exclusive": [
57
+ "async"
58
+ ],
59
+ "default": {
60
+ "quantity": 33,
61
+ "unit": 0
62
+ }
63
+ },
64
+ "devops-center-username": {
65
+ "name": "devops-center-username",
66
+ "type": "option",
67
+ "char": "c",
68
+ "summary": "Username or alias of the DevOps Center org.",
69
+ "required": true,
70
+ "multiple": false
71
+ },
72
+ "job-id": {
73
+ "name": "job-id",
74
+ "type": "option",
75
+ "char": "i",
76
+ "summary": "Job ID of the validated deployment to quick deploy.",
77
+ "description": "The job ID is valid for 10 days from when you started the validation.",
78
+ "multiple": false
79
+ },
80
+ "use-most-recent": {
81
+ "name": "use-most-recent",
82
+ "type": "boolean",
83
+ "char": "r",
84
+ "summary": "Use the job ID of the most recently validated deployment.",
85
+ "description": "For performance reasons, this flag uses only job IDs that were validated in the past 3 days or less. If your most recent deployment validation was more than 3 days ago, this flag won't find the job ID.",
86
+ "allowNo": false
87
+ }
88
+ },
89
+ "args": {},
90
+ "hasDynamicHelp": true
91
+ },
92
+ "project:deploy:pipeline:report": {
93
+ "id": "project:deploy:pipeline:report",
94
+ "summary": "Check the status of a pipeline deploy operation.",
95
+ "description": "Run this command by either indicating a job ID or specifying the —use-most-recent flag to use the job ID of the most recent deploy operation.",
96
+ "strict": true,
97
+ "pluginName": "@salesforce/plugin-devops-center",
98
+ "pluginAlias": "@salesforce/plugin-devops-center",
99
+ "pluginType": "core",
100
+ "state": "beta",
101
+ "aliases": [],
102
+ "examples": [
103
+ "Check the status using a job ID:\n<%= config.bin %> <%= command.id %> --devops-center-username MyStagingSandbox --job-id 0Af0x000017yLUFCA2",
104
+ "Check the status of the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --devops-center-username MyStagingSandbox --use-most-recent"
105
+ ],
106
+ "flags": {
107
+ "json": {
108
+ "name": "json",
109
+ "type": "boolean",
110
+ "description": "Format output as json.",
111
+ "helpGroup": "GLOBAL",
112
+ "allowNo": false
113
+ },
114
+ "devops-center-username": {
115
+ "name": "devops-center-username",
116
+ "type": "option",
117
+ "char": "c",
118
+ "summary": "Username or alias of the DevOps Center org.",
119
+ "required": true,
120
+ "multiple": false
121
+ },
122
+ "job-id": {
123
+ "name": "job-id",
124
+ "type": "option",
125
+ "char": "i",
126
+ "summary": "Job ID of the pipeline deployment to check the status of.",
127
+ "description": "The job ID is valid for 10 days from when you started the deploy operation.",
128
+ "multiple": false
129
+ },
130
+ "use-most-recent": {
131
+ "name": "use-most-recent",
132
+ "type": "boolean",
133
+ "char": "r",
134
+ "summary": "Use the job ID of the most recent deploy operation.",
135
+ "description": "For performance reasons, this flag uses job IDs for deploy operations that started in the past 3 days or fewer. If your most recent operation was longer than 3 days ago, this flag won't find the job ID.",
136
+ "allowNo": false
137
+ }
138
+ },
139
+ "args": {},
140
+ "hasDynamicHelp": true
141
+ },
142
+ "project:deploy:pipeline:resume": {
143
+ "id": "project:deploy:pipeline:resume",
144
+ "summary": "Resume watching a pipeline deploy operation.",
145
+ "description": "Use this command to resume watching a pipeline deploy operation if the original command times out or you specified the --async flag.\n\nRun this command by either indicating a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.",
146
+ "strict": true,
147
+ "pluginName": "@salesforce/plugin-devops-center",
148
+ "pluginAlias": "@salesforce/plugin-devops-center",
149
+ "pluginType": "core",
150
+ "state": "beta",
151
+ "aliases": [],
152
+ "examples": [
153
+ "Resume watching a deploy operation using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2",
154
+ "Resume watching the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"
155
+ ],
156
+ "flags": {
157
+ "json": {
158
+ "name": "json",
159
+ "type": "boolean",
160
+ "description": "Format output as json.",
161
+ "helpGroup": "GLOBAL",
162
+ "allowNo": false
163
+ },
164
+ "devops-center-username": {
165
+ "name": "devops-center-username",
166
+ "type": "option",
167
+ "char": "c",
168
+ "summary": "Username or alias of the DevOps Center org.",
169
+ "required": true,
170
+ "multiple": false
171
+ },
172
+ "job-id": {
173
+ "name": "job-id",
174
+ "type": "option",
175
+ "char": "i",
176
+ "summary": "Job ID of the pipeline deploy operation you want to resume.",
177
+ "description": "These commands return a job ID if they time out or you specified the --async flag:\n\n- sf project deploy pipeline start\n- sf project deploy pipeline validate\n- sf project deploy pipeline quick\n\nThe job ID is valid for 10 days from when you started the deploy operation.",
178
+ "multiple": false
179
+ },
180
+ "use-most-recent": {
181
+ "name": "use-most-recent",
182
+ "type": "boolean",
183
+ "char": "r",
184
+ "summary": "Use the job ID of the most recent deploy operation.",
185
+ "description": "For performance reasons, this flag uses job IDs for operations that started in the past 3 days or fewer. If your most recent operation was longer than 3 days ago, this flag won't find a job ID.",
186
+ "allowNo": false
187
+ },
188
+ "concise": {
189
+ "name": "concise",
190
+ "type": "boolean",
191
+ "summary": "Show concise output of the command result.",
192
+ "allowNo": false,
193
+ "exclusive": [
194
+ "verbose"
195
+ ]
196
+ },
197
+ "verbose": {
198
+ "name": "verbose",
199
+ "type": "boolean",
200
+ "summary": "Show verbose output of the command result.",
201
+ "allowNo": false
202
+ },
203
+ "wait": {
204
+ "name": "wait",
205
+ "type": "option",
206
+ "char": "w",
207
+ "summary": "Number of minutes to wait for command to complete and display results.",
208
+ "description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To check the status of the operation, run \"<%= config.bin %> <%= command.id.split(' ').slice(0, -1).join(' ') %> report\".",
209
+ "helpValue": "<minutes>",
210
+ "multiple": false,
211
+ "exclusive": [
212
+ "async"
213
+ ],
214
+ "default": {
215
+ "quantity": 33,
216
+ "unit": 0
217
+ }
218
+ }
219
+ },
220
+ "args": {},
221
+ "hasDynamicHelp": true
222
+ },
223
+ "project:deploy:pipeline:start": {
224
+ "id": "project:deploy:pipeline:start",
6
225
  "summary": "Deploy changes from a branch to the pipeline stage’s org.",
7
- "description": "Before you run this command, changes in the branch must be merged in the source control repository.",
226
+ "description": "Before you run this command, changes in the pipeline stage's branch must be merged in the source control repository.",
8
227
  "strict": true,
9
228
  "pluginName": "@salesforce/plugin-devops-center",
10
229
  "pluginAlias": "@salesforce/plugin-devops-center",
@@ -27,7 +246,7 @@
27
246
  "name": "branch-name",
28
247
  "type": "option",
29
248
  "char": "b",
30
- "summary": "Name of the branch in the source control repository from which to deploy changes to the stage’s org.",
249
+ "summary": "Name of the branch in the source control repository that corresponds to the pipeline stage that you want to deploy the changes to.",
31
250
  "required": true,
32
251
  "multiple": false
33
252
  },
@@ -43,7 +262,7 @@
43
262
  "name": "deploy-all",
44
263
  "type": "boolean",
45
264
  "char": "a",
46
- "summary": "Deploy all metadata in branch.",
265
+ "summary": "Deploy all metadata in the branch to the stage's org.",
47
266
  "description": "If you don’t specify this flag, only changes in the stage’s branch are deployed.",
48
267
  "allowNo": false
49
268
  },
@@ -68,7 +287,7 @@
68
287
  "type": "option",
69
288
  "char": "t",
70
289
  "summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
71
- "description": "Separate multiple test names with commas, and enclose the entire flag value in double quotes if a test name contains a space.",
290
+ "description": "Separate multiple test names with commas. Enclose the entire flag value in double quotes if a test name contains spaces.",
72
291
  "multiple": true
73
292
  },
74
293
  "test-level": {
@@ -89,7 +308,7 @@
89
308
  "name": "async",
90
309
  "type": "boolean",
91
310
  "summary": "Run the command asynchronously.",
92
- "description": "The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run \"sf deploy pipeline resume\". To check the status of the deployment, run \"sf deploy pipeline report\".",
311
+ "description": "The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run \"sf project deploy pipeline resume\". To check the status of the deployment, run \"sf project deploy pipeline report\".",
93
312
  "allowNo": false
94
313
  },
95
314
  "wait": {
@@ -97,7 +316,7 @@
97
316
  "type": "option",
98
317
  "char": "w",
99
318
  "summary": "Number of minutes to wait for command to complete and display results.",
100
- "description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To check the status of the operation, run \"<%= config.bin %> <%= command.id %> report\".",
319
+ "description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To check the status of the operation, run \"<%= config.bin %> <%= command.id.split(' ').slice(0, -1).join(' ') %> report\".",
101
320
  "helpValue": "<minutes>",
102
321
  "multiple": false,
103
322
  "exclusive": [
@@ -127,10 +346,10 @@
127
346
  "args": {},
128
347
  "hasDynamicHelp": true
129
348
  },
130
- "deploy:pipeline:report": {
131
- "id": "deploy:pipeline:report",
132
- "summary": "Check the status of a pipeline deploy operation.",
133
- "description": "Run this command by either passing it a job ID or specifying the —use-most-recent flag to use the job ID of the most recent deploy operation.",
349
+ "project:deploy:pipeline:validate": {
350
+ "id": "project:deploy:pipeline:validate",
351
+ "summary": "Perform a validate-only deployment from a branch to the pipeline stage’s org.",
352
+ "description": "A validation runs Apex tests to verify whether a deployment will succeed without actually deploying the metadata to your environment, so you can then quickly deploy the changes later without re-running the tests.",
134
353
  "strict": true,
135
354
  "pluginName": "@salesforce/plugin-devops-center",
136
355
  "pluginAlias": "@salesforce/plugin-devops-center",
@@ -138,8 +357,8 @@
138
357
  "state": "beta",
139
358
  "aliases": [],
140
359
  "examples": [
141
- "Check the status using a job ID:\n<%= config.bin %> <%= command.id %> --devops-center-username MyStagingSandbox --job-id 0Af0x000017yLUFCA2",
142
- "Check the status of the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --devops-center-username MyStagingSandbox --use-most-recent"
360
+ "Perform a validate-only deployment from the Staging branch to the Staging environment (sandbox):\n<%= config.bin %> <%= command.id %> --devops-center-project-name “Recruiting App” --branch-name staging --devops-center-username MyStagingSandbox",
361
+ "Perform a validate-only deployment of all changes from the main branch to the release environment:\n<%= config.bin %> <%= command.id %> --devops-center-project-name “Recruiting App” --branch-name main --devops-center-username MyReleaseOrg --deploy-all"
143
362
  ],
144
363
  "flags": {
145
364
  "json": {
@@ -149,56 +368,38 @@
149
368
  "helpGroup": "GLOBAL",
150
369
  "allowNo": false
151
370
  },
152
- "devops-center-username": {
153
- "name": "devops-center-username",
371
+ "branch-name": {
372
+ "name": "branch-name",
154
373
  "type": "option",
155
- "char": "c",
156
- "summary": "Username or alias of the DevOps Center org.",
374
+ "char": "b",
375
+ "summary": "Name of the branch in the source control repository that corresponds to the pipeline stage that you want to deploy the changes to.",
157
376
  "required": true,
158
377
  "multiple": false
159
378
  },
160
- "job-id": {
161
- "name": "job-id",
379
+ "bundle-version-name": {
380
+ "name": "bundle-version-name",
162
381
  "type": "option",
163
- "char": "i",
164
- "summary": "Job ID of the pipeline deployment you want to check the status of.",
165
- "description": "The job ID is valid for 10 days from when you started the deploy operation.",
382
+ "char": "v",
383
+ "summary": "Version name of the bundle.",
384
+ "description": "You must indicate the bundle version if deploying to the environment that corresponds to the first stage after the bundling stage.",
166
385
  "multiple": false
167
386
  },
168
- "use-most-recent": {
169
- "name": "use-most-recent",
170
- "type": "boolean",
171
- "char": "r",
172
- "summary": "Use the job ID of the most recent deploy operation.",
173
- "description": "For performance reasons, this flag uses job IDs for deploy operations that started in the past 3 days or fewer. If your most recent operation was longer than 3 days ago, this flag won't find a job ID.",
174
- "allowNo": false
175
- }
176
- },
177
- "args": {},
178
- "hasDynamicHelp": true
179
- },
180
- "deploy:pipeline:resume": {
181
- "id": "deploy:pipeline:resume",
182
- "summary": "Resume watching a pipeline deploy operation.",
183
- "description": "Use this command to resume watching a pipeline deploy operation if the original command times out or you specified the --async flag.\n\nRun this command by either passing it a job ID or specifying the --use-most-recent flag to use the job ID of the most recent deploy operation.",
184
- "strict": true,
185
- "pluginName": "@salesforce/plugin-devops-center",
186
- "pluginAlias": "@salesforce/plugin-devops-center",
187
- "pluginType": "core",
188
- "state": "beta",
189
- "aliases": [],
190
- "examples": [
191
- "Resume watching a deploy operation using a job ID:\n<%= config.bin %> <%= command.id %> --job-id 0Af0x000017yLUFCA2",
192
- "Resume watching the most recent deploy operation:\n<%= config.bin %> <%= command.id %> --use-most-recent"
193
- ],
194
- "flags": {
195
- "json": {
196
- "name": "json",
387
+ "deploy-all": {
388
+ "name": "deploy-all",
197
389
  "type": "boolean",
198
- "description": "Format output as json.",
199
- "helpGroup": "GLOBAL",
390
+ "char": "a",
391
+ "summary": "Deploy all metadata in the branch to the stage's org.",
392
+ "description": "If you don’t specify this flag, only changes in the stage’s branch are deployed.",
200
393
  "allowNo": false
201
394
  },
395
+ "devops-center-project-name": {
396
+ "name": "devops-center-project-name",
397
+ "type": "option",
398
+ "char": "p",
399
+ "summary": "Name of the DevOps Center project.",
400
+ "required": true,
401
+ "multiple": false
402
+ },
202
403
  "devops-center-username": {
203
404
  "name": "devops-center-username",
204
405
  "type": "option",
@@ -207,20 +408,33 @@
207
408
  "required": true,
208
409
  "multiple": false
209
410
  },
210
- "job-id": {
211
- "name": "job-id",
411
+ "tests": {
412
+ "name": "tests",
212
413
  "type": "option",
213
- "char": "i",
214
- "summary": "Job ID of the pipeline deploy operation you want to resume.",
215
- "description": "These commands return a job ID if they time out or you specified the --async flag:\n\n- sf deploy pipeline\n- sf deploy pipeline validate\n- sf deploy pipeline quick\n\nThe job ID is valid for 10 days from when you started the deploy operation.",
216
- "multiple": false
414
+ "char": "t",
415
+ "summary": "Apex tests to run when --test-level is RunSpecifiedTests.",
416
+ "description": "Separate multiple test names with commas. Enclose the entire flag value in double quotes if a test name contains spaces.",
417
+ "multiple": true
217
418
  },
218
- "use-most-recent": {
219
- "name": "use-most-recent",
419
+ "test-level": {
420
+ "name": "test-level",
421
+ "type": "option",
422
+ "char": "l",
423
+ "summary": "Deployment Apex testing level.",
424
+ "description": "Valid values are:\n\n- NoTestRun — No tests are run. This test level applies only to deployments to development environments, such as sandbox, Developer Edition, or trial orgs. This test level is the default for development environments.\n\n- RunSpecifiedTests — Runs only the tests that you specify with the --run-tests flag. Code coverage requirements differ from the default coverage requirements when using this test level. Executed tests must comprise a minimum of 75% code coverage for each class and trigger in the deployment package. This coverage is computed for each class and trigger individually and is different than the overall coverage percentage.\n\n- RunLocalTests — All tests in your org are run, except the ones that originate from installed managed and unlocked packages. This test level is the default for production deployments that include Apex classes or triggers.\n\n- RunAllTestsInOrg — All tests in your org are run, including tests of managed packages.\n\nIf you don’t specify a test level, the default behavior depends on the contents of your deployment package. For more information, see [Running Tests in a Deployment](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm) in the \"Metadata API Developer Guide\".",
425
+ "multiple": false,
426
+ "options": [
427
+ "NoTestRun",
428
+ "RunSpecifiedTests",
429
+ "RunLocalTests",
430
+ "RunAllTestsInOrg"
431
+ ]
432
+ },
433
+ "async": {
434
+ "name": "async",
220
435
  "type": "boolean",
221
- "char": "r",
222
- "summary": "Use the job ID of the most recent deploy operation.",
223
- "description": "For performance reasons, this flag uses job IDs for operations that started in the past 3 days or fewer. If your most recent operation was longer than 3 days ago, this flag won't find a job ID.",
436
+ "summary": "Run the command asynchronously.",
437
+ "description": "The command immediately returns the job ID and control of the terminal to you. This way, you can continue to use the CLI. To resume the deployment, run \"sf project deploy pipeline resume\". To check the status of the deployment, run \"sf project deploy pipeline report\".",
224
438
  "allowNo": false
225
439
  },
226
440
  "wait": {
@@ -228,7 +442,7 @@
228
442
  "type": "option",
229
443
  "char": "w",
230
444
  "summary": "Number of minutes to wait for command to complete and display results.",
231
- "description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To check the status of the operation, run \"<%= config.bin %> <%= command.id %> report\".",
445
+ "description": "If the command continues to run after the wait period, the CLI returns control of the terminal window to you and returns the job ID. To check the status of the operation, run \"<%= config.bin %> <%= command.id.split(' ').slice(0, -1).join(' ') %> report\".",
232
446
  "helpValue": "<minutes>",
233
447
  "multiple": false,
234
448
  "exclusive": [
@@ -238,6 +452,21 @@
238
452
  "quantity": 33,
239
453
  "unit": 0
240
454
  }
455
+ },
456
+ "verbose": {
457
+ "name": "verbose",
458
+ "type": "boolean",
459
+ "summary": "Show verbose output of the command result.",
460
+ "allowNo": false
461
+ },
462
+ "concise": {
463
+ "name": "concise",
464
+ "type": "boolean",
465
+ "summary": "Show concise output of the command result.",
466
+ "allowNo": false,
467
+ "exclusive": [
468
+ "verbose"
469
+ ]
241
470
  }
242
471
  },
243
472
  "args": {},