@salesforce/plugin-devops-center 2.3.5 → 2.3.7

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.
package/README.md CHANGED
@@ -161,7 +161,7 @@ EXAMPLES
161
161
  https://github.com/myorg/myrepo --project-id 0Hn000000000001 --project-id 0Hn000000000002
162
162
  ```
163
163
 
164
- _See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/pipeline/create.ts)_
164
+ _See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/pipeline/create.ts)_
165
165
 
166
166
  ## `sf devops pipeline get`
167
167
 
@@ -193,7 +193,7 @@ EXAMPLES
193
193
  $ sf devops pipeline get --target-org my-devops-org --pipeline-id 0Do000000000001
194
194
  ```
195
195
 
196
- _See code: [src/commands/devops/pipeline/get.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/pipeline/get.ts)_
196
+ _See code: [src/commands/devops/pipeline/get.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/pipeline/get.ts)_
197
197
 
198
198
  ## `sf devops pipeline list`
199
199
 
@@ -224,7 +224,7 @@ EXAMPLES
224
224
  $ sf devops pipeline list --target-org my-devops-org
225
225
  ```
226
226
 
227
- _See code: [src/commands/devops/pipeline/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/pipeline/list.ts)_
227
+ _See code: [src/commands/devops/pipeline/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/pipeline/list.ts)_
228
228
 
229
229
  ## `sf devops pipeline project add`
230
230
 
@@ -258,7 +258,7 @@ EXAMPLES
258
258
  0Hn000000000001
259
259
  ```
260
260
 
261
- _See code: [src/commands/devops/pipeline/project/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/pipeline/project/add.ts)_
261
+ _See code: [src/commands/devops/pipeline/project/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/pipeline/project/add.ts)_
262
262
 
263
263
  ## `sf devops pipeline project delete`
264
264
 
@@ -292,7 +292,7 @@ EXAMPLES
292
292
  0Hn000000000001
293
293
  ```
294
294
 
295
- _See code: [src/commands/devops/pipeline/project/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/pipeline/project/delete.ts)_
295
+ _See code: [src/commands/devops/pipeline/project/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/pipeline/project/delete.ts)_
296
296
 
297
297
  ## `sf devops pipeline stage add`
298
298
 
@@ -333,7 +333,7 @@ EXAMPLES
333
333
  --next-stage-id 0Xc000000000003
334
334
  ```
335
335
 
336
- _See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/pipeline/stage/add.ts)_
336
+ _See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/pipeline/stage/add.ts)_
337
337
 
338
338
  ## `sf devops pipeline stage delete`
339
339
 
@@ -368,7 +368,7 @@ EXAMPLES
368
368
  0Xc000000000002
369
369
  ```
370
370
 
371
- _See code: [src/commands/devops/pipeline/stage/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/pipeline/stage/delete.ts)_
371
+ _See code: [src/commands/devops/pipeline/stage/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/pipeline/stage/delete.ts)_
372
372
 
373
373
  ## `sf devops pipeline stage update`
374
374
 
@@ -401,7 +401,7 @@ EXAMPLES
401
401
  $ sf devops pipeline stage update --target-org my-devops-org --stage-id 1QV000000000001 --name "Integration"
402
402
  ```
403
403
 
404
- _See code: [src/commands/devops/pipeline/stage/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/pipeline/stage/update.ts)_
404
+ _See code: [src/commands/devops/pipeline/stage/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/pipeline/stage/update.ts)_
405
405
 
406
406
  ## `sf devops pipeline update`
407
407
 
@@ -445,7 +445,7 @@ EXAMPLES
445
445
  Pipeline"
446
446
  ```
447
447
 
448
- _See code: [src/commands/devops/pipeline/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/pipeline/update.ts)_
448
+ _See code: [src/commands/devops/pipeline/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/pipeline/update.ts)_
449
449
 
450
450
  ## `sf devops project create`
451
451
 
@@ -482,7 +482,7 @@ EXAMPLES
482
482
  update"
483
483
  ```
484
484
 
