@salesforce/plugin-devops-center 1.2.28 → 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 (58) hide show
  1. package/README.md +184 -89
  2. package/bin/dev.js +0 -0
  3. package/bin/run.js +0 -0
  4. package/lib/commands/devops/pipeline/activate.js +5 -0
  5. package/lib/commands/devops/pipeline/activate.js.map +1 -1
  6. package/lib/commands/devops/pipeline/create.d.ts +2 -1
  7. package/lib/commands/devops/pipeline/create.js +37 -7
  8. package/lib/commands/devops/pipeline/create.js.map +1 -1
  9. package/lib/commands/devops/pipeline/{attach-project.d.ts → project/add.d.ts} +2 -2
  10. package/lib/commands/devops/pipeline/{attach-project.js → project/add.js} +5 -5
  11. package/lib/commands/devops/pipeline/project/add.js.map +1 -0
  12. package/lib/commands/devops/pull-request/create.d.ts +0 -2
  13. package/lib/commands/devops/pull-request/create.js +8 -40
  14. package/lib/commands/devops/pull-request/create.js.map +1 -1
  15. package/lib/commands/devops/stage/branch/add.d.ts +17 -0
  16. package/lib/commands/devops/stage/branch/add.js +110 -0
  17. package/lib/commands/devops/stage/branch/add.js.map +1 -0
  18. package/lib/commands/devops/stage/environment/add.d.ts +18 -0
  19. package/lib/commands/devops/stage/environment/add.js +141 -0
  20. package/lib/commands/devops/stage/environment/add.js.map +1 -0
  21. package/lib/commands/devops/work-item/{status/update.d.ts → update.d.ts} +6 -4
  22. package/lib/commands/devops/work-item/{status/update.js → update.js} +30 -9
  23. package/lib/commands/devops/work-item/update.js.map +1 -0
  24. package/lib/utils/addStageBranch.d.ts +22 -0
  25. package/lib/utils/addStageBranch.js +48 -0
  26. package/lib/utils/addStageBranch.js.map +1 -0
  27. package/lib/utils/addStageEnvironment.d.ts +92 -0
  28. package/lib/utils/addStageEnvironment.js +120 -0
  29. package/lib/utils/addStageEnvironment.js.map +1 -0
  30. package/lib/utils/createPipeline.d.ts +14 -1
  31. package/lib/utils/createPipeline.js +52 -6
  32. package/lib/utils/createPipeline.js.map +1 -1
  33. package/lib/utils/createProject.js +1 -0
  34. package/lib/utils/createProject.js.map +1 -1
  35. package/lib/utils/createPullRequest.d.ts +7 -19
  36. package/lib/utils/createPullRequest.js +49 -121
  37. package/lib/utils/createPullRequest.js.map +1 -1
  38. package/lib/utils/{updateWorkItemStatus.d.ts → updateWorkItem.d.ts} +12 -14
  39. package/lib/utils/{updateWorkItemStatus.js → updateWorkItem.js} +28 -26
  40. package/lib/utils/updateWorkItem.js.map +1 -0
  41. package/messages/devops.pipeline.create.md +26 -6
  42. package/messages/devops.pull-request.create.md +6 -30
  43. package/messages/devops.stage.branch.add.md +46 -0
  44. package/messages/devops.stage.environment.add.md +65 -0
  45. package/messages/devops.work-item.update.md +45 -0
  46. package/npm-shrinkwrap.json +2 -2
  47. package/oclif.manifest.json +470 -267
  48. package/package.json +3 -3
  49. package/schemas/devops-pull__request-create.json +0 -3
  50. package/schemas/devops-stage-branch-add.json +34 -0
  51. package/schemas/devops-stage-environment-add.json +47 -0
  52. package/schemas/{devops-work__item-status-update.json → devops-work__item-update.json} +8 -2
  53. package/lib/commands/devops/pipeline/attach-project.js.map +0 -1
  54. package/lib/commands/devops/work-item/status/update.js.map +0 -1
  55. package/lib/utils/updateWorkItemStatus.js.map +0 -1
  56. package/messages/devops.work-item.status.update.md +0 -29
  57. /package/messages/{devops.pipeline.attach-project.md → devops.pipeline.project.add.md} +0 -0
  58. /package/schemas/{devops-pipeline-attach__project.json → devops-pipeline-project-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"
109
154
  },
