@salesforce/plugin-devops-center 1.2.27 → 1.3.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.
- package/LICENSE.txt +200 -6
- package/README.md +515 -19
- package/bin/dev.js +15 -0
- package/bin/run.js +5 -0
- package/lib/commands/devops/pipeline/activate.d.ts +14 -0
- package/lib/commands/devops/pipeline/activate.js +82 -0
- package/lib/commands/devops/pipeline/activate.js.map +1 -0
- package/lib/commands/devops/pipeline/attach-project.d.ts +15 -0
- package/lib/commands/devops/pipeline/attach-project.js +82 -0
- package/lib/commands/devops/pipeline/attach-project.js.map +1 -0
- package/lib/commands/devops/pipeline/create.d.ts +23 -0
- package/lib/commands/devops/pipeline/create.js +136 -0
- package/lib/commands/devops/pipeline/create.js.map +1 -0
- package/lib/commands/devops/pipeline/stage/add.d.ts +16 -0
- package/lib/commands/devops/pipeline/stage/add.js +94 -0
- package/lib/commands/devops/pipeline/stage/add.js.map +1 -0
- package/lib/commands/devops/project/create.d.ts +15 -0
- package/lib/commands/devops/project/create.js +72 -0
- package/lib/commands/devops/project/create.js.map +1 -0
- package/lib/commands/devops/project/list.d.ts +20 -0
- package/lib/commands/devops/project/list.js +59 -0
- package/lib/commands/devops/project/list.js.map +1 -0
- package/lib/commands/devops/pull-request/create.d.ts +17 -0
- package/lib/commands/devops/pull-request/create.js +104 -0
- package/lib/commands/devops/pull-request/create.js.map +1 -0
- package/lib/commands/devops/stage/add-branch.d.ts +17 -0
- package/lib/commands/devops/stage/add-branch.js +110 -0
- package/lib/commands/devops/stage/add-branch.js.map +1 -0
- package/lib/commands/devops/stage/add-environment.d.ts +18 -0
- package/lib/commands/devops/stage/add-environment.js +136 -0
- package/lib/commands/devops/stage/add-environment.js.map +1 -0
- package/lib/commands/devops/work-item/create.d.ts +16 -0
- package/lib/commands/devops/work-item/create.js +76 -0
- package/lib/commands/devops/work-item/create.js.map +1 -0
- package/lib/commands/devops/work-item/list.d.ts +17 -0
- package/lib/commands/devops/work-item/list.js +72 -0
- package/lib/commands/devops/work-item/list.js.map +1 -0
- package/lib/commands/devops/work-item/status/update.d.ts +16 -0
- package/lib/commands/devops/work-item/status/update.js +90 -0
- package/lib/commands/devops/work-item/status/update.js.map +1 -0
- package/lib/commands/project/deploy/pipeline/quick.d.ts +2 -2
- package/lib/commands/project/deploy/pipeline/quick.js +24 -21
- package/lib/commands/project/deploy/pipeline/quick.js.map +1 -1
- package/lib/commands/project/deploy/pipeline/report.d.ts +4 -4
- package/lib/commands/project/deploy/pipeline/report.js +38 -35
- package/lib/commands/project/deploy/pipeline/report.js.map +1 -1
- package/lib/commands/project/deploy/pipeline/resume.d.ts +2 -2
- package/lib/commands/project/deploy/pipeline/resume.js +24 -21
- package/lib/commands/project/deploy/pipeline/resume.js.map +1 -1
- package/lib/commands/project/deploy/pipeline/start.d.ts +3 -3
- package/lib/commands/project/deploy/pipeline/start.js +26 -23
- package/lib/commands/project/deploy/pipeline/start.js.map +1 -1
- package/lib/commands/project/deploy/pipeline/validate.d.ts +3 -3
- package/lib/commands/project/deploy/pipeline/validate.js +24 -21
- package/lib/commands/project/deploy/pipeline/validate.js.map +1 -1
- package/lib/common/base/abstractAsyncOperation.d.ts +3 -3
- package/lib/common/base/abstractAsyncOperation.js +31 -23
- package/lib/common/base/abstractAsyncOperation.js.map +1 -1
- package/lib/common/base/abstractPromote.d.ts +5 -4
- package/lib/common/base/abstractPromote.js +52 -38
- package/lib/common/base/abstractPromote.js.map +1 -1
- package/lib/common/base/abstractQuick.d.ts +4 -3
- package/lib/common/base/abstractQuick.js +44 -43
- package/lib/common/base/abstractQuick.js.map +1 -1
- package/lib/common/base/abstractReportOnPromote.d.ts +2 -1
- package/lib/common/base/abstractReportOnPromote.js +31 -24
- package/lib/common/base/abstractReportOnPromote.js.map +1 -1
- package/lib/common/base/abstractResume.d.ts +3 -2
- package/lib/common/base/abstractResume.js +40 -33
- package/lib/common/base/abstractResume.js.map +1 -1
- package/lib/common/constants.js +19 -13
- package/lib/common/constants.js.map +1 -1
- package/lib/common/deployPipelineCache.js +20 -15
- package/lib/common/deployPipelineCache.js.map +1 -1
- package/lib/common/flags/flags.d.ts +2 -2
- package/lib/common/flags/flags.js +34 -29
- package/lib/common/flags/flags.js.map +1 -1
- package/lib/common/flags/promote/promoteFlags.d.ts +3 -3
- package/lib/common/flags/promote/promoteFlags.js +26 -20
- package/lib/common/flags/promote/promoteFlags.js.map +1 -1
- package/lib/common/index.d.ts +3 -2
- package/lib/common/index.js +2 -17
- package/lib/common/index.js.map +1 -1
- package/lib/common/outputColumns.d.ts +3 -13
- package/lib/common/outputColumns.js +23 -19
- package/lib/common/outputColumns.js.map +1 -1
- package/lib/common/outputService/aorOutputService.d.ts +4 -4
- package/lib/common/outputService/aorOutputService.js +27 -20
- package/lib/common/outputService/aorOutputService.js.map +1 -1
- package/lib/common/outputService/deployCommandOutputService.d.ts +2 -2
- package/lib/common/outputService/deployCommandOutputService.js +17 -12
- package/lib/common/outputService/deployCommandOutputService.js.map +1 -1
- package/lib/common/outputService/deploySummaryBuilder.d.ts +1 -1
- package/lib/common/outputService/deploySummaryBuilder.js +45 -31
- package/lib/common/outputService/deploySummaryBuilder.js.map +1 -1
- package/lib/common/outputService/deploymentResultOutputService.d.ts +4 -4
- package/lib/common/outputService/deploymentResultOutputService.js +16 -10
- package/lib/common/outputService/deploymentResultOutputService.js.map +1 -1
- package/lib/common/outputService/index.d.ts +8 -6
- package/lib/common/outputService/index.js +5 -19
- package/lib/common/outputService/index.js.map +1 -1
- package/lib/common/outputService/outputService.d.ts +6 -4
- package/lib/common/outputService/outputService.js +20 -14
- package/lib/common/outputService/outputService.js.map +1 -1
- package/lib/common/outputService/outputServiceFactory.d.ts +8 -8
- package/lib/common/outputService/outputServiceFactory.js +21 -16
- package/lib/common/outputService/outputServiceFactory.js.map +1 -1
- package/lib/common/outputService/outputUtils.d.ts +1 -1
- package/lib/common/outputService/outputUtils.js +24 -19
- package/lib/common/outputService/outputUtils.js.map +1 -1
- package/lib/common/outputService/promoteOutputService.d.ts +4 -5
- package/lib/common/outputService/promoteOutputService.js +19 -13
- package/lib/common/outputService/promoteOutputService.js.map +1 -1
- package/lib/common/outputService/reportOutputService.d.ts +5 -6
- package/lib/common/outputService/reportOutputService.js +32 -27
- package/lib/common/outputService/reportOutputService.js.map +1 -1
- package/lib/common/outputService/resumeCommandOutputService.d.ts +3 -3
- package/lib/common/outputService/resumeCommandOutputService.js +19 -13
- package/lib/common/outputService/resumeCommandOutputService.js.map +1 -1
- package/lib/common/outputService/resumeOutputService.d.ts +3 -3
- package/lib/common/outputService/resumeOutputService.js +23 -17
- package/lib/common/outputService/resumeOutputService.js.map +1 -1
- package/lib/common/selectors/asyncOperationResultsSelector.d.ts +1 -1
- package/lib/common/selectors/asyncOperationResultsSelector.js +16 -10
- package/lib/common/selectors/asyncOperationResultsSelector.js.map +1 -1
- package/lib/common/selectors/deployComponentsSelector.d.ts +1 -1
- package/lib/common/selectors/deployComponentsSelector.js +18 -13
- package/lib/common/selectors/deployComponentsSelector.js.map +1 -1
- package/lib/common/selectors/deployProgressSummarySelector.d.ts +2 -2
- package/lib/common/selectors/deployProgressSummarySelector.js +16 -10
- package/lib/common/selectors/deployProgressSummarySelector.js.map +1 -1
- package/lib/common/selectors/deploymentResultsSelector.d.ts +2 -2
- package/lib/common/selectors/deploymentResultsSelector.js +20 -16
- package/lib/common/selectors/deploymentResultsSelector.js.map +1 -1
- package/lib/common/selectors/environmentSelector.d.ts +2 -2
- package/lib/common/selectors/environmentSelector.js +16 -10
- package/lib/common/selectors/environmentSelector.js.map +1 -1
- package/lib/common/selectors/namedCredentialSelector.d.ts +1 -1
- package/lib/common/selectors/namedCredentialSelector.js +16 -10
- package/lib/common/selectors/namedCredentialSelector.js.map +1 -1
- package/lib/common/selectors/pipelineStageSelector.d.ts +1 -1
- package/lib/common/selectors/pipelineStageSelector.js +18 -13
- package/lib/common/selectors/pipelineStageSelector.js.map +1 -1
- package/lib/common/selectors/selectorUtils.d.ts +1 -1
- package/lib/common/selectors/selectorUtils.js +17 -11
- package/lib/common/selectors/selectorUtils.js.map +1 -1
- package/lib/common/selectors/validateDeploySelector.d.ts +1 -1
- package/lib/common/selectors/validateDeploySelector.js +16 -10
- package/lib/common/selectors/validateDeploySelector.js.map +1 -1
- package/lib/common/selectors/workItemSelector.d.ts +2 -2
- package/lib/common/selectors/workItemSelector.js +16 -10
- package/lib/common/selectors/workItemSelector.js.map +1 -1
- package/lib/common/types.d.ts +4 -4
- package/lib/common/types.js +4 -7
- package/lib/common/types.js.map +1 -1
- package/lib/common/utils.d.ts +4 -4
- package/lib/common/utils.js +42 -43
- package/lib/common/utils.js.map +1 -1
- package/lib/configMeta.js +21 -15
- package/lib/configMeta.js.map +1 -1
- package/lib/streamer/doceMonitor.d.ts +3 -2
- package/lib/streamer/doceMonitor.js +14 -6
- package/lib/streamer/doceMonitor.js.map +1 -1
- package/lib/streamer/doceStream.d.ts +1 -1
- package/lib/streamer/doceStream.js +19 -11
- package/lib/streamer/doceStream.js.map +1 -1
- package/lib/streamer/processors/asyncOpStream.d.ts +2 -2
- package/lib/streamer/processors/asyncOpStream.js +22 -15
- package/lib/streamer/processors/asyncOpStream.js.map +1 -1
- package/lib/streamer/sObjectStream.d.ts +1 -1
- package/lib/streamer/sObjectStream.js +9 -10
- package/lib/streamer/sObjectStream.js.map +1 -1
- package/lib/utils/activatePipeline.d.ts +17 -0
- package/lib/utils/activatePipeline.js +35 -0
- package/lib/utils/activatePipeline.js.map +1 -0
- package/lib/utils/addPipelineStage.d.ts +20 -0
- package/lib/utils/addPipelineStage.js +43 -0
- package/lib/utils/addPipelineStage.js.map +1 -0
- package/lib/utils/addStageBranch.d.ts +22 -0
- package/lib/utils/addStageBranch.js +48 -0
- package/lib/utils/addStageBranch.js.map +1 -0
- package/lib/utils/addStageEnvironment.d.ts +92 -0
- package/lib/utils/addStageEnvironment.js +120 -0
- package/lib/utils/addStageEnvironment.js.map +1 -0
- package/lib/utils/attachProject.d.ts +21 -0
- package/lib/utils/attachProject.js +44 -0
- package/lib/utils/attachProject.js.map +1 -0
- package/lib/utils/createPipeline.d.ts +34 -0
- package/lib/utils/createPipeline.js +77 -0
- package/lib/utils/createPipeline.js.map +1 -0
- package/lib/utils/createProject.d.ts +17 -0
- package/lib/utils/createProject.js +39 -0
- package/lib/utils/createProject.js.map +1 -0
- package/lib/utils/createPullRequest.d.ts +49 -0
- package/lib/utils/createPullRequest.js +204 -0
- package/lib/utils/createPullRequest.js.map +1 -0
- package/lib/utils/createWorkItem.d.ts +19 -0
- package/lib/utils/createWorkItem.js +58 -0
- package/lib/utils/createWorkItem.js.map +1 -0
- package/lib/utils/pipelineUtils.d.ts +8 -0
- package/lib/utils/pipelineUtils.js +51 -0
- package/lib/utils/pipelineUtils.js.map +1 -0
- package/lib/utils/types.d.ts +57 -0
- package/lib/utils/types.js +17 -0
- package/lib/utils/types.js.map +1 -0
- package/lib/utils/updateWorkItemStatus.d.ts +34 -0
- package/lib/utils/updateWorkItemStatus.js +71 -0
- package/lib/utils/updateWorkItemStatus.js.map +1 -0
- package/lib/utils/workItems.d.ts +3 -0
- package/lib/utils/workItems.js +181 -0
- package/lib/utils/workItems.js.map +1 -0
- package/messages/commonErrors.md +5 -1
- package/messages/devops.pipeline.activate.md +29 -0
- package/messages/devops.pipeline.attach-project.md +29 -0
- package/messages/devops.pipeline.create.md +81 -0
- package/messages/devops.pipeline.stage.add.md +37 -0
- package/messages/devops.project.create.md +29 -0
- package/messages/devops.project.list.md +17 -0
- package/messages/devops.pull-request.create.md +57 -0
- package/messages/devops.stage.add-branch.md +46 -0
- package/messages/devops.stage.add-environment.md +61 -0
- package/messages/devops.work-item.create.md +29 -0
- package/messages/devops.work-item.list.md +21 -0
- package/messages/devops.work-item.status.update.md +29 -0
- package/npm-shrinkwrap.json +4197 -4471
- package/oclif.lock +3380 -3272
- package/oclif.manifest.json +1056 -11
- package/package.json +53 -23
- package/schemas/devops-pipeline-activate.json +28 -0
- package/schemas/devops-pipeline-attach__project.json +25 -0
- package/schemas/devops-pipeline-create.json +50 -0
- package/schemas/devops-pipeline-stage-add.json +31 -0
- package/schemas/devops-project-create.json +28 -0
- package/schemas/devops-project-list.json +35 -0
- package/schemas/devops-pull__request-create.json +34 -0
- package/schemas/devops-stage-add__branch.json +34 -0
- package/schemas/devops-stage-add__environment.json +47 -0
- package/schemas/devops-work__item-create.json +28 -0
- package/schemas/devops-work__item-list.json +75 -0
- package/schemas/devops-work__item-status-update.json +28 -0
- package/schemas/project-deploy-pipeline-report.json +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# plugin-devops-center
|
|
4
4
|
|
|
5
|
-
<!--[](https://www.npmjs.com/package/@salesforce/plugin-template-sf) [](https://npmjs.org/package/@salesforce/plugin-template-sf) [](https://www.npmjs.com/package/@salesforce/plugin-template-sf) [](https://npmjs.org/package/@salesforce/plugin-template-sf) [](https://opensource.org/license/apache-2-0) -->
|
|
6
6
|
|
|
7
7
|
## Contributing
|
|
8
8
|
|
|
@@ -56,20 +56,508 @@ sf plugins
|
|
|
56
56
|
|
|
57
57
|
<!-- commands -->
|
|
58
58
|
|
|
59
|
+
- [`sf devops pipeline activate`](#sf-devops-pipeline-activate)
|
|
60
|
+
- [`sf devops pipeline attach-project`](#sf-devops-pipeline-attach-project)
|
|
61
|
+
- [`sf devops pipeline create`](#sf-devops-pipeline-create)
|
|
62
|
+
- [`sf devops pipeline stage add`](#sf-devops-pipeline-stage-add)
|
|
63
|
+
- [`sf devops project create`](#sf-devops-project-create)
|
|
64
|
+
- [`sf devops project list`](#sf-devops-project-list)
|
|
65
|
+
- [`sf devops pull-request create`](#sf-devops-pull-request-create)
|
|
66
|
+
- [`sf devops stage add-branch`](#sf-devops-stage-add-branch)
|
|
67
|
+
- [`sf devops stage add-environment`](#sf-devops-stage-add-environment)
|
|
68
|
+
- [`sf devops work-item create`](#sf-devops-work-item-create)
|
|
69
|
+
- [`sf devops work-item list`](#sf-devops-work-item-list)
|
|
70
|
+
- [`sf devops work-item status update`](#sf-devops-work-item-status-update)
|
|
59
71
|
- [`sf project deploy pipeline quick`](#sf-project-deploy-pipeline-quick)
|
|
60
72
|
- [`sf project deploy pipeline report`](#sf-project-deploy-pipeline-report)
|
|
61
73
|
- [`sf project deploy pipeline resume`](#sf-project-deploy-pipeline-resume)
|
|
62
74
|
- [`sf project deploy pipeline start`](#sf-project-deploy-pipeline-start)
|
|
63
75
|
- [`sf project deploy pipeline validate`](#sf-project-deploy-pipeline-validate)
|
|
64
76
|
|
|
77
|
+
## `sf devops pipeline activate`
|
|
78
|
+
|
|
79
|
+
Activate a DevOps Center pipeline for deployments.
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
USAGE
|
|
83
|
+
$ sf devops pipeline activate -o <value> --pipeline-id <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
84
|
+
|
|
85
|
+
FLAGS
|
|
86
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
87
|
+
configuration variable is already set.
|
|
88
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
89
|
+
--pipeline-id=<value> (required) ID of the pipeline.
|
|
90
|
+
|
|
91
|
+
GLOBAL FLAGS
|
|
92
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
93
|
+
--json Format output as json.
|
|
94
|
+
|
|
95
|
+
DESCRIPTION
|
|
96
|
+
Activate a DevOps Center pipeline for deployments.
|
|
97
|
+
|
|
98
|
+
A pipeline must have at least one stage before you activate it. You can't modify the pipeline stages after you
|
|
99
|
+
activate and promote changes through it.
|
|
100
|
+
|
|
101
|
+
EXAMPLES
|
|
102
|
+
Activate a pipeline using the pipeline ID.
|
|
103
|
+
|
|
104
|
+
$ sf devops pipeline activate --target-org my-devops-org --pipeline-id 0XB000000000001
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
_See code: [src/commands/devops/pipeline/activate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/pipeline/activate.ts)_
|
|
108
|
+
|
|
109
|
+
## `sf devops pipeline attach-project`
|
|
110
|
+
|
|
111
|
+
Attach a DevOps Center project to a pipeline.
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
USAGE
|
|
115
|
+
$ sf devops pipeline attach-project -o <value> --pipeline-id <value> --project-id <value> [--json] [--flags-dir <value>]
|
|
116
|
+
[--api-version <value>]
|
|
117
|
+
|
|
118
|
+
FLAGS
|
|
119
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
120
|
+
configuration variable is already set.
|
|
121
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
122
|
+
--pipeline-id=<value> (required) ID of the pipeline.
|
|
123
|
+
--project-id=<value> (required) ID of the DevOps Center project.
|
|
124
|
+
|
|
125
|
+
GLOBAL FLAGS
|
|
126
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
127
|
+
--json Format output as json.
|
|
128
|
+
|
|
129
|
+
DESCRIPTION
|
|
130
|
+
Attach a DevOps Center project to a pipeline.
|
|
131
|
+
|
|
132
|
+
You can attach a project to only one pipeline.
|
|
133
|
+
|
|
134
|
+
EXAMPLES
|
|
135
|
+
Attach a project to a pipeline using the project ID and pipeline ID.
|
|
136
|
+
|
|
137
|
+
$ sf devops pipeline attach-project --target-org my-devops-org --pipeline-id 0XB000000000001 --project-id \
|
|
138
|
+
0Hn000000000001
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
_See code: [src/commands/devops/pipeline/attach-project.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/pipeline/attach-project.ts)_
|
|
142
|
+
|
|
143
|
+
## `sf devops pipeline create`
|
|
144
|
+
|
|
145
|
+
Create a DevOps Center pipeline.
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
USAGE
|
|
149
|
+
$ sf devops pipeline create -o <value> -n <value> -r <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
150
|
+
[--repo-type github|bitbucket] [--create-repo] [--repo-owner <value>] [--bitbucket-project <value>] [-d <value>]
|
|
151
|
+
|
|
152
|
+
FLAGS
|
|
153
|
+
-d, --description=<value> Description of the pipeline.
|
|
154
|
+
-n, --name=<value> (required) Name of the pipeline.
|
|
155
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
156
|
+
configuration variable is already set.
|
|
157
|
+
-r, --repo=<value> (required) URL of an existing repository or the name of a repository to create.
|
|
158
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
159
|
+
--bitbucket-project=<value> Bitbucket project key for the repository. Used when creating a Bitbucket repository
|
|
160
|
+
with '--create-repo'.
|
|
161
|
+
--create-repo Create a repository if it doesn't exist.
|
|
162
|
+
--repo-owner=<value> Owner (organization or user) of the repository. Required when creating a repository
|
|
163
|
+
using '--create-repo'.
|
|
164
|
+
--repo-type=<option> Type of the source code repository. Required when creating a repository using
|
|
165
|
+
'--create-repo'.
|
|
166
|
+
<options: github|bitbucket>
|
|
167
|
+
|
|
168
|
+
GLOBAL FLAGS
|
|
169
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
170
|
+
--json Format output as json.
|
|
171
|
+
|
|
172
|
+
DESCRIPTION
|
|
173
|
+
Create a DevOps Center pipeline.
|
|
174
|
+
|
|
175
|
+
Provide the URL of an existing repository, or use `--create-repo` with a repository name to create one. After you
|
|
176
|
+
create the pipeline, add stages, and activate the pipeline.
|
|
177
|
+
|
|
178
|
+
EXAMPLES
|
|
179
|
+
Create a pipeline and associate it with an existing GitHub repository.
|
|
180
|
+
|
|
181
|
+
$ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
|
|
182
|
+
https://github.com/myorg/myrepo
|
|
183
|
+
|
|
184
|
+
Create a pipeline and associate it with a new GitHub repository.
|
|
185
|
+
|
|
186
|
+
$ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo my-new-repo --repo-type \
|
|
187
|
+
github --repo-owner myorg --create-repo
|
|
188
|
+
|
|
189
|
+
Create a pipeline with a description and associate it with a Bitbucket repository.
|
|
190
|
+
|
|
191
|
+
$ sf devops pipeline create --target-org my-devops-org --name "Release Pipeline" --repo \
|
|
192
|
+
https://bitbucket.org/myorg/myrepo --description "Main CI/CD pipeline for production releases"
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
_See code: [src/commands/devops/pipeline/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/pipeline/create.ts)_
|
|
196
|
+
|
|
197
|
+
## `sf devops pipeline stage add`
|
|
198
|
+
|
|
199
|
+
Add a stage to a DevOps Center pipeline.
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
USAGE
|
|
203
|
+
$ sf devops pipeline stage add -o <value> --pipeline-id <value> -n <value> --next-stage-id <value> [--json] [--flags-dir
|
|
204
|
+
<value>] [--api-version <value>]
|
|
205
|
+
|
|
206
|
+
FLAGS
|
|
207
|
+
-n, --name=<value> (required) Name of the pipeline stage, such as Integration, UAT, or Staging.
|
|
208
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
209
|
+
configuration variable is already set.
|
|
210
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
211
|
+
--next-stage-id=<value> (required) ID of the stage that follows the new stage in the pipeline.
|
|
212
|
+
--pipeline-id=<value> (required) ID of the pipeline where the stage is added.
|
|
213
|
+
|
|
214
|
+
GLOBAL FLAGS
|
|
215
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
216
|
+
--json Format output as json.
|
|
217
|
+
|
|
218
|
+
DESCRIPTION
|
|
219
|
+
Add a stage to a DevOps Center pipeline.
|
|
220
|
+
|
|
221
|
+
Inserts an empty stage before the stage specified by `--next-stage-id`. The new stage doesn't include a branch or
|
|
222
|
+
environment. Configure them separately after you create the stage.
|
|
223
|
+
|
|
224
|
+
EXAMPLES
|
|
225
|
+
Add a Development stage before Integration in a specific pipeline.
|
|
226
|
+
|
|
227
|
+
$ sf devops pipeline stage add --target-org my-devops-org --pipeline-id 0XB000000000001 --name "Development" \
|
|
228
|
+
--next-stage-id 0Xc000000000002
|
|
229
|
+
|
|
230
|
+
Add a QA stage before UAT in a specific pipeline.
|
|
231
|
+
|
|
232
|
+
$ sf devops pipeline stage add --target-org my-devops-org --pipeline-id 0XB000000000001 --name "QA" \
|
|
233
|
+
--next-stage-id 0Xc000000000003
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
_See code: [src/commands/devops/pipeline/stage/add.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/pipeline/stage/add.ts)_
|
|
237
|
+
|
|
238
|
+
## `sf devops project create`
|
|
239
|
+
|
|
240
|
+
Create a DevOps Center project in a DevOps Center org.
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
USAGE
|
|
244
|
+
$ sf devops project create -o <value> -n <value> [--json] [--flags-dir <value>] [--api-version <value>] [-d <value>]
|
|
245
|
+
|
|
246
|
+
FLAGS
|
|
247
|
+
-d, --description=<value> Description of the new project; if not specified, the description is blank.
|
|
248
|
+
-n, --name=<value> (required) Name of the new DevOps Center project.
|
|
249
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
250
|
+
configuration variable is already set.
|
|
251
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
252
|
+
|
|
253
|
+
GLOBAL FLAGS
|
|
254
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
255
|
+
--json Format output as json.
|
|
256
|
+
|
|
257
|
+
DESCRIPTION
|
|
258
|
+
Create a DevOps Center project in a DevOps Center org.
|
|
259
|
+
|
|
260
|
+
Creates a new DevOps Center project with the specified name and optional description.
|
|
261
|
+
|
|
262
|
+
EXAMPLES
|
|
263
|
+
Create a new DevOps Center project in the specified org.
|
|
264
|
+
|
|
265
|
+
$ sf devops project create --target-org my-devops-org --name "MyApp Release"
|
|
266
|
+
|
|
267
|
+
Create a project with a name and description.
|
|
268
|
+
|
|
269
|
+
$ sf devops project create --target-org my-devops-org --name "Platform Update" --description "Platform services \
|
|
270
|
+
update"
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
_See code: [src/commands/devops/project/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/project/create.ts)_
|
|
274
|
+
|
|
275
|
+
## `sf devops project list`
|
|
276
|
+
|
|
277
|
+
List all DevOps Center projects in a Salesforce org.
|
|
278
|
+
|
|
279
|
+
```
|
|
280
|
+
USAGE
|
|
281
|
+
$ sf devops project list -o <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
282
|
+
|
|
283
|
+
FLAGS
|
|
284
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
285
|
+
configuration variable is already set.
|
|
286
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
287
|
+
|
|
288
|
+
GLOBAL FLAGS
|
|
289
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
290
|
+
--json Format output as json.
|
|
291
|
+
|
|
292
|
+
DESCRIPTION
|
|
293
|
+
List all DevOps Center projects in a Salesforce org.
|
|
294
|
+
|
|
295
|
+
This command queries the DevopsProject standard object and returns the project Id, Name, and Description for each
|
|
296
|
+
project found.
|
|
297
|
+
|
|
298
|
+
EXAMPLES
|
|
299
|
+
List all DevOps Center projects in an org with alias "my-devops-org":
|
|
300
|
+
|
|
301
|
+
$ sf devops project list --target-org my-devops-org
|
|
302
|
+
|
|
303
|
+
List projects using an org's username:
|
|
304
|
+
|
|
305
|
+
$ sf devops project list --target-org devops-center@example.com
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
_See code: [src/commands/devops/project/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/project/list.ts)_
|
|
309
|
+
|
|
310
|
+
## `sf devops pull-request create`
|
|
311
|
+
|
|
312
|
+
Create a pull request for a work item branch.
|
|
313
|
+
|
|
314
|
+
```
|
|
315
|
+
USAGE
|
|
316
|
+
$ sf devops pull-request create -o <value> [--json] [--flags-dir <value>] [--api-version <value>] [-n <value>] [-w <value>]
|
|
317
|
+
[--title <value>] [--body <value>]
|
|
318
|
+
|
|
319
|
+
FLAGS
|
|
320
|
+
-n, --work-item-name=<value> Name of the work item, such as WI-000001.
|
|
321
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
322
|
+
configuration variable is already set.
|
|
323
|
+
-w, --work-item-id=<value> ID of the work item.
|
|
324
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
325
|
+
--body=<value> Description of the pull request.
|
|
326
|
+
--title=<value> Title of the pull request.
|
|
327
|
+
|
|
328
|
+
GLOBAL FLAGS
|
|
329
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
330
|
+
--json Format output as json.
|
|
331
|
+
|
|
332
|
+
DESCRIPTION
|
|
333
|
+
Create a pull request for a work item branch.
|
|
334
|
+
|
|
335
|
+
The pull request title defaults to the work item subject. The work item must have an associated branch and repository.
|
|
336
|
+
Requires VCS authentication: set GITHUB_TOKEN (or use `gh auth login`) for GitHub, or set BITBUCKET_TOKEN for
|
|
337
|
+
Bitbucket.
|
|
338
|
+
|
|
339
|
+
EXAMPLES
|
|
340
|
+
Create a pull request for a work item using the default title.
|
|
341
|
+
|
|
342
|
+
$ sf devops pull-request create --target-org my-devops-org --work-item-name WI-000001
|
|
343
|
+
|
|
344
|
+
Create a pull request with a custom title and description.
|
|
345
|
+
|
|
346
|
+
$ sf devops pull-request create --target-org my-devops-org --work-item-id 0Wx000000000001 --title "Fix: Login \
|
|
347
|
+
timeout" --body "Resolves the 30s timeout on the login page"
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
_See code: [src/commands/devops/pull-request/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/pull-request/create.ts)_
|
|
351
|
+
|
|
352
|
+
## `sf devops stage add-branch`
|
|
353
|
+
|
|
354
|
+
Add a source code repository branch to a pipeline stage.
|
|
355
|
+
|
|
356
|
+
```
|
|
357
|
+
USAGE
|
|
358
|
+
$ sf devops stage add-branch -o <value> --pipeline-id <value> --stage-id <value> -b <value> [--json] [--flags-dir <value>]
|
|
359
|
+
[--api-version <value>] [--create-vcs-branch]
|
|
360
|
+
|
|
361
|
+
FLAGS
|
|
362
|
+
-b, --branch-name=<value> (required) Name of the repository branch to assign to the stage.
|
|
363
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
364
|
+
configuration variable is already set.
|
|
365
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
366
|
+
--create-vcs-branch Create the branch in the remote repository if it doesn't already exist.
|
|
367
|
+
--pipeline-id=<value> (required) ID of the pipeline that contains the stage.
|
|
368
|
+
--stage-id=<value> (required) ID of the pipeline stage to associate the branch with.
|
|
369
|
+
|
|
370
|
+
GLOBAL FLAGS
|
|
371
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
372
|
+
--json Format output as json.
|
|
373
|
+
|
|
374
|
+
DESCRIPTION
|
|
375
|
+
Add a source code repository branch to a pipeline stage.
|
|
376
|
+
|
|
377
|
+
By default, the branch must exist in the repository. Use --create-vcs-branch to create a branch if it doesn't exist.
|
|
378
|
+
Each pipeline stage supports only one branch. Adding a branch replaces any existing branch linked to the pipeline
|
|
379
|
+
stage.
|
|
380
|
+
|
|
381
|
+
EXAMPLES
|
|
382
|
+
Add an existing branch to a stage:
|
|
383
|
+
|
|
384
|
+
$ sf devops stage add-branch --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000001 \
|
|
385
|
+
--branch-name main
|
|
386
|
+
|
|
387
|
+
Create and add a branch to a pipeline stage:
|
|
388
|
+
|
|
389
|
+
$ sf devops stage add-branch --target-org my-devops-org --pipeline-id 0Xo000000000001 --stage-id 0Xp000000000002 \
|
|
390
|
+
--branch-name integration --create-vcs-branch
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
_See code: [src/commands/devops/stage/add-branch.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/stage/add-branch.ts)_
|
|
394
|
+
|
|
395
|
+
## `sf devops stage add-environment`
|
|
396
|
+
|
|
397
|
+
Add a Salesforce environment to a pipeline stage.
|
|
398
|
+
|
|
399
|
+
```
|
|
400
|
+
USAGE
|
|
401
|
+
$ sf devops stage add-environment -o <value> --pipeline-id <value> --stage-id <value> -e <value> --org-type Production|Sandbox
|
|
402
|
+
[--json] [--flags-dir <value>] [--api-version <value>] [--no-browser]
|
|
403
|
+
|
|
404
|
+
FLAGS
|
|
405
|
+
-e, --environment-name=<value> (required) Name of the environment.
|
|
406
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
407
|
+
configuration variable is already set.
|
|
408
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
409
|
+
--no-browser Don't auto-open the browser for OAuth authentication. The redirect URL is printed for
|
|
410
|
+
manual use.
|
|
411
|
+
--org-type=<option> (required) Type of the Salesforce org. Valid values: Production, Sandbox.
|
|
412
|
+
<options: Production|Sandbox>
|
|
413
|
+
--pipeline-id=<value> (required) ID of the pipeline that contains the stage.
|
|
414
|
+
--stage-id=<value> (required) ID of the pipeline stage.
|
|
415
|
+
|
|
416
|
+
GLOBAL FLAGS
|
|
417
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
418
|
+
--json Format output as json.
|
|
419
|
+
|
|
420
|
+
DESCRIPTION
|
|
421
|
+
Add a Salesforce environment to a pipeline stage.
|
|
422
|
+
|
|
423
|
+
This command triggers an OAuth flow to authenticate the environment. A browser window opens automatically for you to
|
|
424
|
+
log in.
|
|
425
|
+
|
|
426
|
+
EXAMPLES
|
|
427
|
+
Add a production environment to a stage using its ID:
|
|
428
|
+
|
|
429
|
+
$ sf devops stage add-environment --target-org my-devops-org --stage-id 0Xp000000000001 --environment-name \
|
|
430
|
+
Production_Org --org-type Production
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
_See code: [src/commands/devops/stage/add-environment.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/stage/add-environment.ts)_
|
|
434
|
+
|
|
435
|
+
## `sf devops work-item create`
|
|
436
|
+
|
|
437
|
+
Create a new work item in a DevOps Center project.
|
|
438
|
+
|
|
439
|
+
```
|
|
440
|
+
USAGE
|
|
441
|
+
$ sf devops work-item create -o <value> -p <value> -s <value> [--json] [--flags-dir <value>] [--api-version <value>] [-d
|
|
442
|
+
<value>]
|
|
443
|
+
|
|
444
|
+
FLAGS
|
|
445
|
+
-d, --description=<value> Description of the new work item; if not specified, the description is blank.
|
|
446
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
447
|
+
configuration variable is already set.
|
|
448
|
+
-p, --project-id=<value> (required) ID of the DevOps Center project to create the work item in.
|
|
449
|
+
-s, --subject=<value> (required) Subject (title) of the new work item.
|
|
450
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
451
|
+
|
|
452
|
+
GLOBAL FLAGS
|
|
453
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
454
|
+
--json Format output as json.
|
|
455
|
+
|
|
456
|
+
DESCRIPTION
|
|
457
|
+
Create a new work item in a DevOps Center project.
|
|
458
|
+
|
|
459
|
+
The command creates the work item using the Connect API. Requires a project ID and a subject for the new work item;
|
|
460
|
+
run the `devops project list` command to get the IDs for all existing projects.
|
|
461
|
+
|
|
462
|
+
EXAMPLES
|
|
463
|
+
Create a work item for the project with the specified ID and give the work item the specified subject (title); use
|
|
464
|
+
the DevOps Center org with alias "my-devops-org":
|
|
465
|
+
|
|
466
|
+
$ sf devops work-item create --target-org my-devops-org --project-id 1Qg000000000001 --subject "Fix login bug"
|
|
467
|
+
|
|
468
|
+
Create a work item with a subject and description:
|
|
469
|
+
|
|
470
|
+
$ sf devops work-item create --target-org my-devops-org --project-id 1Qg000000000001 --subject "Add dark mode" \
|
|
471
|
+
--description "Implement dark mode toggle in settings page"
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
_See code: [src/commands/devops/work-item/create.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/work-item/create.ts)_
|
|
475
|
+
|
|
476
|
+
## `sf devops work-item list`
|
|
477
|
+
|
|
478
|
+
List all work items for a DevOps Center project.
|
|
479
|
+
|
|
480
|
+
```
|
|
481
|
+
USAGE
|
|
482
|
+
$ sf devops work-item list -o <value> -p <value> [--json] [--flags-dir <value>] [--api-version <value>]
|
|
483
|
+
|
|
484
|
+
FLAGS
|
|
485
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
486
|
+
configuration variable is already set.
|
|
487
|
+
-p, --project-id=<value> (required) ID of the DevOps Center project to list work items for.
|
|
488
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
489
|
+
|
|
490
|
+
GLOBAL FLAGS
|
|
491
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
492
|
+
--json Format output as json.
|
|
493
|
+
|
|
494
|
+
DESCRIPTION
|
|
495
|
+
List all work items for a DevOps Center project.
|
|
496
|
+
|
|
497
|
+
Each work item displays the branch, environment, and repository details needed for checkout and promotion. Requires a
|
|
498
|
+
project ID; run the `devops project list` command to get the IDs for all existing projects.
|
|
499
|
+
|
|
500
|
+
EXAMPLES
|
|
501
|
+
List work items for a specific project in the DevOps org with alias "my-devops-org":
|
|
502
|
+
|
|
503
|
+
$ sf devops work-item list --target-org my-devops-org --project-id 1Qg000000000001
|
|
504
|
+
|
|
505
|
+
List work items using JSON output:
|
|
506
|
+
|
|
507
|
+
$ sf devops work-item list --target-org my-devops-org --project-id 1Qg000000000001 --json
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
_See code: [src/commands/devops/work-item/list.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/work-item/list.ts)_
|
|
511
|
+
|
|
512
|
+
## `sf devops work-item status update`
|
|
513
|
+
|
|
514
|
+
Update the status of a work item in DevOps Center.
|
|
515
|
+
|
|
516
|
+
```
|
|
517
|
+
USAGE
|
|
518
|
+
$ sf devops work-item status update -o <value> --status In Progress|Ready to Promote [--json] [--flags-dir <value>] [--api-version
|
|
519
|
+
<value>] [-n <value>] [-w <value>]
|
|
520
|
+
|
|
521
|
+
FLAGS
|
|
522
|
+
-n, --work-item-name=<value> Name of the work item, such as WI-000001.
|
|
523
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
524
|
+
configuration variable is already set.
|
|
525
|
+
-w, --work-item-id=<value> ID of the work item.
|
|
526
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
527
|
+
--status=<option> (required) Status to set for the work item. Allowed values: "In Progress", "Ready to
|
|
528
|
+
Promote".
|
|
529
|
+
<options: In Progress|Ready to Promote>
|
|
530
|
+
|
|
531
|
+
GLOBAL FLAGS
|
|
532
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
533
|
+
--json Format output as json.
|
|
534
|
+
|
|
535
|
+
DESCRIPTION
|
|
536
|
+
Update the status of a work item in DevOps Center.
|
|
537
|
+
|
|
538
|
+
Allowed statuses are "In Progress" and "Ready to Promote".
|
|
539
|
+
|
|
540
|
+
EXAMPLES
|
|
541
|
+
Update a work item status by its name to indicate the work is underway:
|
|
542
|
+
|
|
543
|
+
$ sf devops work-item status update --target-org my-devops-org --work-item-name WI-000001 --status "In Progress"
|
|
544
|
+
|
|
545
|
+
Update a work item status by its ID to indicate the changes are ready for promotion:
|
|
546
|
+
|
|
547
|
+
$ sf devops work-item status update --target-org my-devops-org --work-item-id 0Wx000000000001 --status "Ready to \
|
|
548
|
+
Promote"
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
_See code: [src/commands/devops/work-item/status/update.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/devops/work-item/status/update.ts)_
|
|
552
|
+
|
|
65
553
|
## `sf project deploy pipeline quick`
|
|
66
554
|
|
|
67
555
|
Quickly deploy a validated deployment to an org.
|
|
68
556
|
|
|
69
557
|
```
|
|
70
558
|
USAGE
|
|
71
|
-
$ sf project deploy pipeline quick -c <value> [--json] [--concise | --verbose] [-w <minutes> | --async] [-i
|
|
72
|
-
|
|
559
|
+
$ sf project deploy pipeline quick -c <value> [--json] [--flags-dir <value>] [--concise | --verbose] [-w <minutes> | --async] [-i
|
|
560
|
+
<value>] [-r]
|
|
73
561
|
|
|
74
562
|
FLAGS
|
|
75
563
|
-c, --devops-center-username=<value> (required) Username or alias of the DevOps Center org.
|
|
@@ -82,7 +570,8 @@ FLAGS
|
|
|
82
570
|
--verbose Show verbose output of the command result.
|
|
83
571
|
|
|
84
572
|
GLOBAL FLAGS
|
|
85
|
-
--
|
|
573
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
574
|
+
--json Format output as json.
|
|
86
575
|
|
|
87
576
|
DESCRIPTION
|
|
88
577
|
Quickly deploy a validated deployment to an org.
|
|
@@ -133,7 +622,7 @@ FLAG DESCRIPTIONS
|
|
|
133
622
|
"sf project deploy pipeline report".
|
|
134
623
|
```
|
|
135
624
|
|
|
136
|
-
_See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.
|
|
625
|
+
_See code: [src/commands/project/deploy/pipeline/quick.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/project/deploy/pipeline/quick.ts)_
|
|
137
626
|
|
|
138
627
|
## `sf project deploy pipeline report`
|
|
139
628
|
|
|
@@ -141,7 +630,7 @@ Check the status of a pipeline deploy operation.
|
|
|
141
630
|
|
|
142
631
|
```
|
|
143
632
|
USAGE
|
|
144
|
-
$ sf project deploy pipeline report -c <value> [--json] [-i <value>] [-r]
|
|
633
|
+
$ sf project deploy pipeline report -c <value> [--json] [--flags-dir <value>] [-i <value>] [-r]
|
|
145
634
|
|
|
146
635
|
FLAGS
|
|
147
636
|
-c, --devops-center-username=<value> (required) Username or alias of the DevOps Center org.
|
|
@@ -149,7 +638,8 @@ FLAGS
|
|
|
149
638
|
-r, --use-most-recent Use the job ID of the most recent deploy operation.
|
|
150
639
|
|
|
151
640
|
GLOBAL FLAGS
|
|
152
|
-
--
|
|
641
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
642
|
+
--json Format output as json.
|
|
153
643
|
|
|
154
644
|
DESCRIPTION
|
|
155
645
|
Check the status of a pipeline deploy operation.
|
|
@@ -180,7 +670,7 @@ FLAG DESCRIPTIONS
|
|
|
180
670
|
your most recent operation was longer than 3 days ago, this flag won't find the job ID.
|
|
181
671
|
```
|
|
182
672
|
|
|
183
|
-
_See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.
|
|
673
|
+
_See code: [src/commands/project/deploy/pipeline/report.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/project/deploy/pipeline/report.ts)_
|
|
184
674
|
|
|
185
675
|
## `sf project deploy pipeline resume`
|
|
186
676
|
|
|
@@ -188,7 +678,8 @@ Resume watching a pipeline deploy operation.
|
|
|
188
678
|
|
|
189
679
|
```
|
|
190
680
|
USAGE
|
|
191
|
-
$ sf project deploy pipeline resume -c <value> [--json] [-i <value>] [-r] [--concise | --verbose] [-w
|
|
681
|
+
$ sf project deploy pipeline resume -c <value> [--json] [--flags-dir <value>] [-i <value>] [-r] [--concise | --verbose] [-w
|
|
682
|
+
<minutes> | ]
|
|
192
683
|
|
|
193
684
|
FLAGS
|
|
194
685
|
-c, --devops-center-username=<value> (required) Username or alias of the DevOps Center org.
|
|
@@ -200,7 +691,8 @@ FLAGS
|
|
|
200
691
|
--verbose Show verbose output of the command result.
|
|
201
692
|
|
|
202
693
|
GLOBAL FLAGS
|
|
203
|
-
--
|
|
694
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
695
|
+
--json Format output as json.
|
|
204
696
|
|
|
205
697
|
DESCRIPTION
|
|
206
698
|
Resume watching a pipeline deploy operation.
|
|
@@ -245,7 +737,7 @@ FLAG DESCRIPTIONS
|
|
|
245
737
|
returns the job ID. To check the status of the operation, run "sf project deploy pipeline report".
|
|
246
738
|
```
|
|
247
739
|
|
|
248
|
-
_See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.
|
|
740
|
+
_See code: [src/commands/project/deploy/pipeline/resume.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/project/deploy/pipeline/resume.ts)_
|
|
249
741
|
|
|
250
742
|
## `sf project deploy pipeline start`
|
|
251
743
|
|
|
@@ -253,8 +745,9 @@ Deploy changes from a branch to the pipeline stage’s org.
|
|
|
253
745
|
|
|
254
746
|
```
|
|
255
747
|
USAGE
|
|
256
|
-
$ sf project deploy pipeline start -b <value> -p <value> -c <value> [--json] [-
|
|
257
|
-
NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg] [-w <minutes> | --async] [--concise |
|
|
748
|
+
$ sf project deploy pipeline start -b <value> -p <value> -c <value> [--json] [--flags-dir <value>] [-v <value>] [-a] [-t
|
|
749
|
+
<value>...] [-l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg] [-w <minutes> | --async] [--concise |
|
|
750
|
+
--verbose]
|
|
258
751
|
|
|
259
752
|
FLAGS
|
|
260
753
|
-a, --deploy-all Deploy all metadata in the branch to the stage's org.
|
|
@@ -273,7 +766,8 @@ FLAGS
|
|
|
273
766
|
--verbose Show verbose output of the command result.
|
|
274
767
|
|
|
275
768
|
GLOBAL FLAGS
|
|
276
|
-
--
|
|
769
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
770
|
+
--json Format output as json.
|
|
277
771
|
|
|
278
772
|
DESCRIPTION
|
|
279
773
|
Deploy changes from a branch to the pipeline stage’s org.
|
|
@@ -343,7 +837,7 @@ FLAG DESCRIPTIONS
|
|
|
343
837
|
"sf project deploy pipeline report".
|
|
344
838
|
```
|
|
345
839
|
|
|
346
|
-
_See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.
|
|
840
|
+
_See code: [src/commands/project/deploy/pipeline/start.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/project/deploy/pipeline/start.ts)_
|
|
347
841
|
|
|
348
842
|
## `sf project deploy pipeline validate`
|
|
349
843
|
|
|
@@ -351,8 +845,9 @@ Perform a validate-only deployment from a branch to the pipeline stage’s org.
|
|
|
351
845
|
|
|
352
846
|
```
|
|
353
847
|
USAGE
|
|
354
|
-
$ sf project deploy pipeline validate -b <value> -p <value> -c <value> [--json] [-
|
|
355
|
-
NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg] [-w <minutes> | --async] [--concise |
|
|
848
|
+
$ sf project deploy pipeline validate -b <value> -p <value> -c <value> [--json] [--flags-dir <value>] [-v <value>] [-a] [-t
|
|
849
|
+
<value>...] [-l NoTestRun|RunSpecifiedTests|RunLocalTests|RunAllTestsInOrg] [-w <minutes> | --async] [--concise |
|
|
850
|
+
--verbose]
|
|
356
851
|
|
|
357
852
|
FLAGS
|
|
358
853
|
-a, --deploy-all Deploy all metadata in the branch to the stage's org.
|
|
@@ -371,7 +866,8 @@ FLAGS
|
|
|
371
866
|
--verbose Show verbose output of the command result.
|
|
372
867
|
|
|
373
868
|
GLOBAL FLAGS
|
|
374
|
-
--
|
|
869
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
870
|
+
--json Format output as json.
|
|
375
871
|
|
|
376
872
|
DESCRIPTION
|
|
377
873
|
Perform a validate-only deployment from a branch to the pipeline stage’s org.
|
|
@@ -441,7 +937,7 @@ FLAG DESCRIPTIONS
|
|
|
441
937
|
"sf project deploy pipeline report".
|
|
442
938
|
```
|
|
443
939
|
|
|
444
|
-
_See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.
|
|
940
|
+
_See code: [src/commands/project/deploy/pipeline/validate.ts](https://github.com/salesforcecli/plugin-devops-center/blob/1.3.0/src/commands/project/deploy/pipeline/validate.ts)_
|
|
445
941
|
|
|
446
942
|
<!-- commandsstop -->
|
|
447
943
|
|
package/bin/dev.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { execute, settings } from '@oclif/core';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { join, dirname } from 'node:path';
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = dirname(__filename);
|
|
9
|
+
const project = join(__dirname, '..', 'tsconfig.json');
|
|
10
|
+
|
|
11
|
+
process.env.NODE_ENV = 'development';
|
|
12
|
+
|
|
13
|
+
settings.debug = true;
|
|
14
|
+
|
|
15
|
+
await execute({ development: true, dir: import.meta.url });
|