485
- _See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/project/create.ts)_
485
+ _See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/project/create.ts)_
486
486
 
487
487
  ## `sf devops project list`
488
488
 
@@ -517,7 +517,7 @@ EXAMPLES
517
517
  $ sf devops project list --target-org devops-center@example.com
518
518
  ```
519
519
 
520
- _See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/project/list.ts)_
520
+ _See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/project/list.ts)_
521
521
 
522
522
  ## `sf devops project update`
523
523
 
@@ -567,7 +567,7 @@ EXAMPLES
567
567
  --description "Archived" --no-is-active
568
568
  ```
569
569
 
570
- _See code: [src/commands/devops/project/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/project/update.ts)_
570
+ _See code: [src/commands/devops/project/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/project/update.ts)_
571
571
 
572
572
  ## `sf devops promote`
573
573
 
@@ -669,7 +669,7 @@ FLAG DESCRIPTIONS
669
669
  spaces.
670
670
  ```
671
671
 
672
- _See code: [src/commands/devops/promote.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/promote.ts)_
672
+ _See code: [src/commands/devops/promote.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/promote.ts)_
673
673
 
674
674
  ## `sf devops promotion complete`
675
675
 
@@ -752,7 +752,7 @@ FLAG DESCRIPTIONS
752
752
  spaces.
753
753
  ```
754
754
 
755
- _See code: [src/commands/devops/promotion/complete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/promotion/complete.ts)_
755
+ _See code: [src/commands/devops/promotion/complete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/promotion/complete.ts)_
756
756
 
757
757
  ## `sf devops promotion validate`
758
758
 
@@ -793,7 +793,7 @@ EXAMPLES
793
793
  1fk000000000001 --work-item-id 1fk000000000002
794
794
  ```
795
795
 
796
- _See code: [src/commands/devops/promotion/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/promotion/validate.ts)_
796
+ _See code: [src/commands/devops/promotion/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/promotion/validate.ts)_
797
797
 
798
798
  ## `sf devops request status`
799
799
 
@@ -824,7 +824,7 @@ EXAMPLES
824
824
  $ sf devops request status --target-org my-devops-org --request-token a0B000000000001
825
825
  ```
826
826
 
827
- _See code: [src/commands/devops/request/status.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/request/status.ts)_
827
+ _See code: [src/commands/devops/request/status.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/request/status.ts)_
828
828
 
829
829
  ## `sf devops review create`
830
830
 
@@ -861,7 +861,7 @@ EXAMPLES
861
861
  $ sf devops review create --target-org my-devops-org --work-item-id 0Wx000000000001
862
862
  ```
863
863
 
864
- _See code: [src/commands/devops/review/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/review/create.ts)_
864
+ _See code: [src/commands/devops/review/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/review/create.ts)_
865
865
 
866
866
  ## `sf devops stage branch add`
867
867
 
@@ -907,7 +907,7 @@ EXAMPLES
907
907
  --branch-name integration --create-vcs-branch
908
908
  ```
909
909
 
910
- _See code: [src/commands/devops/stage/branch/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/stage/branch/add.ts)_
910
+ _See code: [src/commands/devops/stage/branch/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/stage/branch/add.ts)_
911
911
 
912
912
  ## `sf devops stage branch delete`
913
913
 
@@ -945,7 +945,7 @@ EXAMPLES
945
945
  0Xp000000000001
946
946
  ```
947
947
 
948
- _See code: [src/commands/devops/stage/branch/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/stage/branch/delete.ts)_
948
+ _See code: [src/commands/devops/stage/branch/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/stage/branch/delete.ts)_
949
949
 
950
950
  ## `sf devops stage environment add`
951
951
 
@@ -989,7 +989,7 @@ EXAMPLES
989
989
  Production_Org --org-type Production
990
990
  ```
991
991
 
992
- _See code: [src/commands/devops/stage/environment/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/stage/environment/add.ts)_
992
+ _See code: [src/commands/devops/stage/environment/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/stage/environment/add.ts)_
993
993
 
994
994
  ## `sf devops stage environment delete`