110
- "pipeline-id": {
111
- "name": "pipeline-id",
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"
162
+ },
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'.",
225
288
  "hasDynamicHelp": false,
226
289
  "multiple": false,
227
290
  "type": "option"
228
291
  },
229
- "bitbucket-project": {
230
- "name": "bitbucket-project",
231
- "summary": "Bitbucket project key for the repository. Used when creating a Bitbucket repository with '--create-repo'.",
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'.",
295
+ "hasDynamicHelp": false,
296
+ "multiple": false,
297
+ "type": "option"
298
+ },
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,11 +371,96 @@
301
371
  "multiple": false,
302
372
  "type": "option"
303
373
  },
304
- "name": {
374
+ "work-item-name": {
305
375
  "char": "n",
306
- "name": "name",
376
+ "name": "work-item-name",
377
+ "summary": "Name of the work item, such as WI-000001.",
378
+ "hasDynamicHelp": false,
379
+ "multiple": false,
380
+ "type": "option"
381
+ },
382
+ "work-item-id": {
383
+ "char": "w",
384
+ "name": "work-item-id",
385
+ "summary": "ID of the work item.",
386
+ "hasDynamicHelp": false,
387
+ "multiple": false,
388
+ "type": "option"
389
+ }
390
+ },
391
+ "hasDynamicHelp": true,
392
+ "hiddenAliases": [],
393
+ "id": "devops:pull-request:create",
394
+ "pluginAlias": "@salesforce/plugin-devops-center",
395
+ "pluginName": "@salesforce/plugin-devops-center",
396
+ "pluginType": "core",
397
+ "strict": true,
398
+ "summary": "Create a pull request for a work item branch.",
399
+ "enableJsonFlag": true,
400
+ "isESM": true,
401
+ "relativePath": [
402
+ "lib",
403
+ "commands",
404
+ "devops",
405
+ "pull-request",
406
+ "create.js"
407
+ ]
408
+ },
409
+ "devops:work-item:create": {
410
+ "aliases": [],
411
+ "args": {},
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.",
413
+ "examples": [
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\""
416
+ ],
417
+ "flags": {
418
+ "json": {
419
+ "description": "Format output as json.",
420
+ "helpGroup": "GLOBAL",
421
+ "name": "json",
422
+ "allowNo": false,
423
+ "type": "boolean"
424
+ },
425
+ "flags-dir": {
426
+ "helpGroup": "GLOBAL",
427
+ "name": "flags-dir",
428
+ "summary": "Import flag values from a directory.",
429
+ "hasDynamicHelp": false,
430
+ "multiple": false,
431
+ "type": "option"
432
+ },
433
+ "target-org": {
434
+ "char": "o",
435
+ "name": "target-org",
436
+ "noCacheDefault": true,
307
437
  "required": true,
308
- "summary": "Name of the new DevOps Center project.",
438
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
439
+ "hasDynamicHelp": true,
440
+ "multiple": false,
441
+ "type": "option"
442
+ },
443
+ "api-version": {
444
+ "description": "Override the api version used for api requests made by this command",
445
+ "name": "api-version",
446
+ "hasDynamicHelp": false,
447
+ "multiple": false,
448
+ "type": "option"
449
+ },
450
+ "project-id": {
451
+ "char": "p",
452
+ "name": "project-id",
453
+ "required": true,
454
+ "summary": "ID of the DevOps Center project to create the work item in.",
455
+ "hasDynamicHelp": false,
456
+ "multiple": false,
457
+ "type": "option"
458
+ },
459
+ "subject": {
460
+ "char": "s",
461
+ "name": "subject",
462
+ "required": true,
463
+ "summary": "Subject (title) of the new work item.",
309
464
  "hasDynamicHelp": false,
310
465
  "multiple": false,
311
466
  "type": "option"
@@ -313,7 +468,7 @@
313
468
  "description": {
314
469
  "char": "d",
315
470
  "name": "description",
316
- "summary": "Description of the new project; if not specified, the description is blank.",
471
+ "summary": "Description of the new work item; if not specified, the description is blank.",
317
472
  "hasDynamicHelp": false,
318
473
  "multiple": false,
319
474
  "type": "option"
@@ -321,29 +476,29 @@
321
476
  },
322
477
  "hasDynamicHelp": true,
323
478
  "hiddenAliases": [],
324
- "id": "devops:project:create",
479
+ "id": "devops:work-item:create",
325
480
  "pluginAlias": "@salesforce/plugin-devops-center",
326
481
  "pluginName": "@salesforce/plugin-devops-center",
327
482
  "pluginType": "core",
328
483
  "strict": true,
329
- "summary": "Create a DevOps Center project in a DevOps Center org.",
484
+ "summary": "Create a new work item in a DevOps Center project.",
330
485
  "enableJsonFlag": true,
331
486
  "isESM": true,
332
487
  "relativePath": [
333
488
  "lib",
334
489
  "commands",
335
490
  "devops",
336
- "project",
491
+ "work-item",
337
492
  "create.js"
338
493
  ]
339
494
  },
340
- "devops:project:list": {
495
+ "devops:work-item:list": {
341
496
  "aliases": [],
342
497
  "args": {},
343
- "description": "This command queries the DevopsProject standard object and returns the project Id, Name, and Description for each project found.",
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.",
344
499
  "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"
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"
347
502
  ],
348
503
  "flags": {
349
504
  "json": {
@@ -377,33 +532,43 @@
377
532
  "hasDynamicHelp": false,
378
533
  "multiple": false,
379
534
  "type": "option"
535
+ },
536
+ "project-id": {
537
+ "char": "p",
538
+ "name": "project-id",
539
+ "required": true,
540
+ "summary": "ID of the DevOps Center project to list work items for.",
541
+ "hasDynamicHelp": false,
542
+ "multiple": false,
543
+ "type": "option"
380
544
  }
381
545
  },
382
546
  "hasDynamicHelp": true,
383
547
  "hiddenAliases": [],
384
- "id": "devops:project:list",
548
+ "id": "devops:work-item:list",
385
549
  "pluginAlias": "@salesforce/plugin-devops-center",
386
550
  "pluginName": "@salesforce/plugin-devops-center",
387
551
  "pluginType": "core",
388
552
  "strict": true,
389
- "summary": "List all DevOps Center projects in a Salesforce org.",
553
+ "summary": "List all work items for a DevOps Center project.",
390
554
  "enableJsonFlag": true,
391
555
  "isESM": true,
392
556
  "relativePath": [
393
557
  "lib",
394
558
  "commands",
395
559
  "devops",
396
- "project",
560
+ "work-item",
397
561
  "list.js"
398
562
  ]
399
563
  },
400
- "devops:pull-request:create": {
564
+ "devops:work-item:update": {
401
565
  "aliases": [],
402
566
  "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.",
567
+ "description": "Update the subject, description, or status of a work item. At least one of --subject, --description, or --status must be provided.",
404
568
  "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\""
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\""
407
572
  ],
408
573
  "flags": {
409
574
  "json": {
@@ -454,16 +619,188 @@
454
619
  "multiple": false,
455
620
  "type": "option"
456
621
  },
457
- "title": {
458
- "name": "title",
459
- "summary": "Title of the pull request.",
622
+ "subject": {
623
+ "name": "subject",
624
+ "summary": "New subject for the work item.",
625
+ "hasDynamicHelp": false,
626
+ "multiple": false,
627
+ "type": "option"
628
+ },
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\".",
639
+ "hasDynamicHelp": false,
640
+ "multiple": false,
641
+ "options": [
642
+ "In Progress",
643
+ "Ready to Promote"
644
+ ],
645
+ "type": "option"
646
+ }
647
+ },
648
+ "hasDynamicHelp": true,
649
+ "hiddenAliases": [],
650
+ "id": "devops:work-item:update",
651
+ "pluginAlias": "@salesforce/plugin-devops-center",
652
+ "pluginName": "@salesforce/plugin-devops-center",
653
+ "pluginType": "core",
654
+ "strict": true,
655
+ "summary": "Update a work item in DevOps Center.",
656
+ "enableJsonFlag": true,
657
+ "isESM": true,
658
+ "relativePath": [
659
+ "lib",
660
+ "commands",
661
+ "devops",
662
+ "work-item",
663
+ "update.js"
664
+ ]
665
+ },
666
+ "devops:pipeline:project:add": {
667
+ "aliases": [],
668
+ "args": {},
669
+ "description": "You can attach a project to only one pipeline.",
670
+ "examples": [
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"
672
+ ],
673
+ "flags": {
674
+ "json": {
675
+ "description": "Format output as json.",
676
+ "helpGroup": "GLOBAL",
677
+ "name": "json",
678
+ "allowNo": false,
679
+ "type": "boolean"
680
+ },
681
+ "flags-dir": {
682
+ "helpGroup": "GLOBAL",
683
+ "name": "flags-dir",
684
+ "summary": "Import flag values from a directory.",
685
+ "hasDynamicHelp": false,
686
+ "multiple": false,
687
+ "type": "option"
688
+ },
689
+ "target-org": {
690
+ "char": "o",
691
+ "name": "target-org",
692
+ "noCacheDefault": true,
693
+ "required": true,
694
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
695
+ "hasDynamicHelp": true,
696
+ "multiple": false,
697
+ "type": "option"
698
+ },
699
+ "api-version": {
700
+ "description": "Override the api version used for api requests made by this command",
701
+ "name": "api-version",
702
+ "hasDynamicHelp": false,
703
+ "multiple": false,
704
+ "type": "option"
705
+ },
706
+ "pipeline-id": {
707
+ "name": "pipeline-id",
708
+ "required": true,
709
+ "summary": "ID of the pipeline.",
710
+ "hasDynamicHelp": false,
711
+ "multiple": false,
712
+ "type": "option"
713
+ },
714
+ "project-id": {
715
+ "name": "project-id",
716
+ "required": true,
717
+ "summary": "ID of the DevOps Center project.",
718
+ "hasDynamicHelp": false,
719
+ "multiple": false,
720
+ "type": "option"
721
+ }
722
+ },
723
+ "hasDynamicHelp": true,
724
+ "hiddenAliases": [],
725
+ "id": "devops:pipeline:project:add",
726
+ "pluginAlias": "@salesforce/plugin-devops-center",
727
+ "pluginName": "@salesforce/plugin-devops-center",
728
+ "pluginType": "core",
729
+ "strict": true,
730
+ "summary": "Attach a DevOps Center project to a pipeline.",
731
+ "enableJsonFlag": true,
732
+ "isESM": true,
733
+ "relativePath": [
734
+ "lib",
735
+ "commands",
736
+ "devops",
737
+ "pipeline",
738
+ "project",
739
+ "add.js"
740
+ ]
741
+ },
742
+ "devops:pipeline:stage:add": {
743
+ "aliases": [],
744
+ "args": {},
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.",
746
+ "examples": [
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"
749
+ ],
750
+ "flags": {
751
+ "json": {
752
+ "description": "Format output as json.",
753
+ "helpGroup": "GLOBAL",
754
+ "name": "json",
755
+ "allowNo": false,
756
+ "type": "boolean"
757
+ },
758
+ "flags-dir": {
759
+ "helpGroup": "GLOBAL",
760
+ "name": "flags-dir",
761
+ "summary": "Import flag values from a directory.",
762
+ "hasDynamicHelp": false,
763
+ "multiple": false,
764
+ "type": "option"
765
+ },
766
+ "target-org": {
767
+ "char": "o",
768
+ "name": "target-org",
769
+ "noCacheDefault": true,
770
+ "required": true,
771
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
772
+ "hasDynamicHelp": true,
773
+ "multiple": false,
774
+ "type": "option"
775
+ },
776
+ "api-version": {
777
+ "description": "Override the api version used for api requests made by this command",
778
+ "name": "api-version",
779
+ "hasDynamicHelp": false,
780
+ "multiple": false,
781
+ "type": "option"
782
+ },
783
+ "pipeline-id": {
784
+ "name": "pipeline-id",
785
+ "required": true,
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.",
460
796
  "hasDynamicHelp": false,
461
797
  "multiple": false,
462
798
  "type": "option"
463
799
  },
464
- "body": {
465
- "name": "body",
466
- "summary": "Description of the pull request.",
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.",
467
804
  "hasDynamicHelp": false,
468
805
  "multiple": false,
469
806
  "type": "option"
@@ -471,29 +808,30 @@
471
808
  },
472
809
  "hasDynamicHelp": true,
473
810
  "hiddenAliases": [],
474
- "id": "devops:pull-request:create",
811
+ "id": "devops:pipeline:stage:add",
475
812
  "pluginAlias": "@salesforce/plugin-devops-center",
476
813
  "pluginName": "@salesforce/plugin-devops-center",
477
814
  "pluginType": "core",
478
815
  "strict": true,
479
- "summary": "Create a pull request for a work item branch.",
816
+ "summary": "Add a stage to a DevOps Center pipeline.",
480
817
  "enableJsonFlag": true,
481
818
  "isESM": true,
482
819
  "relativePath": [
483
820
  "lib",
484
821
  "commands",
485
822
  "devops",
486
- "pull-request",
487
- "create.js"
823
+ "pipeline",
824
+ "stage",
825
+ "add.js"
488
826
  ]
489
827
  },
490
- "devops:work-item:create": {
828
+ "devops:stage:branch:add": {
491
829
  "aliases": [],
492
830
  "args": {},
493
- "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.",
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.",
494
832
  "examples": [
495
- "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\"",
496
- "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\""
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"
497
835
  ],
498
836
  "flags": {
499
837
  "json": {
@@ -528,58 +866,63 @@
528
866
  "multiple": false,
529
867
  "type": "option"
530
868
  },
531
- "project-id": {
532
- "char": "p",
533
- "name": "project-id",
869
+ "pipeline-id": {
870
+ "name": "pipeline-id",
534
871
  "required": true,
535
- "summary": "ID of the DevOps Center project to create the work item in.",
872
+ "summary": "ID of the pipeline that contains the stage.",
536
873
  "hasDynamicHelp": false,
537
874
  "multiple": false,
538
875
  "type": "option"
539
876
  },
540
- "subject": {
541
- "char": "s",
542
- "name": "subject",
877
+ "stage-id": {
878
+ "name": "stage-id",
543
879
  "required": true,
544
- "summary": "Subject (title) of the new work item.",
880
+ "summary": "ID of the pipeline stage to associate the branch with.",
545
881
  "hasDynamicHelp": false,
546
882
  "multiple": false,
547
883
  "type": "option"
548
884
  },
549
- "description": {
550
- "char": "d",
551
- "name": "description",
552
- "summary": "Description of the new work item; if not specified, the description is blank.",
885
+ "branch-name": {
886
+ "char": "b",
887
+ "name": "branch-name",
888
+ "required": true,
889
+ "summary": "Name of the repository branch to assign to the stage.",
553
890
  "hasDynamicHelp": false,
554
891
  "multiple": false,
555
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"
556
899
  }
557
900
  },
558
901
  "hasDynamicHelp": true,
559
902
  "hiddenAliases": [],
560
- "id": "devops:work-item:create",
903
+ "id": "devops:stage:branch:add",
561
904
  "pluginAlias": "@salesforce/plugin-devops-center",
562
905
  "pluginName": "@salesforce/plugin-devops-center",
563
906
  "pluginType": "core",
564
907
  "strict": true,
565
- "summary": "Create a new work item in a DevOps Center project.",
908
+ "summary": "Add a source code repository branch to a pipeline stage.",
566
909
  "enableJsonFlag": true,
567
910
  "isESM": true,
568
911
  "relativePath": [
569
912
  "lib",
570
913
  "commands",
571
914
  "devops",
572
- "work-item",
573
- "create.js"
915
+ "stage",
916
+ "branch",
917
+ "add.js"
574
918
  ]
575
919
  },
576
- "devops:work-item:list": {
920
+ "devops:stage:environment:add": {
577
921
  "aliases": [],
578
922
  "args": {},
579
- "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.",
923
+ "description": "This command triggers an OAuth flow to authenticate the environment. A browser window opens automatically for you to log in.",
580
924
  "examples": [
581
- "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",
582
- "List work items using JSON output:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --project-id 1Qg000000000001 --json"
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"
583
926
  ],
584
927
  "flags": {
585
928
  "json": {
@@ -614,32 +957,67 @@
614
957
  "multiple": false,
615
958
  "type": "option"
616
959
  },
617
- "project-id": {
618
- "char": "p",
619
- "name": "project-id",
960
+ "pipeline-id": {
961
+ "name": "pipeline-id",
620
962
  "required": true,
621
- "summary": "ID of the DevOps Center project to list work items for.",
963
+ "summary": "ID of the pipeline that contains the stage.",
964
+ "hasDynamicHelp": false,
965
+ "multiple": false,
966
+ "type": "option"
967
+ },
968
+ "stage-id": {
969
+ "name": "stage-id",
970
+ "required": true,
971
+ "summary": "ID of the pipeline stage.",
972
+ "hasDynamicHelp": false,
973
+ "multiple": false,
974
+ "type": "option"
975
+ },
976
+ "environment-name": {
977
+ "char": "e",
978
+ "name": "environment-name",
979
+ "required": true,
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.",
622
989
  "hasDynamicHelp": false,
623
990
  "multiple": false,
991
+ "options": [
992
+ "Production",
993
+ "Sandbox"
994
+ ],
624
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"
625
1002
  }
626
1003
  },
627
1004
  "hasDynamicHelp": true,
628
1005
  "hiddenAliases": [],
629
- "id": "devops:work-item:list",
1006
+ "id": "devops:stage:environment:add",
630
1007
  "pluginAlias": "@salesforce/plugin-devops-center",
631
1008
  "pluginName": "@salesforce/plugin-devops-center",
632
1009
  "pluginType": "core",
633
1010
  "strict": true,
634
- "summary": "List all work items for a DevOps Center project.",
1011
+ "summary": "Add a Salesforce environment to a pipeline stage.",
635
1012
  "enableJsonFlag": true,
636
1013
  "isESM": true,
637
1014
  "relativePath": [
638
1015
  "lib",
639
1016
  "commands",
640
1017
  "devops",
641
- "work-item",
642
- "list.js"
1018
+ "stage",
1019
+ "environment",
1020
+ "add.js"
643
1021
  ]
644
1022
  },
645
1023
  "project:deploy:pipeline:quick": {
@@ -1217,182 +1595,7 @@
1217
1595
  "pipeline",
1218
1596
  "validate.js"
1219
1597
  ]
1220
- },
1221
- "devops:pipeline:stage:add": {
1222
- "aliases": [],
1223
- "args": {},
1224
- "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.",
1225
- "examples": [
1226
- "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",
1227
- "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"
1228
- ],
1229
- "flags": {
1230
- "json": {
1231
- "description": "Format output as json.",
1232
- "helpGroup": "GLOBAL",
1233
- "name": "json",
1234
- "allowNo": false,
1235
- "type": "boolean"
1236
- },
1237
- "flags-dir": {
1238
- "helpGroup": "GLOBAL",
1239
- "name": "flags-dir",
1240
- "summary": "Import flag values from a directory.",
1241
- "hasDynamicHelp": false,
1242
- "multiple": false,
1243
- "type": "option"
1244
- },
1245
- "target-org": {
1246
- "char": "o",
1247
- "name": "target-org",
1248
- "noCacheDefault": true,
1249
- "required": true,
1250
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1251
- "hasDynamicHelp": true,
1252
- "multiple": false,
1253
- "type": "option"
1254
- },
1255
- "api-version": {
1256
- "description": "Override the api version used for api requests made by this command",
1257
- "name": "api-version",
1258
- "hasDynamicHelp": false,
1259
- "multiple": false,
1260
- "type": "option"
1261
- },
1262
- "pipeline-id": {
1263
- "name": "pipeline-id",
1264
- "required": true,
1265
- "summary": "ID of the pipeline where the stage is added.",
1266
- "hasDynamicHelp": false,
1267
- "multiple": false,
1268
- "type": "option"
1269
- },
1270
- "name": {
1271
- "char": "n",
1272
- "name": "name",
1273
- "required": true,
1274
- "summary": "Name of the pipeline stage, such as Integration, UAT, or Staging.",
1275
- "hasDynamicHelp": false,
1276
- "multiple": false,
1277
- "type": "option"
1278
- },
1279
- "next-stage-id": {
1280
- "name": "next-stage-id",
1281
- "required": true,
1282
- "summary": "ID of the stage that follows the new stage in the pipeline.",
1283
- "hasDynamicHelp": false,
1284
- "multiple": false,
1285
- "type": "option"
1286
- }
1287
- },
1288
- "hasDynamicHelp": true,
1289
- "hiddenAliases": [],
1290
- "id": "devops:pipeline:stage:add",
1291
- "pluginAlias": "@salesforce/plugin-devops-center",
1292
- "pluginName": "@salesforce/plugin-devops-center",
1293
- "pluginType": "core",
1294
- "strict": true,
1295
- "summary": "Add a stage to a DevOps Center pipeline.",
1296
- "enableJsonFlag": true,
1297
- "isESM": true,
1298
- "relativePath": [
1299
- "lib",
1300
- "commands",
1301
- "devops",
1302
- "pipeline",
1303
- "stage",
1304
- "add.js"
1305
- ]
1306
- },
1307
- "devops:work-item:status:update": {
1308
- "aliases": [],
1309
- "args": {},
1310
- "description": "Allowed statuses are \"In Progress\" and \"Ready to Promote\".",
1311
- "examples": [
1312
- "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\"",
1313
- "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\""
1314
- ],
1315
- "flags": {
1316
- "json": {
1317
- "description": "Format output as json.",
1318
- "helpGroup": "GLOBAL",
1319
- "name": "json",
1320
- "allowNo": false,
1321
- "type": "boolean"
1322
- },
1323
- "flags-dir": {
1324
- "helpGroup": "GLOBAL",
1325
- "name": "flags-dir",
1326
- "summary": "Import flag values from a directory.",
1327
- "hasDynamicHelp": false,
1328
- "multiple": false,
1329
- "type": "option"
1330
- },
1331
- "target-org": {
1332
- "char": "o",
1333
- "name": "target-org",
1334
- "noCacheDefault": true,
1335
- "required": true,
1336
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
1337
- "hasDynamicHelp": true,
1338
- "multiple": false,
1339
- "type": "option"
1340
- },
1341
- "api-version": {
1342
- "description": "Override the api version used for api requests made by this command",
1343
- "name": "api-version",
1344
- "hasDynamicHelp": false,
1345
- "multiple": false,
1346
- "type": "option"
1347
- },
1348
- "work-item-name": {
1349
- "char": "n",
1350
- "name": "work-item-name",
1351
- "summary": "Name of the work item, such as WI-000001.",
1352
- "hasDynamicHelp": false,
1353
- "multiple": false,
1354
- "type": "option"
1355
- },
1356
- "work-item-id": {
1357
- "char": "w",
1358
- "name": "work-item-id",
1359
- "summary": "ID of the work item.",
1360
- "hasDynamicHelp": false,
1361
- "multiple": false,
1362
- "type": "option"
1363
- },
1364
- "status": {
1365
- "name": "status",
1366
- "required": true,
1367
- "summary": "Status to set for the work item. Allowed values: \"In Progress\", \"Ready to Promote\".",
1368
- "hasDynamicHelp": false,
1369
- "multiple": false,
1370
- "options": [
1371
- "In Progress",
1372
- "Ready to Promote"
1373
- ],
1374
- "type": "option"
1375
- }
1376
- },
1377
- "hasDynamicHelp": true,
1378
- "hiddenAliases": [],
1379
- "id": "devops:work-item:status:update",
1380
- "pluginAlias": "@salesforce/plugin-devops-center",
1381
- "pluginName": "@salesforce/plugin-devops-center",
1382
- "pluginType": "core",
1383
- "strict": true,
1384
- "summary": "Update the status of a work item in DevOps Center.",
1385
- "enableJsonFlag": true,
1386
- "isESM": true,
1387
- "relativePath": [
1388
- "lib",
1389
- "commands",
1390
- "devops",
1391
- "work-item",
1392
- "status",
1393
- "update.js"
1394
- ]
1395
1598
  }
1396
1599
  },
1397
- "version": "1.2.28"
1600
+ "version": "1.4.0"
1398
1601
  }