@salesforce/plugin-devops-center 1.3.0 → 1.4.0

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 (52) hide show
  1. package/README.md +110 -100
  2. package/lib/commands/devops/pipeline/activate.js +5 -0
  3. package/lib/commands/devops/pipeline/activate.js.map +1 -1
  4. package/lib/commands/devops/pipeline/create.d.ts +2 -1
  5. package/lib/commands/devops/pipeline/create.js +37 -7
  6. package/lib/commands/devops/pipeline/create.js.map +1 -1
  7. package/lib/commands/devops/pipeline/{attach-project.d.ts → project/add.d.ts} +2 -2
  8. package/lib/commands/devops/pipeline/{attach-project.js → project/add.js} +5 -5
  9. package/lib/commands/devops/pipeline/project/add.js.map +1 -0
  10. package/lib/commands/devops/pull-request/create.d.ts +0 -2
  11. package/lib/commands/devops/pull-request/create.js +8 -40
  12. package/lib/commands/devops/pull-request/create.js.map +1 -1
  13. package/lib/commands/devops/stage/{add-branch.d.ts → branch/add.d.ts} +2 -2
  14. package/lib/commands/devops/stage/{add-branch.js → branch/add.js} +6 -6
  15. package/lib/commands/devops/stage/branch/add.js.map +1 -0
  16. package/lib/commands/devops/stage/{add-environment.d.ts → environment/add.d.ts} +2 -2
  17. package/lib/commands/devops/stage/{add-environment.js → environment/add.js} +11 -6
  18. package/lib/commands/devops/stage/environment/add.js.map +1 -0
  19. package/lib/commands/devops/work-item/{status/update.d.ts → update.d.ts} +6 -4
  20. package/lib/commands/devops/work-item/{status/update.js → update.js} +30 -9
  21. package/lib/commands/devops/work-item/update.js.map +1 -0
  22. package/lib/utils/createPipeline.d.ts +14 -1
  23. package/lib/utils/createPipeline.js +52 -6
  24. package/lib/utils/createPipeline.js.map +1 -1
  25. package/lib/utils/createProject.js +1 -0
  26. package/lib/utils/createProject.js.map +1 -1
  27. package/lib/utils/createPullRequest.d.ts +7 -19
  28. package/lib/utils/createPullRequest.js +49 -121
  29. package/lib/utils/createPullRequest.js.map +1 -1
  30. package/lib/utils/{updateWorkItemStatus.d.ts → updateWorkItem.d.ts} +12 -14
  31. package/lib/utils/{updateWorkItemStatus.js → updateWorkItem.js} +28 -26
  32. package/lib/utils/updateWorkItem.js.map +1 -0
  33. package/messages/devops.pipeline.create.md +26 -6
  34. package/messages/devops.pull-request.create.md +6 -30
  35. package/messages/{devops.stage.add-environment.md → devops.stage.environment.add.md} +4 -0
  36. package/messages/devops.work-item.update.md +45 -0
  37. package/npm-shrinkwrap.json +2 -2
  38. package/oclif.manifest.json +276 -266
  39. package/package.json +3 -3
  40. package/schemas/devops-pull__request-create.json +0 -3
  41. package/schemas/{devops-work__item-status-update.json → devops-work__item-update.json} +8 -2
  42. package/lib/commands/devops/pipeline/attach-project.js.map +0 -1
  43. package/lib/commands/devops/stage/add-branch.js.map +0 -1
  44. package/lib/commands/devops/stage/add-environment.js.map +0 -1
  45. package/lib/commands/devops/work-item/status/update.js.map +0 -1
  46. package/lib/utils/updateWorkItemStatus.js.map +0 -1
  47. package/messages/devops.work-item.status.update.md +0 -29
  48. /package/messages/{devops.pipeline.attach-project.md → devops.pipeline.project.add.md} +0 -0
  49. /package/messages/{devops.stage.add-branch.md → devops.stage.branch.add.md} +0 -0
  50. /package/schemas/{devops-pipeline-attach__project.json → devops-pipeline-project-add.json} +0 -0
  51. /package/schemas/{devops-stage-add__branch.json → devops-stage-branch-add.json} +0 -0
  52. /package/schemas/{devops-stage-add__environment.json → devops-stage-environment-add.json} +0 -0
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "commands": {
3
- "devops:pipeline:activate": {
3
+ "devops:project:create": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "A pipeline must have at least one stage before you activate it. You can't modify the pipeline stages after you activate and promote changes through it.",
6
+ "description": "Creates a new DevOps Center project with the specified name and optional description.",
7
7
  "examples": [
8
- "Activate a pipeline using the pipeline ID.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001"
8
+ "Create a new DevOps Center project in the specified org.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"MyApp Release\"",
9
+ "Create a project with a name and description.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Platform Update\" --description \"Platform services update\""
9
10
  ],
10
11
  "flags": {
11
12
  "json": {
@@ -40,10 +41,19 @@
40
41
  "multiple": false,
41
42
  "type": "option"
42
43
  },
43
- "pipeline-id": {
44
- "name": "pipeline-id",
44
+ "name": {
45
+ "char": "n",
46
+ "name": "name",
45
47
  "required": true,
46
- "summary": "ID of the pipeline.",
48
+ "summary": "Name of the new DevOps Center project.",
49
+ "hasDynamicHelp": false,
50
+ "multiple": false,
51
+ "type": "option"
52
+ },
53
+ "description": {
54
+ "char": "d",
55
+ "name": "description",
56
+ "summary": "Description of the new project; if not specified, the description is blank.",
47
57
  "hasDynamicHelp": false,
48
58
  "multiple": false,
49
59
  "type": "option"
@@ -51,28 +61,29 @@
51
61
  },
52
62
  "hasDynamicHelp": true,
53
63
  "hiddenAliases": [],
54
- "id": "devops:pipeline:activate",
64
+ "id": "devops:project:create",
55
65
  "pluginAlias": "@salesforce/plugin-devops-center",
56
66
  "pluginName": "@salesforce/plugin-devops-center",
57
67
  "pluginType": "core",
58
68
  "strict": true,
59
- "summary": "Activate a DevOps Center pipeline for deployments.",
69
+ "summary": "Create a DevOps Center project in a DevOps Center org.",
60
70
  "enableJsonFlag": true,
61
71
  "isESM": true,
62
72
  "relativePath": [
63
73
  "lib",
64
74
  "commands",
65
75
  "devops",
66
- "pipeline",
67
- "activate.js"
76
+ "project",
77
+ "create.js"
68
78
  ]
69
79
  },
70
- "devops:pipeline:attach-project": {
80
+ "devops:project:list": {
71
81
  "aliases": [],
72
82
  "args": {},
73
- "description": "You can attach a project to only one pipeline.",
83
+ "description": "This command queries the DevopsProject standard object and returns the project Id, Name, and Description for each project found.",
74
84
  "examples": [
75
- "Attach a project to a pipeline using the project ID and pipeline ID.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001 --project-id 0Hn000000000001"
85
+ "List all DevOps Center projects in an org with alias \"my-devops-org\":\n<%= config.bin %> <%= command.id %> --target-org my-devops-org",
86
+ "List projects using an org's username:\n<%= config.bin %> <%= command.id %> --target-org devops-center@example.com"
76
87
  ],
77
88
  "flags": {
78
89
  "json": {
@@ -106,19 +117,70 @@
106
117
  "hasDynamicHelp": false,
107
118
  "multiple": false,
108
119
  "type": "option"
120
+ }
121
+ },
122
+ "hasDynamicHelp": true,
123
+ "hiddenAliases": [],
124
+ "id": "devops:project:list",
125
+ "pluginAlias": "@salesforce/plugin-devops-center",
126
+ "pluginName": "@salesforce/plugin-devops-center",
127
+ "pluginType": "core",
128
+ "strict": true,
129
+ "summary": "List all DevOps Center projects in a Salesforce org.",
130
+ "enableJsonFlag": true,
131
+ "isESM": true,
132
+ "relativePath": [
133
+ "lib",
134
+ "commands",
135
+ "devops",
136
+ "project",
137
+ "list.js"
138
+ ]
139
+ },
140
+ "devops:pipeline:activate": {
141
+ "aliases": [],
142
+ "args": {},
143
+ "description": "A pipeline must have at least one stage before you activate it. You can't modify the pipeline stages after you activate and promote changes through it.",
144
+ "examples": [
145
+ "Activate a pipeline using the pipeline ID.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001"
146
+ ],
147
+ "flags": {
148
+ "json": {
149
+ "description": "Format output as json.",
150
+ "helpGroup": "GLOBAL",
151
+ "name": "json",
152
+ "allowNo": false,
153
+ "type": "boolean"
154
+ },
155
+ "flags-dir": {
156
+ "helpGroup": "GLOBAL",
157
+ "name": "flags-dir",
158
+ "summary": "Import flag values from a directory.",
159
+ "hasDynamicHelp": false,
160
+ "multiple": false,
161
+ "type": "option"
109
162
  },
110
- "pipeline-id": {
111
- "name": "pipeline-id",
163
+ "target-org": {
164
+ "char": "o",
165
+ "name": "target-org",
166
+ "noCacheDefault": true,
112
167
  "required": true,
113
- "summary": "ID of the pipeline.",
168
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
169
+ "hasDynamicHelp": true,
170
+ "multiple": false,
171
+ "type": "option"
172
+ },
173
+ "api-version": {
174
+ "description": "Override the api version used for api requests made by this command",
175
+ "name": "api-version",
114
176
  "hasDynamicHelp": false,
115
177
  "multiple": false,
116
178
  "type": "option"
117
179
  },
118
- "project-id": {
119
- "name": "project-id",
180
+ "pipeline-id": {
181
+ "name": "pipeline-id",
120
182
  "required": true,
121
- "summary": "ID of the DevOps Center project.",
183
+ "summary": "ID of the pipeline.",
122
184
  "hasDynamicHelp": false,
123
185
  "multiple": false,
124
186
  "type": "option"
@@ -126,12 +188,12 @@
126
188
  },
127
189
  "hasDynamicHelp": true,
128
190
  "hiddenAliases": [],
129
- "id": "devops:pipeline:attach-project",
191
+ "id": "devops:pipeline:activate",
130
192
  "pluginAlias": "@salesforce/plugin-devops-center",
131
193
  "pluginName": "@salesforce/plugin-devops-center",
132
194
  "pluginType": "core",
133
195
  "strict": true,
134
- "summary": "Attach a DevOps Center project to a pipeline.",
196
+ "summary": "Activate a DevOps Center pipeline for deployments.",
135
197
  "enableJsonFlag": true,
136
198
  "isESM": true,
137
199
  "relativePath": [
@@ -139,7 +201,7 @@
139
201
  "commands",
140
202
  "devops",
141
203
  "pipeline",
142
- "attach-project.js"
204
+ "activate.js"
143
205
  ]
144
206
  },
145
207
  "devops:pipeline:create": {
@@ -149,7 +211,8 @@
149
211
  "examples": [
150
212
  "Create a pipeline and associate it with an existing GitHub repository.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo https://github.com/myorg/myrepo",
151
213
  "Create a pipeline and associate it with a new GitHub repository.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo my-new-repo --repo-type github --repo-owner myorg --create-repo",
152
- "Create a pipeline with a description and associate it with a Bitbucket repository.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo https://bitbucket.org/myorg/myrepo --description \"Main CI/CD pipeline for production releases\""
214
+ "Create a pipeline and create a new Bitbucket repository.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo my-new-repo --repo-type bitbucket --bitbucket-workspace myworkspace --bitbucket-project-key PROJ --create-repo",
215
+ "Create a pipeline with a description and associate it with an existing Bitbucket repository.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Release Pipeline\" --repo https://bitbucket.org/myworkspace/myrepo --description \"Main CI/CD pipeline for production releases\""
153
216
  ],
154
217
  "flags": {
155
218
  "json": {
@@ -221,14 +284,21 @@
221
284
  },
222
285
  "repo-owner": {
223
286
  "name": "repo-owner",
224
- "summary": "Owner (organization or user) of the repository. Required when creating a repository using '--create-repo'.",
287
+ "summary": "Owner (organization or user) of the GitHub repository. Required when creating a GitHub repository using '--create-repo'.",
288
+ "hasDynamicHelp": false,
289
+ "multiple": false,
290
+ "type": "option"
291
+ },
292
+ "bitbucket-workspace": {
293
+ "name": "bitbucket-workspace",
294
+ "summary": "Bitbucket workspace that will own the repository. Required when creating a Bitbucket repository using '--create-repo'.",
225
295
  "hasDynamicHelp": false,
226
296
  "multiple": false,
227
297
  "type": "option"
228
298
  },
229
- "bitbucket-project": {
230
- "name": "bitbucket-project",
231
- "summary": "Bitbucket project key for the repository. Used when creating a Bitbucket repository with '--create-repo'.",
299
+ "bitbucket-project-key": {
300
+ "name": "bitbucket-project-key",
301
+ "summary": "Bitbucket project key to associate with the repository. Optional when creating a Bitbucket repository using '--create-repo'.",
232
302
  "hasDynamicHelp": false,
233
303
  "multiple": false,
234
304
  "type": "option"
@@ -260,13 +330,13 @@
260
330
  "create.js"
261
331
  ]
262
332
  },
263
- "devops:project:create": {
333
+ "devops:pull-request:create": {
264
334
  "aliases": [],
265
335
  "args": {},
266
- "description": "Creates a new DevOps Center project with the specified name and optional description.",
336
+ "description": "Creates a pull request via the Salesforce DevOps Center API, using the VCS credentials stored in the org. Works with GitHub and Bitbucket without requiring local VCS authentication.",
267
337
  "examples": [
268
- "Create a new DevOps Center project in the specified org.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"MyApp Release\"",
269
- "Create a project with a name and description.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --name \"Platform Update\" --description \"Platform services update\""
338
+ "Create a pull request for a work item.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-name WI-000001",
339
+ "Create a pull request using the work item ID.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-id 0Wx000000000001"
270
340
  ],
271
341
  "flags": {
272
342
  "json": {
@@ -301,19 +371,18 @@
301
371
  "multiple": false,
302
372
  "type": "option"
303
373
  },
304
- "name": {
374
+ "work-item-name": {
305
375
  "char": "n",
306
- "name": "name",
307
- "required": true,
308
- "summary": "Name of the new DevOps Center project.",
376
+ "name": "work-item-name",
377
+ "summary": "Name of the work item, such as WI-000001.",
309
378
  "hasDynamicHelp": false,
310
379
  "multiple": false,
311
380
  "type": "option"
312
381
  },
313
- "description": {
314
- "char": "d",
315
- "name": "description",
316
- "summary": "Description of the new project; if not specified, the description is blank.",
382
+ "work-item-id": {
383
+ "char": "w",
384
+ "name": "work-item-id",
385
+ "summary": "ID of the work item.",
317
386
  "hasDynamicHelp": false,
318
387
  "multiple": false,
319
388
  "type": "option"
@@ -321,29 +390,29 @@
321
390
  },
322
391
  "hasDynamicHelp": true,
323
392
  "hiddenAliases": [],
324
- "id": "devops:project:create",
393
+ "id": "devops:pull-request:create",
325
394
  "pluginAlias": "@salesforce/plugin-devops-center",
326
395
  "pluginName": "@salesforce/plugin-devops-center",
327
396
  "pluginType": "core",
328
397
  "strict": true,
329
- "summary": "Create a DevOps Center project in a DevOps Center org.",
398
+ "summary": "Create a pull request for a work item branch.",
330
399
  "enableJsonFlag": true,
331
400
  "isESM": true,
332
401
  "relativePath": [
333
402
  "lib",
334
403
  "commands",
335
404
  "devops",
336
- "project",
405
+ "pull-request",
337
406
  "create.js"
338
407
  ]
339
408
  },
340
- "devops:project:list": {
409
+ "devops:work-item:create": {
341
410
  "aliases": [],
342
411
  "args": {},
343
- "description": "This command queries the DevopsProject standard object and returns the project Id, Name, and Description for each project found.",
412
+ "description": "The command creates the work item using the Connect API. Requires a project ID and a subject for the new work item; run the `devops project list` command to get the IDs for all existing projects.",
344
413
  "examples": [
345
- "List all DevOps Center projects in an org with alias \"my-devops-org\":\n<%= config.bin %> <%= command.id %> --target-org my-devops-org",
346
- "List projects using an org's username:\n<%= config.bin %> <%= command.id %> --target-org devops-center@example.com"
414
+ "Create a work item for the project with the specified ID and give the work item the specified subject (title); use the DevOps Center org with alias \"my-devops-org\":\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --subject \"Fix login bug\"",
415
+ "Create a work item with a subject and description:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --subject \"Add dark mode\" --description \"Implement dark mode toggle in settings page\""
347
416
  ],
348
417
  "flags": {
349
418
  "json": {
@@ -377,93 +446,29 @@
377
446
  "hasDynamicHelp": false,
378
447
  "multiple": false,
379
448
  "type": "option"
380
- }
381
- },
382
- "hasDynamicHelp": true,
383
- "hiddenAliases": [],
384
- "id": "devops:project:list",
385
- "pluginAlias": "@salesforce/plugin-devops-center",
386
- "pluginName": "@salesforce/plugin-devops-center",
387
- "pluginType": "core",
388
- "strict": true,
389
- "summary": "List all DevOps Center projects in a Salesforce org.",
390
- "enableJsonFlag": true,
391
- "isESM": true,
392
- "relativePath": [
393
- "lib",
394
- "commands",
395
- "devops",
396
- "project",
397
- "list.js"
398
- ]
399
- },
400
- "devops:pull-request:create": {
401
- "aliases": [],
402
- "args": {},
403
- "description": "The pull request title defaults to the work item subject. The work item must have an associated branch and repository. Requires VCS authentication: set GITHUB_TOKEN (or use `gh auth login`) for GitHub, or set BITBUCKET_TOKEN for Bitbucket.",
404
- "examples": [
405
- "Create a pull request for a work item using the default title.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-name WI-000001",
406
- "Create a pull request with a custom title and description.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-id 0Wx000000000001 --title \"Fix: Login timeout\" --body \"Resolves the 30s timeout on the login page\""
407
- ],
408
- "flags": {
409
- "json": {
410
- "description": "Format output as json.",
411
- "helpGroup": "GLOBAL",
412
- "name": "json",
413
- "allowNo": false,
414
- "type": "boolean"
415
- },
416
- "flags-dir": {
417
- "helpGroup": "GLOBAL",
418
- "name": "flags-dir",
419
- "summary": "Import flag values from a directory.",
420
- "hasDynamicHelp": false,
421
- "multiple": false,
422
- "type": "option"
423
449
  },
424
- "target-org": {
425
- "char": "o",
426
- "name": "target-org",
427
- "noCacheDefault": true,
450
+ "project-id": {
451
+ "char": "p",
452
+ "name": "project-id",
428
453
  "required": true,
429
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
430
- "hasDynamicHelp": true,
431
- "multiple": false,
432
- "type": "option"
433
- },
434
- "api-version": {
435
- "description": "Override the api version used for api requests made by this command",
436
- "name": "api-version",
437
- "hasDynamicHelp": false,
438
- "multiple": false,
439
- "type": "option"
440
- },
441
- "work-item-name": {
442
- "char": "n",
443
- "name": "work-item-name",
444
- "summary": "Name of the work item, such as WI-000001.",
445
- "hasDynamicHelp": false,
446
- "multiple": false,
447
- "type": "option"
448
- },
449
- "work-item-id": {
450
- "char": "w",
451
- "name": "work-item-id",
452
- "summary": "ID of the work item.",
454
+ "summary": "ID of the DevOps Center project to create the work item in.",
453
455
  "hasDynamicHelp": false,
454
456
  "multiple": false,
455
457
  "type": "option"
456
458
  },
457
- "title": {
458
- "name": "title",
459
- "summary": "Title of the pull request.",
459
+ "subject": {
460
+ "char": "s",
461
+ "name": "subject",
462
+ "required": true,
463
+ "summary": "Subject (title) of the new work item.",
460
464
  "hasDynamicHelp": false,
461
465
  "multiple": false,
462
466
  "type": "option"
463
467
  },
464
- "body": {
465
- "name": "body",
466
- "summary": "Description of the pull request.",
468
+ "description": {
469
+ "char": "d",
470
+ "name": "description",
471
+ "summary": "Description of the new work item; if not specified, the description is blank.",
467
472
  "hasDynamicHelp": false,
468
473
  "multiple": false,
469
474
  "type": "option"
@@ -471,29 +476,29 @@
471
476
  },
472
477
  "hasDynamicHelp": true,
473
478
  "hiddenAliases": [],
474
- "id": "devops:pull-request:create",
479
+ "id": "devops:work-item:create",
475
480
  "pluginAlias": "@salesforce/plugin-devops-center",
476
481
  "pluginName": "@salesforce/plugin-devops-center",
477
482
  "pluginType": "core",
478
483
  "strict": true,
479
- "summary": "Create a pull request for a work item branch.",
484
+ "summary": "Create a new work item in a DevOps Center project.",
480
485
  "enableJsonFlag": true,
481
486
  "isESM": true,
482
487
  "relativePath": [
483
488
  "lib",
484
489
  "commands",
485
490
  "devops",
486
- "pull-request",
491
+ "work-item",
487
492
  "create.js"
488
493
  ]
489
494
  },
490
- "devops:stage:add-branch": {
495
+ "devops:work-item:list": {
491
496
  "aliases": [],
492
497
  "args": {},
493
- "description": "By default, the branch must exist in the repository. Use --create-vcs-branch to create a branch if it doesn't exist.\nEach pipeline stage supports only one branch. Adding a branch replaces any existing branch linked to the pipeline stage.",
498
+ "description": "Each work item displays the branch, environment, and repository details needed for checkout and promotion. Requires a project ID; run the `devops project list` command to get the IDs for all existing projects.",
494
499
  "examples": [
495
- "Add an existing branch to a stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000001 --branch-name main",
496
- "Create and add a branch to a pipeline stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000002 --branch-name integration --create-vcs-branch"
500
+ "List work items for a specific project in the DevOps org with alias \"my-devops-org\":\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001",
501
+ "List work items using JSON output:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --json"
497
502
  ],
498
503
  "flags": {
499
504
  "json": {
@@ -528,62 +533,42 @@
528
533
  "multiple": false,
529
534
  "type": "option"
530
535
  },
531
- "pipeline-id": {
532
- "name": "pipeline-id",
533
- "required": true,
534
- "summary": "ID of the pipeline that contains the stage.",
535
- "hasDynamicHelp": false,
536
- "multiple": false,
537
- "type": "option"
538
- },
539
- "stage-id": {
540
- "name": "stage-id",
541
- "required": true,
542
- "summary": "ID of the pipeline stage to associate the branch with.",
543
- "hasDynamicHelp": false,
544
- "multiple": false,
545
- "type": "option"
546
- },
547
- "branch-name": {
548
- "char": "b",
549
- "name": "branch-name",
536
+ "project-id": {
537
+ "char": "p",
538
+ "name": "project-id",
550
539
  "required": true,
551
- "summary": "Name of the repository branch to assign to the stage.",
540
+ "summary": "ID of the DevOps Center project to list work items for.",
552
541
  "hasDynamicHelp": false,
553
542
  "multiple": false,
554
543
  "type": "option"
555
- },
556
- "create-vcs-branch": {
557
- "name": "create-vcs-branch",
558
- "summary": "Create the branch in the remote repository if it doesn't already exist.",
559
- "allowNo": false,
560
- "type": "boolean"
561
544
  }
562
545
  },
563
546
  "hasDynamicHelp": true,
564
547
  "hiddenAliases": [],
565
- "id": "devops:stage:add-branch",
548
+ "id": "devops:work-item:list",
566
549
  "pluginAlias": "@salesforce/plugin-devops-center",
567
550
  "pluginName": "@salesforce/plugin-devops-center",
568
551
  "pluginType": "core",
569
552
  "strict": true,
570
- "summary": "Add a source code repository branch to a pipeline stage.",
553
+ "summary": "List all work items for a DevOps Center project.",
571
554
  "enableJsonFlag": true,
572
555
  "isESM": true,
573
556
  "relativePath": [
574
557
  "lib",
575
558
  "commands",
576
559
  "devops",
577
- "stage",
578
- "add-branch.js"
560
+ "work-item",
561
+ "list.js"
579
562
  ]
580
563
  },
581
- "devops:stage:add-environment": {
564
+ "devops:work-item:update": {
582
565
  "aliases": [],
583
566
  "args": {},
584
- "description": "This command triggers an OAuth flow to authenticate the environment. A browser window opens automatically for you to log in.",
567
+ "description": "Update the subject, description, or status of a work item. At least one of --subject, --description, or --status must be provided.",
585
568
  "examples": [
586
- "Add a production environment to a stage using its ID:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --stage-id 0Xp000000000001 --environment-name Production_Org --org-type Production"
569
+ "Update the subject of a work item by name:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-name WI-000001 --subject \"Fix login bug\"",
570
+ "Update the status of a work item by ID:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-id 0Wx000000000001 --status \"In Progress\"",
571
+ "Update multiple fields at once:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-name WI-000001 --subject \"Fix login bug\" --description \"Users can't log in on mobile\" --status \"In Progress\""
587
572
  ],
588
573
  "flags": {
589
574
  "json": {
@@ -618,75 +603,72 @@
618
603
  "multiple": false,
619
604
  "type": "option"
620
605
  },
621
- "pipeline-id": {
622
- "name": "pipeline-id",
623
- "required": true,
624
- "summary": "ID of the pipeline that contains the stage.",
606
+ "work-item-name": {
607
+ "char": "n",
608
+ "name": "work-item-name",
609
+ "summary": "Name of the work item, such as WI-000001.",
625
610
  "hasDynamicHelp": false,
626
611
  "multiple": false,
627
612
  "type": "option"
628
613
  },
629
- "stage-id": {
630
- "name": "stage-id",
631
- "required": true,
632
- "summary": "ID of the pipeline stage.",
614
+ "work-item-id": {
615
+ "char": "w",
616
+ "name": "work-item-id",
617
+ "summary": "ID of the work item.",
633
618
  "hasDynamicHelp": false,
634
619
  "multiple": false,
635
620
  "type": "option"
636
621
  },
637
- "environment-name": {
638
- "char": "e",
639
- "name": "environment-name",
640
- "required": true,
641
- "summary": "Name of the environment.",
622
+ "subject": {
623
+ "name": "subject",
624
+ "summary": "New subject for the work item.",
642
625
  "hasDynamicHelp": false,
643
626
  "multiple": false,
644
627
  "type": "option"
645
628
  },
646
- "org-type": {
647
- "name": "org-type",
648
- "required": true,
649
- "summary": "Type of the Salesforce org. Valid values: Production, Sandbox.",
629
+ "description": {
630
+ "name": "description",
631
+ "summary": "New description for the work item.",
632
+ "hasDynamicHelp": false,
633
+ "multiple": false,
634
+ "type": "option"
635
+ },
636
+ "status": {
637
+ "name": "status",
638
+ "summary": "New status for the work item. Allowed values: \"In Progress\", \"Ready to Promote\".",
650
639
  "hasDynamicHelp": false,
651
640
  "multiple": false,
652
641
  "options": [
653
- "Production",
654
- "Sandbox"
642
+ "In Progress",
643
+ "Ready to Promote"
655
644
  ],
656
645
  "type": "option"
657
- },
658
- "no-browser": {
659
- "name": "no-browser",
660
- "summary": "Don't auto-open the browser for OAuth authentication. The redirect URL is printed for manual use.",
661
- "allowNo": false,
662
- "type": "boolean"
663
646
  }
664
647
  },
665
648
  "hasDynamicHelp": true,
666
649
  "hiddenAliases": [],
667
- "id": "devops:stage:add-environment",
650
+ "id": "devops:work-item:update",
668
651
  "pluginAlias": "@salesforce/plugin-devops-center",
669
652
  "pluginName": "@salesforce/plugin-devops-center",
670
653
  "pluginType": "core",
671
654
  "strict": true,
672
- "summary": "Add a Salesforce environment to a pipeline stage.",
655
+ "summary": "Update a work item in DevOps Center.",
673
656
  "enableJsonFlag": true,
674
657
  "isESM": true,
675
658
  "relativePath": [
676
659
  "lib",
677
660
  "commands",
678
661
  "devops",
679
- "stage",
680
- "add-environment.js"
662
+ "work-item",
663
+ "update.js"
681
664
  ]
682
665
  },
683
- "devops:work-item:create": {
666
+ "devops:pipeline:project:add": {
684
667
  "aliases": [],
685
668
  "args": {},
686
- "description": "The command creates the work item using the Connect API. Requires a project ID and a subject for the new work item; run the `devops project list` command to get the IDs for all existing projects.",
669
+ "description": "You can attach a project to only one pipeline.",
687
670
  "examples": [
688
- "Create a work item for the project with the specified ID and give the work item the specified subject (title); use the DevOps Center org with alias \"my-devops-org\":\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --subject \"Fix login bug\"",
689
- "Create a work item with a subject and description:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --subject \"Add dark mode\" --description \"Implement dark mode toggle in settings page\""
671
+ "Attach a project to a pipeline using the project ID and pipeline ID.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001 --project-id 0Hn000000000001"
690
672
  ],
691
673
  "flags": {
692
674
  "json": {
@@ -721,28 +703,18 @@
721
703
  "multiple": false,
722
704
  "type": "option"
723
705
  },
724
- "project-id": {
725
- "char": "p",
726
- "name": "project-id",
706
+ "pipeline-id": {
707
+ "name": "pipeline-id",
727
708
  "required": true,
728
- "summary": "ID of the DevOps Center project to create the work item in.",
709
+ "summary": "ID of the pipeline.",
729
710
  "hasDynamicHelp": false,
730
711
  "multiple": false,
731
712
  "type": "option"
732
713
  },
733
- "subject": {
734
- "char": "s",
735
- "name": "subject",
714
+ "project-id": {
715
+ "name": "project-id",
736
716
  "required": true,
737
- "summary": "Subject (title) of the new work item.",
738
- "hasDynamicHelp": false,
739
- "multiple": false,
740
- "type": "option"
741
- },
742
- "description": {
743
- "char": "d",
744
- "name": "description",
745
- "summary": "Description of the new work item; if not specified, the description is blank.",
717
+ "summary": "ID of the DevOps Center project.",
746
718
  "hasDynamicHelp": false,
747
719
  "multiple": false,
748
720
  "type": "option"
@@ -750,29 +722,30 @@
750
722
  },
751
723
  "hasDynamicHelp": true,
752
724
  "hiddenAliases": [],
753
- "id": "devops:work-item:create",
725
+ "id": "devops:pipeline:project:add",
754
726
  "pluginAlias": "@salesforce/plugin-devops-center",
755
727
  "pluginName": "@salesforce/plugin-devops-center",
756
728
  "pluginType": "core",
757
729
  "strict": true,
758
- "summary": "Create a new work item in a DevOps Center project.",
730
+ "summary": "Attach a DevOps Center project to a pipeline.",
759
731
  "enableJsonFlag": true,
760
732
  "isESM": true,
761
733
  "relativePath": [
762
734
  "lib",
763
735
  "commands",
764
736
  "devops",
765
- "work-item",
766
- "create.js"
737
+ "pipeline",
738
+ "project",
739
+ "add.js"
767
740
  ]
768
741
  },
769
- "devops:work-item:list": {
742
+ "devops:pipeline:stage:add": {
770
743
  "aliases": [],
771
744
  "args": {},
772
- "description": "Each work item displays the branch, environment, and repository details needed for checkout and promotion. Requires a project ID; run the `devops project list` command to get the IDs for all existing projects.",
745
+ "description": "Inserts an empty stage before the stage specified by `--next-stage-id`. The new stage doesn't include a branch or environment. Configure them separately after you create the stage.",
773
746
  "examples": [
774
- "List work items for a specific project in the DevOps org with alias \"my-devops-org\":\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001",
775
- "List work items using JSON output:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --json"
747
+ "Add a Development stage before Integration in a specific pipeline.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001 --name \"Development\" --next-stage-id 0Xc000000000002",
748
+ "Add a QA stage before UAT in a specific pipeline.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001 --name \"QA\" --next-stage-id 0Xc000000000003"
776
749
  ],
777
750
  "flags": {
778
751
  "json": {
@@ -807,11 +780,27 @@
807
780
  "multiple": false,
808
781
  "type": "option"
809
782
  },
810
- "project-id": {
811
- "char": "p",
812
- "name": "project-id",
783
+ "pipeline-id": {
784
+ "name": "pipeline-id",
813
785
  "required": true,
814
- "summary": "ID of the DevOps Center project to list work items for.",
786
+ "summary": "ID of the pipeline where the stage is added.",
787
+ "hasDynamicHelp": false,
788
+ "multiple": false,
789
+ "type": "option"
790
+ },
791
+ "name": {
792
+ "char": "n",
793
+ "name": "name",
794
+ "required": true,
795
+ "summary": "Name of the pipeline stage, such as Integration, UAT, or Staging.",
796
+ "hasDynamicHelp": false,
797
+ "multiple": false,
798
+ "type": "option"
799
+ },
800
+ "next-stage-id": {
801
+ "name": "next-stage-id",
802
+ "required": true,
803
+ "summary": "ID of the stage that follows the new stage in the pipeline.",
815
804
  "hasDynamicHelp": false,
816
805
  "multiple": false,
817
806
  "type": "option"
@@ -819,29 +808,30 @@
819
808
  },
820
809
  "hasDynamicHelp": true,
821
810
  "hiddenAliases": [],
822
- "id": "devops:work-item:list",
811
+ "id": "devops:pipeline:stage:add",
823
812
  "pluginAlias": "@salesforce/plugin-devops-center",
824
813
  "pluginName": "@salesforce/plugin-devops-center",
825
814
  "pluginType": "core",
826
815
  "strict": true,
827
- "summary": "List all work items for a DevOps Center project.",
816
+ "summary": "Add a stage to a DevOps Center pipeline.",
828
817
  "enableJsonFlag": true,
829
818
  "isESM": true,
830
819
  "relativePath": [
831
820
  "lib",
832
821
  "commands",
833
822
  "devops",
834
- "work-item",
835
- "list.js"
823
+ "pipeline",
824
+ "stage",
825
+ "add.js"
836
826
  ]
837
827
  },
838
- "devops:pipeline:stage:add": {
828
+ "devops:stage:branch:add": {
839
829
  "aliases": [],
840
830
  "args": {},
841
- "description": "Inserts an empty stage before the stage specified by `--next-stage-id`. The new stage doesn't include a branch or environment. Configure them separately after you create the stage.",
831
+ "description": "By default, the branch must exist in the repository. Use --create-vcs-branch to create a branch if it doesn't exist.\nEach pipeline stage supports only one branch. Adding a branch replaces any existing branch linked to the pipeline stage.",
842
832
  "examples": [
843
- "Add a Development stage before Integration in a specific pipeline.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001 --name \"Development\" --next-stage-id 0Xc000000000002",
844
- "Add a QA stage before UAT in a specific pipeline.\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001 --name \"QA\" --next-stage-id 0Xc000000000003"
833
+ "Add an existing branch to a stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000001 --branch-name main",
834
+ "Create and add a branch to a pipeline stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000002 --branch-name integration --create-vcs-branch"
845
835
  ],
846
836
  "flags": {
847
837
  "json": {
@@ -879,55 +869,60 @@
879
869
  "pipeline-id": {
880
870
  "name": "pipeline-id",
881
871
  "required": true,
882
- "summary": "ID of the pipeline where the stage is added.",
872
+ "summary": "ID of the pipeline that contains the stage.",
883
873
  "hasDynamicHelp": false,
884
874
  "multiple": false,
885
875
  "type": "option"
886
876
  },
887
- "name": {
888
- "char": "n",
889
- "name": "name",
877
+ "stage-id": {
878
+ "name": "stage-id",
890
879
  "required": true,
891
- "summary": "Name of the pipeline stage, such as Integration, UAT, or Staging.",
880
+ "summary": "ID of the pipeline stage to associate the branch with.",
892
881
  "hasDynamicHelp": false,
893
882
  "multiple": false,
894
883
  "type": "option"
895
884
  },
896
- "next-stage-id": {
897
- "name": "next-stage-id",
885
+ "branch-name": {
886
+ "char": "b",
887
+ "name": "branch-name",
898
888
  "required": true,
899
- "summary": "ID of the stage that follows the new stage in the pipeline.",
889
+ "summary": "Name of the repository branch to assign to the stage.",
900
890
  "hasDynamicHelp": false,
901
891
  "multiple": false,
902
892
  "type": "option"
893
+ },
894
+ "create-vcs-branch": {
895
+ "name": "create-vcs-branch",
896
+ "summary": "Create the branch in the remote repository if it doesn't already exist.",
897
+ "allowNo": false,
898
+ "type": "boolean"
903
899
  }
904
900
  },
905
901
  "hasDynamicHelp": true,
906
902
  "hiddenAliases": [],
907
- "id": "devops:pipeline:stage:add",
903
+ "id": "devops:stage:branch:add",
908
904
  "pluginAlias": "@salesforce/plugin-devops-center",
909
905
  "pluginName": "@salesforce/plugin-devops-center",
910
906
  "pluginType": "core",
911
907
  "strict": true,
912
- "summary": "Add a stage to a DevOps Center pipeline.",
908
+ "summary": "Add a source code repository branch to a pipeline stage.",
913
909
  "enableJsonFlag": true,
914
910
  "isESM": true,
915
911
  "relativePath": [
916
912
  "lib",
917
913
  "commands",
918
914
  "devops",
919
- "pipeline",
920
915
  "stage",
916
+ "branch",
921
917
  "add.js"
922
918
  ]
923
919
  },
924
- "devops:work-item:status:update": {
920
+ "devops:stage:environment:add": {
925
921
  "aliases": [],
926
922
  "args": {},
927
- "description": "Allowed statuses are \"In Progress\" and \"Ready to Promote\".",
923
+ "description": "This command triggers an OAuth flow to authenticate the environment. A browser window opens automatically for you to log in.",
928
924
  "examples": [
929
- "Update a work item status by its name to indicate the work is underway:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-name WI-000001 --status \"In Progress\"",
930
- "Update a work item status by its ID to indicate the changes are ready for promotion:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --work-item-id 0Wx000000000001 --status \"Ready to Promote\""
925
+ "Add a production environment to a stage using its ID:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --stage-id 0Xp000000000001 --environment-name Production_Org --org-type Production"
931
926
  ],
932
927
  "flags": {
933
928
  "json": {
@@ -962,52 +957,67 @@
962
957
  "multiple": false,
963
958
  "type": "option"
964
959
  },
965
- "work-item-name": {
966
- "char": "n",
967
- "name": "work-item-name",
968
- "summary": "Name of the work item, such as WI-000001.",
960
+ "pipeline-id": {
961
+ "name": "pipeline-id",
962
+ "required": true,
963
+ "summary": "ID of the pipeline that contains the stage.",
969
964
  "hasDynamicHelp": false,
970
965
  "multiple": false,
971
966
  "type": "option"
972
967
  },
973
- "work-item-id": {
974
- "char": "w",
975
- "name": "work-item-id",
976
- "summary": "ID of the work item.",
968
+ "stage-id": {
969
+ "name": "stage-id",
970
+ "required": true,
971
+ "summary": "ID of the pipeline stage.",
977
972
  "hasDynamicHelp": false,
978
973
  "multiple": false,
979
974
  "type": "option"
980
975
  },
981
- "status": {
982
- "name": "status",
976
+ "environment-name": {
977
+ "char": "e",
978
+ "name": "environment-name",
983
979
  "required": true,
984
- "summary": "Status to set for the work item. Allowed values: \"In Progress\", \"Ready to Promote\".",
980
+ "summary": "Name of the environment.",
981
+ "hasDynamicHelp": false,
982
+ "multiple": false,
983
+ "type": "option"
984
+ },
985
+ "org-type": {
986
+ "name": "org-type",
987
+ "required": true,
988
+ "summary": "Type of the Salesforce org. Valid values: Production, Sandbox.",
985
989
  "hasDynamicHelp": false,
986
990
  "multiple": false,
987
991
  "options": [
988
- "In Progress",
989
- "Ready to Promote"
992
+ "Production",
993
+ "Sandbox"
990
994
  ],
991
995
  "type": "option"
996
+ },
997
+ "no-browser": {
998
+ "name": "no-browser",
999
+ "summary": "Don't auto-open the browser for OAuth authentication. The redirect URL is printed for manual use.",
1000
+ "allowNo": false,
1001
+ "type": "boolean"
992
1002
  }
993
1003
  },
994
1004
  "hasDynamicHelp": true,
995
1005
  "hiddenAliases": [],
996
- "id": "devops:work-item:status:update",
1006
+ "id": "devops:stage:environment:add",
997
1007
  "pluginAlias": "@salesforce/plugin-devops-center",
998
1008
  "pluginName": "@salesforce/plugin-devops-center",
999
1009
  "pluginType": "core",
1000
1010
  "strict": true,
1001
- "summary": "Update the status of a work item in DevOps Center.",
1011
+ "summary": "Add a Salesforce environment to a pipeline stage.",
1002
1012
  "enableJsonFlag": true,
1003
1013
  "isESM": true,
1004
1014
  "relativePath": [
1005
1015
  "lib",
1006
1016
  "commands",
1007
1017
  "devops",
1008
- "work-item",
1009
- "status",
1010
- "update.js"
1018
+ "stage",
1019
+ "environment",
1020
+ "add.js"
1011
1021
  ]
1012
1022
  },
1013
1023
  "project:deploy:pipeline:quick": {
@@ -1587,5 +1597,5 @@
1587
1597
  ]
1588
1598
  }
1589
1599
  },
1590
- "version": "1.3.0"
1600
+ "version": "1.4.0"
1591
1601
  }