995
995
 
@@ -1023,7 +1023,7 @@ EXAMPLES
1023
1023
  0Xe000000000001
1024
1024
  ```
1025
1025
 
1026
- _See code: [src/commands/devops/stage/environment/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/stage/environment/delete.ts)_
1026
+ _See code: [src/commands/devops/stage/environment/delete.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/stage/environment/delete.ts)_
1027
1027
 
1028
1028
  ## `sf devops work-item combine`
1029
1029
 
@@ -1072,7 +1072,7 @@ FLAG DESCRIPTIONS
1072
1072
  are merged into the parent's branch during promotion.
1073
1073
  ```
1074
1074
 
1075
- _See code: [src/commands/devops/work-item/combine.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/work-item/combine.ts)_
1075
+ _See code: [src/commands/devops/work-item/combine.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/work-item/combine.ts)_
1076
1076
 
1077
1077
  ## `sf devops work-item create`
1078
1078
 
@@ -1113,7 +1113,7 @@ EXAMPLES
1113
1113
  --description "Implement dark mode toggle in settings page"
1114
1114
  ```
1115
1115
 
1116
- _See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/work-item/create.ts)_
1116
+ _See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/work-item/create.ts)_
1117
1117
 
1118
1118
  ## `sf devops work-item list`
1119
1119
 
@@ -1149,7 +1149,7 @@ EXAMPLES
1149
1149
  $ sf devops work-item list --target-org my-devops-org --project-id 1Qg000000000001 --json
1150
1150
  ```
1151
1151
 
1152
- _See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/work-item/list.ts)_
1152
+ _See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/work-item/list.ts)_
1153
1153
 
1154
1154
  ## `sf devops work-item prepare`
1155
1155
 
@@ -1190,7 +1190,7 @@ EXAMPLES
1190
1190
  --target-stage-id 05S000000000002
1191
1191
  ```
1192
1192
 
1193
- _See code: [src/commands/devops/work-item/prepare.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/work-item/prepare.ts)_
1193
+ _See code: [src/commands/devops/work-item/prepare.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/work-item/prepare.ts)_
1194
1194
 
1195
1195
  ## `sf devops work-item update`
1196
1196
 
@@ -1237,7 +1237,7 @@ EXAMPLES
1237
1237
  --description "Users can't log in on mobile" --status "In Progress"
1238
1238
  ```
1239
1239
 
1240
- _See code: [src/commands/devops/work-item/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/devops/work-item/update.ts)_
1240
+ _See code: [src/commands/devops/work-item/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/devops/work-item/update.ts)_
1241
1241
 
1242
1242
  ## `sf project deploy pipeline quick`
1243
1243
 
@@ -1311,7 +1311,7 @@ FLAG DESCRIPTIONS
1311
1311
  "sf project deploy pipeline report".
1312
1312
  ```
1313
1313
 
1314
- _See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/project/deploy/pipeline/quick.ts)_
1314
+ _See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/project/deploy/pipeline/quick.ts)_
1315
1315
 
1316
1316
  ## `sf project deploy pipeline report`
1317
1317
 
@@ -1359,7 +1359,7 @@ FLAG DESCRIPTIONS
1359
1359
  your most recent operation was longer than 3 days ago, this flag won't find the job ID.
1360
1360
  ```
1361
1361
 
1362
- _See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/project/deploy/pipeline/report.ts)_
1362
+ _See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/project/deploy/pipeline/report.ts)_
1363
1363
 
1364
1364
  ## `sf project deploy pipeline resume`
1365
1365
 
@@ -1426,7 +1426,7 @@ FLAG DESCRIPTIONS
1426
1426
  returns the job ID. To check the status of the operation, run "sf project deploy pipeline report".
1427
1427
  ```
1428
1428
 
1429
- _See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/project/deploy/pipeline/resume.ts)_
1429
+ _See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/project/deploy/pipeline/resume.ts)_
1430
1430
 
1431
1431
  ## `sf project deploy pipeline start`
1432
1432
 
@@ -1526,7 +1526,7 @@ FLAG DESCRIPTIONS
1526
1526
  "sf project deploy pipeline report".
1527
1527
  ```
1528
1528
 
1529
- _See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/project/deploy/pipeline/start.ts)_
1529
+ _See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/project/deploy/pipeline/start.ts)_
1530
1530
 
1531
1531
  ## `sf project deploy pipeline validate`
1532
1532
 
@@ -1626,7 +1626,7 @@ FLAG DESCRIPTIONS
1626
1626
  "sf project deploy pipeline report".
1627
1627
  ```
1628
1628
 
1629
- _See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.5/src/commands/project/deploy/pipeline/validate.ts)_
1629
+ _See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/2.3.7/src/commands/project/deploy/pipeline/validate.ts)_
1630
1630
 
1631
1631
  <!-- commandsstop -->
1632
1632
 
@@ -1872,13 +1872,12 @@
1872
1872
  "update.js"
1873
1873
  ]
1874
1874
  },
1875
- "devops:stage:branch:add": {
1875
+ "devops:stage:environment:add": {
1876
1876
  "aliases": [],
1877
1877
  "args": {},
1878
- "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. If the stage already has a branch, the command blocks so the existing branch isn't orphaned; pass --force to replace it.",
1878
+ "description": "This command triggers an OAuth flow to authenticate the environment. A browser window opens automatically for you to log in.",
1879
1879
  "examples": [
1880
- "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",
1881
- "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"
1880
+ "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"
1882
1881
  ],
1883
1882
  "flags": {
1884
1883
  "json": {
@@ -1924,41 +1923,53 @@
1924
1923
  "stage-id": {
1925
1924
  "name": "stage-id",
1926
1925
  "required": true,
1927
- "summary": "ID of the pipeline stage to associate the branch with.",
1926
+ "summary": "ID of the pipeline stage.",
1928
1927
  "hasDynamicHelp": false,
1929
1928
  "multiple": false,
1930
1929
  "type": "option"
1931
1930
  },
1932
- "branch-name": {
1933
- "char": "b",
1934
- "name": "branch-name",
1931
+ "environment-name": {
1932
+ "char": "e",
1933
+ "name": "environment-name",
1935
1934
  "required": true,
1936
- "summary": "Name of the repository branch to assign to the stage.",
1935
+ "summary": "Name of the environment.",
1937
1936
  "hasDynamicHelp": false,
1938
1937
  "multiple": false,
1939
1938
  "type": "option"
1940
1939
  },
1941
- "create-vcs-branch": {
1942
- "name": "create-vcs-branch",
1943
- "summary": "Create the branch in the remote repository if it doesn't already exist.",
1940
+ "org-type": {
1941
+ "name": "org-type",
1942
+ "required": true,
1943
+ "summary": "Type of the Salesforce org. Valid values: Production, Sandbox.",
1944
+ "hasDynamicHelp": false,
1945
+ "multiple": false,
1946
+ "options": [
1947
+ "Production",
1948
+ "Sandbox"
1949
+ ],
1950
+ "type": "option"
1951
+ },
1952
+ "no-browser": {
1953
+ "name": "no-browser",
1954
+ "summary": "Don't auto-open the browser for OAuth authentication. The redirect URL is printed for manual use.",
1944
1955
  "allowNo": false,
1945
1956
  "type": "boolean"
1946
1957
  },
1947
1958
  "force": {
1948
1959
  "name": "force",
1949
- "summary": "Replace the stage's existing branch. By default, the command blocks if the stage already has a branch to avoid orphaning it. With this flag, the new branch is associated and the previous branch record is removed if no other stage references it.",
1960
+ "summary": "Replace the stage's existing environment. By default, the command blocks if the stage already has an environment to avoid orphaning it. With this flag, the new environment is added first and the previous one is removed only after the new environment is associated successfully.",
1950
1961
  "allowNo": false,
1951
1962
  "type": "boolean"
1952
1963
  }
1953
1964
  },
1954
1965
  "hasDynamicHelp": true,
1955
1966
  "hiddenAliases": [],
1956
- "id": "devops:stage:branch:add",
1967
+ "id": "devops:stage:environment:add",
1957
1968
  "pluginAlias": "@salesforce/plugin-devops-center",
1958
1969
  "pluginName": "@salesforce/plugin-devops-center",
1959
1970
  "pluginType": "core",
1960
1971
  "strict": true,
1961
- "summary": "Add a source code repository branch to a pipeline stage.",
1972
+ "summary": "Add a Salesforce environment to a pipeline stage.",
1962
1973
  "enableJsonFlag": true,
1963
1974
  "isESM": true,
1964
1975
  "relativePath": [
@@ -1966,16 +1977,16 @@
1966
1977
  "commands",
1967
1978
  "devops",
1968
1979
  "stage",
1969
- "branch",
1980
+ "environment",
1970
1981
  "add.js"
1971
1982
  ]
1972
1983
  },
1973
- "devops:stage:branch:delete": {
1984
+ "devops:stage:environment:delete": {
1974
1985
  "aliases": [],
1975
1986
  "args": {},
1976
- "description": "Removes the branch linked to the specified pipeline stage. Because branches are configured from right to left (a stage can have a branch only after the stage to its right does), removing a branch also removes the branches from all upstream stages (to the left) in the pipeline, keeping it in a valid state. The branch records in the repository are not deleted; only their association with the stages is removed. The stage must belong to an inactive pipeline.",
1987
+ "description": "Removes the specified environment from the pipeline stage. The environment must belong to an inactive pipeline.",
1977
1988
  "examples": [
1978
- "Delete the branch associated with a pipeline stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000001"
1989
+ "Delete an environment:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001 --environment-id 0Xe000000000001"
1979
1990
  ],
1980
1991
  "flags": {
1981
1992
  "json": {
@@ -2013,15 +2024,16 @@
2013
2024
  "pipeline-id": {
2014
2025
  "name": "pipeline-id",
2015
2026
  "required": true,
2016
- "summary": "ID of the pipeline that contains the stage. Used to verify the pipeline is inactive before deleting.",
2027
+ "summary": "ID of the pipeline. Used to verify the pipeline is inactive before deleting.",
2017
2028
  "hasDynamicHelp": false,
2018
2029
  "multiple": false,
2019
2030
  "type": "option"
2020
2031
  },
2021
- "stage-id": {
2022
- "name": "stage-id",
2032
+ "environment-id": {
2033
+ "char": "e",
2034
+ "name": "environment-id",
2023
2035
  "required": true,
2024
- "summary": "ID of the pipeline stage whose branch you want to delete.",
2036
+ "summary": "ID of the environment to delete.",
2025
2037
  "hasDynamicHelp": false,
2026
2038
  "multiple": false,
2027
2039
  "type": "option"
@@ -2029,12 +2041,12 @@
2029
2041
  },
2030
2042
  "hasDynamicHelp": true,
2031
2043
  "hiddenAliases": [],
2032
- "id": "devops:stage:branch:delete",
2044
+ "id": "devops:stage:environment:delete",
2033
2045
  "pluginAlias": "@salesforce/plugin-devops-center",
2034
2046
  "pluginName": "@salesforce/plugin-devops-center",
2035
2047
  "pluginType": "core",
2036
2048
  "strict": true,
2037
- "summary": "Delete the source code repository branch associated with a pipeline stage.",
2049
+ "summary": "Delete an environment from a DevOps Center pipeline stage.",
2038
2050
  "enableJsonFlag": true,
2039
2051
  "isESM": true,
2040
2052
  "relativePath": [
@@ -2042,16 +2054,17 @@
2042
2054
  "commands",
2043
2055
  "devops",
2044
2056
  "stage",
2045
- "branch",
2057
+ "environment",
2046
2058
  "delete.js"
2047
2059
  ]
2048
2060
  },
2049
- "devops:stage:environment:add": {
2061
+ "devops:stage:branch:add": {
2050
2062
  "aliases": [],
2051
2063
  "args": {},
2052
- "description": "This command triggers an OAuth flow to authenticate the environment. A browser window opens automatically for you to log in.",
2064
+ "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. If the stage already has a branch, the command blocks so the existing branch isn't orphaned; pass --force to replace it.",
2053
2065
  "examples": [
2054
- "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"
2066
+ "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",
2067
+ "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"
2055
2068
  ],
2056
2069
  "flags": {
2057
2070
  "json": {
@@ -2097,53 +2110,41 @@
2097
2110
  "stage-id": {
2098
2111
  "name": "stage-id",
2099
2112
  "required": true,
2100
- "summary": "ID of the pipeline stage.",
2101
- "hasDynamicHelp": false,
2102
- "multiple": false,
2103
- "type": "option"
2104
- },
2105
- "environment-name": {
2106
- "char": "e",
2107
- "name": "environment-name",
2108
- "required": true,
2109
- "summary": "Name of the environment.",
2113
+ "summary": "ID of the pipeline stage to associate the branch with.",
2110
2114
  "hasDynamicHelp": false,
2111
2115
  "multiple": false,
2112
2116
  "type": "option"
2113
2117
  },
2114
- "org-type": {
2115
- "name": "org-type",
2118
+ "branch-name": {
2119
+ "char": "b",
2120
+ "name": "branch-name",
2116
2121
  "required": true,
2117
- "summary": "Type of the Salesforce org. Valid values: Production, Sandbox.",
2122
+ "summary": "Name of the repository branch to assign to the stage.",
2118
2123
  "hasDynamicHelp": false,
2119
2124
  "multiple": false,
2120
- "options": [
2121
- "Production",
2122
- "Sandbox"
2123
- ],
2124
2125
  "type": "option"
2125
2126
  },
2126
- "no-browser": {
2127
- "name": "no-browser",
2128
- "summary": "Don't auto-open the browser for OAuth authentication. The redirect URL is printed for manual use.",
2127
+ "create-vcs-branch": {
2128
+ "name": "create-vcs-branch",
2129
+ "summary": "Create the branch in the remote repository if it doesn't already exist.",
2129
2130
  "allowNo": false,
2130
2131
  "type": "boolean"
2131
2132
  },
2132
2133
  "force": {
2133
2134
  "name": "force",
2134
- "summary": "Replace the stage's existing environment. By default, the command blocks if the stage already has an environment to avoid orphaning it. With this flag, the new environment is added first and the previous one is removed only after the new environment is associated successfully.",
2135
+ "summary": "Replace the stage's existing branch. By default, the command blocks if the stage already has a branch to avoid orphaning it. With this flag, the new branch is associated and the previous branch record is removed if no other stage references it.",
2135
2136
  "allowNo": false,
2136
2137
  "type": "boolean"
2137
2138
  }
2138
2139
  },
2139
2140
  "hasDynamicHelp": true,
2140
2141
  "hiddenAliases": [],
2141
- "id": "devops:stage:environment:add",
2142
+ "id": "devops:stage:branch:add",
2142
2143
  "pluginAlias": "@salesforce/plugin-devops-center",
2143
2144
  "pluginName": "@salesforce/plugin-devops-center",
2144
2145
  "pluginType": "core",
2145
2146
  "strict": true,
2146
- "summary": "Add a Salesforce environment to a pipeline stage.",
2147
+ "summary": "Add a source code repository branch to a pipeline stage.",
2147
2148
  "enableJsonFlag": true,
2148
2149
  "isESM": true,
2149
2150
  "relativePath": [
@@ -2151,16 +2152,16 @@
2151
2152
  "commands",
2152
2153
  "devops",
2153
2154
  "stage",
2154
- "environment",
2155
+ "branch",
2155
2156
  "add.js"
2156
2157
  ]
2157
2158
  },
2158
- "devops:stage:environment:delete": {
2159
+ "devops:stage:branch:delete": {
2159
2160
  "aliases": [],
2160
2161
  "args": {},
2161
- "description": "Removes the specified environment from the pipeline stage. The environment must belong to an inactive pipeline.",
2162
+ "description": "Removes the branch linked to the specified pipeline stage. Because branches are configured from right to left (a stage can have a branch only after the stage to its right does), removing a branch also removes the branches from all upstream stages (to the left) in the pipeline, keeping it in a valid state. The branch records in the repository are not deleted; only their association with the stages is removed. The stage must belong to an inactive pipeline.",
2162
2163
  "examples": [
2163
- "Delete an environment:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0XB000000000001 --environment-id 0Xe000000000001"
2164
+ "Delete the branch associated with a pipeline stage:\n<%= config.bin %> <%= command.id %> --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000001"
2164
2165
  ],
2165
2166
  "flags": {
2166
2167
  "json": {
@@ -2198,16 +2199,15 @@
2198
2199
  "pipeline-id": {
2199
2200
  "name": "pipeline-id",
2200
2201
  "required": true,
2201
- "summary": "ID of the pipeline. Used to verify the pipeline is inactive before deleting.",
2202
+ "summary": "ID of the pipeline that contains the stage. Used to verify the pipeline is inactive before deleting.",
2202
2203
  "hasDynamicHelp": false,
2203
2204
  "multiple": false,
2204
2205
  "type": "option"
2205
2206
  },
2206
- "environment-id": {
2207
- "char": "e",
2208
- "name": "environment-id",
2207
+ "stage-id": {
2208
+ "name": "stage-id",
2209
2209
  "required": true,
2210
- "summary": "ID of the environment to delete.",
2210
+ "summary": "ID of the pipeline stage whose branch you want to delete.",
2211
2211
  "hasDynamicHelp": false,
2212
2212
  "multiple": false,
2213
2213
  "type": "option"
@@ -2215,12 +2215,12 @@
2215
2215
  },
2216
2216
  "hasDynamicHelp": true,
2217
2217
  "hiddenAliases": [],
2218
- "id": "devops:stage:environment:delete",
2218
+ "id": "devops:stage:branch:delete",
2219
2219
  "pluginAlias": "@salesforce/plugin-devops-center",
2220
2220
  "pluginName": "@salesforce/plugin-devops-center",
2221
2221
  "pluginType": "core",
2222
2222
  "strict": true,
2223
- "summary": "Delete an environment from a DevOps Center pipeline stage.",
2223
+ "summary": "Delete the source code repository branch associated with a pipeline stage.",
2224
2224
  "enableJsonFlag": true,
2225
2225
  "isESM": true,
2226
2226
  "relativePath": [
@@ -2228,7 +2228,7 @@
2228
2228
  "commands",
2229
2229
  "devops",
2230
2230
  "stage",
2231
- "environment",
2231
+ "branch",
2232
2232
  "delete.js"
2233
2233
  ]
2234
2234
  },
@@ -2809,5 +2809,5 @@
2809
2809
  ]
2810
2810
  }
2811
2811
  },
2812
- "version": "2.3.5"
2812
+ "version": "2.3.7"
2813
2813
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-devops-center",
3
3
  "description": "The DevOps Center CLI plugin provides a command-line alternative to performing equivalent actions in the DevOps Center graphical UI",
4
- "version": "2.3.5",
4
+ "version": "2.3.7",
5
5
  "type": "module",
6
6
  "author": "Salesforce",
7
7
  "bugs": "https://github.com/forcedotcom/cli/issues",
@@ -28,7 +28,7 @@
28
28
  "eslint-config-salesforce-typescript": "^7.0.0",
29
29
  "eslint-plugin-sf-plugin": "^3.0.1",
30
30
  "esmock": "^2.7.6",
31
- "oclif": "^6.0.8",
31
+ "oclif": "^6.0.10",
32
32
  "tsx": "^4",
33
33
  "typescript": "^6.0.0"
34
34
  },
@@ -263,7 +263,7 @@
263
263
  }
264
264
  },
265
265
  "sfdx": {
266
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.3.5.crt",
267
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.3.5.sig"
266
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.3.7.crt",
267
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-devops-center/2.3.7.sig"
268
268
  }
269
269
  }