prodlysfcli 1.3.2 → 1.5.1
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 +165 -56
- package/lib/commands/prodly/branch-folders.d.ts +17 -0
- package/lib/commands/prodly/branch-folders.js +36 -0
- package/lib/commands/prodly/branch-folders.js.map +1 -0
- package/lib/commands/prodly/checkin.d.ts +1 -0
- package/lib/commands/prodly/checkin.js +5 -1
- package/lib/commands/prodly/checkin.js.map +1 -1
- package/lib/commands/prodly/checkout.d.ts +1 -0
- package/lib/commands/prodly/checkout.js +5 -1
- package/lib/commands/prodly/checkout.js.map +1 -1
- package/lib/commands/prodly/releases.d.ts +19 -0
- package/lib/commands/prodly/releases.js +77 -0
- package/lib/commands/prodly/releases.js.map +1 -0
- package/lib/services/configuration-management.d.ts +6 -0
- package/lib/services/configuration-management.js +10 -0
- package/lib/services/configuration-management.js.map +1 -0
- package/lib/services/release-configurations.d.ts +6 -0
- package/lib/services/release-configurations.js +7 -0
- package/lib/services/release-configurations.js.map +1 -0
- package/lib/services/releases.d.ts +10 -0
- package/lib/services/releases.js +16 -0
- package/lib/services/releases.js.map +1 -0
- package/lib/types/prodly.d.ts +52 -0
- package/messages/prodly.branch-folders.md +8 -0
- package/messages/prodly.json +9 -0
- package/messages/prodly.releases.md +12 -0
- package/npm-shrinkwrap.json +1098 -1053
- package/oclif.lock +1229 -1201
- package/oclif.manifest.json +228 -1
- package/package.json +12 -11
package/LICENSE.txt
CHANGED
|
@@ -1,12 +1,206 @@
|
|
|
1
|
-
|
|
1
|
+
Apache License Version 2.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Salesforce, Inc.
|
|
2
4
|
All rights reserved.
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
Apache License
|
|
7
|
+
Version 2.0, January 2004
|
|
8
|
+
http://www.apache.org/licenses/
|
|
9
|
+
|
|
10
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
11
|
+
|
|
12
|
+
1. Definitions.
|
|
13
|
+
|
|
14
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
15
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
16
|
+
|
|
17
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
18
|
+
the copyright owner that is granting the License.
|
|
19
|
+
|
|
20
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
21
|
+
other entities that control, are controlled by, or are under common
|
|
22
|
+
control with that entity. For the purposes of this definition,
|
|
23
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
24
|
+
direction or management of such entity, whether by contract or
|
|
25
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
26
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
27
|
+
|
|
28
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
29
|
+
exercising permissions granted by this License.
|
|
30
|
+
|
|
31
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
32
|
+
including but not limited to software source code, documentation
|
|
33
|
+
source, and configuration files.
|
|
34
|
+
|
|
35
|
+
"Object" form shall mean any form resulting from mechanical
|
|
36
|
+
transformation or translation of a Source form, including but
|
|
37
|
+
not limited to compiled object code, generated documentation,
|
|
38
|
+
and conversions to other media types.
|
|
39
|
+
|
|
40
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
41
|
+
Object form, made available under the License, as indicated by a
|
|
42
|
+
copyright notice that is included in or attached to the work
|
|
43
|
+
(an example is provided in the Appendix below).
|
|
44
|
+
|
|
45
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
46
|
+
form, that is based on (or derived from) the Work and for which the
|
|
47
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
48
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
49
|
+
of this License, Derivative Works shall not include works that remain
|
|
50
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
51
|
+
the Work and Derivative Works thereof.
|
|
52
|
+
|
|
53
|
+
"Contribution" shall mean any work of authorship, including
|
|
54
|
+
the original version of the Work and any modifications or additions
|
|
55
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
56
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
57
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
58
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
59
|
+
means any form of electronic, verbal, or written communication sent
|
|
60
|
+
to the Licensor or its representatives, including but not limited to
|
|
61
|
+
communication on electronic mailing lists, source code control systems,
|
|
62
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
63
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
64
|
+
excluding communication that is conspicuously marked or otherwise
|
|
65
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
66
|
+
|
|
67
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
68
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
69
|
+
subsequently incorporated within the Work.
|
|
70
|
+
|
|
71
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
72
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
73
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
74
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
75
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
76
|
+
Work and such Derivative Works in Source or Object form.
|
|
77
|
+
|
|
78
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
79
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
80
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
81
|
+
(except as stated in this section) patent license to make, have made,
|
|
82
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
83
|
+
where such license applies only to those patent claims licensable
|
|
84
|
+
by such Contributor that are necessarily infringed by their
|
|
85
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
86
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
87
|
+
institute patent litigation against any entity (including a
|
|
88
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
89
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
90
|
+
or contributory patent infringement, then any patent licenses
|
|
91
|
+
granted to You under this License for that Work shall terminate
|
|
92
|
+
as of the date such litigation is filed.
|
|
93
|
+
|
|
94
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
95
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
96
|
+
modifications, and in Source or Object form, provided that You
|
|
97
|
+
meet the following conditions:
|
|
98
|
+
|
|
99
|
+
(a) You must give any other recipients of the Work or
|
|
100
|
+
Derivative Works a copy of this License; and
|
|
101
|
+
|
|
102
|
+
(b) You must cause any modified files to carry prominent notices
|
|
103
|
+
stating that You changed the files; and
|
|
104
|
+
|
|
105
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
106
|
+
that You distribute, all copyright, patent, trademark, and
|
|
107
|
+
attribution notices from the Source form of the Work,
|
|
108
|
+
excluding those notices that do not pertain to any part of
|
|
109
|
+
the Derivative Works; and
|
|
110
|
+
|
|
111
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
112
|
+
distribution, then any Derivative Works that You distribute must
|
|
113
|
+
include a readable copy of the attribution notices contained
|
|
114
|
+
within such NOTICE file, excluding those notices that do not
|
|
115
|
+
pertain to any part of the Derivative Works, in at least one
|
|
116
|
+
of the following places: within a NOTICE text file distributed
|
|
117
|
+
as part of the Derivative Works; within the Source form or
|
|
118
|
+
documentation, if provided along with the Derivative Works; or,
|
|
119
|
+
within a display generated by the Derivative Works, if and
|
|
120
|
+
wherever such third-party notices normally appear. The contents
|
|
121
|
+
of the NOTICE file are for informational purposes only and
|
|
122
|
+
do not modify the License. You may add Your own attribution
|
|
123
|
+
notices within Derivative Works that You distribute, alongside
|
|
124
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
125
|
+
that such additional attribution notices cannot be construed
|
|
126
|
+
as modifying the License.
|
|
127
|
+
|
|
128
|
+
You may add Your own copyright statement to Your modifications and
|
|
129
|
+
may provide additional or different license terms and conditions
|
|
130
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
131
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
132
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
133
|
+
the conditions stated in this License.
|
|
134
|
+
|
|
135
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
136
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
137
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
138
|
+
this License, without any additional terms or conditions.
|
|
139
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
140
|
+
the terms of any separate license agreement you may have executed
|
|
141
|
+
with Licensor regarding such Contributions.
|
|
142
|
+
|
|
143
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
144
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
145
|
+
except as required for reasonable and customary use in describing the
|
|
146
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
147
|
+
|
|
148
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
149
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
150
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
151
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
152
|
+
implied, including, without limitation, any warranties or conditions
|
|
153
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
154
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
155
|
+
appropriateness of using or redistributing the Work and assume any
|
|
156
|
+
risks associated with Your exercise of permissions under this License.
|
|
157
|
+
|
|
158
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
159
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
160
|
+
unless required by applicable law (such as deliberate and grossly
|
|
161
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
162
|
+
liable to You for damages, including any direct, indirect, special,
|
|
163
|
+
incidental, or consequential damages of any character arising as a
|
|
164
|
+
result of this License or out of the use or inability to use the
|
|
165
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
166
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
167
|
+
other commercial damages or losses), even if such Contributor
|
|
168
|
+
has been advised of the possibility of such damages.
|
|
169
|
+
|
|
170
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
171
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
172
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
173
|
+
or other liability obligations and/or rights consistent with this
|
|
174
|
+
License. However, in accepting such obligations, You may act only
|
|
175
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
176
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
177
|
+
defend, and hold each Contributor harmless for any liability
|
|
178
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
179
|
+
of your accepting any such warranty or additional liability.
|
|
180
|
+
|
|
181
|
+
END OF TERMS AND CONDITIONS
|
|
182
|
+
|
|
183
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
184
|
+
|
|
185
|
+
To apply the Apache License to your work, attach the following
|
|
186
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
187
|
+
replaced with your own identifying information. (Don't include
|
|
188
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
189
|
+
comment syntax for the file format. We also recommend that a
|
|
190
|
+
file or class name and description of purpose be included on the
|
|
191
|
+
same "printed page" as the copyright notice for easier
|
|
192
|
+
identification within third-party archives.
|
|
5
193
|
|
|
6
|
-
|
|
194
|
+
Copyright {yyyy} {name of copyright owner}
|
|
7
195
|
|
|
8
|
-
|
|
196
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
197
|
+
you may not use this file except in compliance with the License.
|
|
198
|
+
You may obtain a copy of the License at
|
|
9
199
|
|
|
10
|
-
|
|
200
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
201
|
|
|
12
|
-
|
|
202
|
+
Unless required by applicable law or agreed to in writing, software
|
|
203
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
204
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
205
|
+
See the License for the specific language governing permissions and
|
|
206
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# prodlysfcli
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/prodlysfcli) [](https://npmjs.org/package/prodlysfcli) [](https://www.npmjs.com/package/prodlysfcli) [](https://npmjs.org/package/prodlysfcli) [](https://opensource.org/license/apache-2-0)
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -41,21 +41,53 @@ sf plugins
|
|
|
41
41
|
## Commands
|
|
42
42
|
|
|
43
43
|
<!-- commands -->
|
|
44
|
+
* [`sf prodly branch-folders`](#sf-prodly-branch-folders)
|
|
45
|
+
* [`sf prodly change-types`](#sf-prodly-change-types)
|
|
46
|
+
* [`sf prodly checkin`](#sf-prodly-checkin)
|
|
47
|
+
* [`sf prodly checkout`](#sf-prodly-checkout)
|
|
48
|
+
* [`sf prodly deploy`](#sf-prodly-deploy)
|
|
49
|
+
* [`sf prodly jobs`](#sf-prodly-jobs)
|
|
50
|
+
* [`sf prodly manage`](#sf-prodly-manage)
|
|
51
|
+
* [`sf prodly releases`](#sf-prodly-releases)
|
|
52
|
+
* [`sf prodly version`](#sf-prodly-version)
|
|
44
53
|
|
|
45
|
-
|
|
46
|
-
- [`sf prodly:checkin`](#sf-prodlycheckin)
|
|
47
|
-
- [`sf prodly:checkout`](#sf-prodlycheckout)
|
|
48
|
-
- [`sf prodly:deploy`](#sf-prodlydeploy)
|
|
49
|
-
- [`sf prodly:manage`](#sf-prodlymanage)
|
|
50
|
-
- [`sf prodly:jobs`](#sf-prodlyjobs)
|
|
54
|
+
## `sf prodly branch-folders`
|
|
51
55
|
|
|
52
|
-
|
|
56
|
+
prodly:branch-folders command
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
USAGE
|
|
60
|
+
$ sf prodly branch-folders -v <value> -l [--json] [--flags-dir <value>] [--api-version <value>]
|
|
61
|
+
|
|
62
|
+
FLAGS
|
|
63
|
+
-l, --list (required) list all branch folders
|
|
64
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
|
65
|
+
configuration variable is already set.
|
|
66
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
67
|
+
|
|
68
|
+
GLOBAL FLAGS
|
|
69
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
70
|
+
--json Format output as json.
|
|
71
|
+
|
|
72
|
+
DESCRIPTION
|
|
73
|
+
prodly:branch-folders command
|
|
74
|
+
|
|
75
|
+
List all branch folders.
|
|
76
|
+
|
|
77
|
+
EXAMPLES
|
|
78
|
+
$ sf prodly:branch-folders --target-dev-hub jsmith@acme.com -l
|
|
79
|
+
Lists all branch folders
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
_See code: [src/commands/prodly/branch-folders.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.5.0/src/commands/prodly/branch-folders.ts)_
|
|
83
|
+
|
|
84
|
+
## `sf prodly change-types`
|
|
53
85
|
|
|
54
86
|
prodly:change-types command
|
|
55
87
|
|
|
56
88
|
```
|
|
57
89
|
USAGE
|
|
58
|
-
$ sf prodly
|
|
90
|
+
$ sf prodly change-types -v <value> [--json] [--flags-dir <value>] [--api-version <value>] [-t <value>] [-l] [-c] [-n
|
|
59
91
|
<value>] [-u <value>]
|
|
60
92
|
|
|
61
93
|
FLAGS
|
|
@@ -69,6 +101,7 @@ FLAGS
|
|
|
69
101
|
--api-version=<value> Override the api version used for api requests made by this command
|
|
70
102
|
|
|
71
103
|
GLOBAL FLAGS
|
|
104
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
72
105
|
--json Format output as json.
|
|
73
106
|
|
|
74
107
|
DESCRIPTION
|
|
@@ -87,28 +120,34 @@ EXAMPLES
|
|
|
87
120
|
Creates a scratch org based on a change type
|
|
88
121
|
```
|
|
89
122
|
|
|
90
|
-
|
|
123
|
+
_See code: [src/commands/prodly/change-types.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.5.0/src/commands/prodly/change-types.ts)_
|
|
124
|
+
|
|
125
|
+
## `sf prodly checkin`
|
|
126
|
+
|
|
127
|
+
prodly:checkin command
|
|
91
128
|
|
|
92
129
|
```
|
|
93
130
|
USAGE
|
|
94
|
-
$ sf prodly
|
|
95
|
-
<value>] [-p <value>]
|
|
131
|
+
$ sf prodly checkin -v <value> -o <value> -c <value> [--json] [--flags-dir <value>] [-f <value>] [-b <value>] [-t
|
|
132
|
+
<value>] [-q <value>] [-i <value>] [-z <value>] [-p <value>]
|
|
96
133
|
|
|
97
134
|
FLAGS
|
|
98
135
|
-b, --branch=<value> branch name for deployment
|
|
99
136
|
-c, --comment=<value> (required) comment for the command versioning commit
|
|
137
|
+
-f, --data-folder=<value> data branch folder id to use
|
|
100
138
|
-i, --instance=<value> managed instance ID on which to perform the action
|
|
101
|
-
-o, --target-org=<value> (required) Username or alias of the target org. Not
|
|
102
|
-
|
|
139
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
140
|
+
configuration variable is already set.
|
|
103
141
|
-p, --plan=<value> name or record ID of the deployment plan to deploy
|
|
104
142
|
-q, --filter=<value> query filter override for a data set deployment
|
|
105
143
|
-t, --dataset=<value> name or record ID of the data set to deploy
|
|
106
|
-
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not
|
|
107
|
-
|
|
144
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
|
145
|
+
configuration variable is already set.
|
|
108
146
|
-z, --notes=<value> notes for the deployment
|
|
109
147
|
|
|
110
148
|
GLOBAL FLAGS
|
|
111
|
-
--
|
|
149
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
150
|
+
--json Format output as json.
|
|
112
151
|
|
|
113
152
|
DESCRIPTION
|
|
114
153
|
prodly:checkin command
|
|
@@ -129,29 +168,35 @@ EXAMPLES
|
|
|
129
168
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
130
169
|
```
|
|
131
170
|
|
|
132
|
-
|
|
171
|
+
_See code: [src/commands/prodly/checkin.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.5.0/src/commands/prodly/checkin.ts)_
|
|
172
|
+
|
|
173
|
+
## `sf prodly checkout`
|
|
174
|
+
|
|
175
|
+
prodly:checkout command
|
|
133
176
|
|
|
134
177
|
```
|
|
135
178
|
USAGE
|
|
136
|
-
$ sf prodly
|
|
137
|
-
<value>] [-p <value>]
|
|
179
|
+
$ sf prodly checkout -v <value> -o <value> [--json] [--flags-dir <value>] [-f <value>] [-b <value>] [-t <value>]
|
|
180
|
+
[-e] [-q <value>] [-i <value>] [-n <value>] [-z <value>] [-p <value>]
|
|
138
181
|
|
|
139
182
|
FLAGS
|
|
140
183
|
-b, --branch=<value> branch name for deployment
|
|
141
184
|
-e, --deactivate deactivate all events for the deployment
|
|
185
|
+
-f, --data-folder=<value> data branch folder id to use
|
|
142
186
|
-i, --instance=<value> managed instance ID on which to perform the action
|
|
143
187
|
-n, --name=<value> name for the deployment
|
|
144
|
-
-o, --target-org=<value> (required) Username or alias of the target org. Not
|
|
145
|
-
|
|
188
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
189
|
+
configuration variable is already set.
|
|
146
190
|
-p, --plan=<value> name or record ID of the deployment plan to deploy
|
|
147
191
|
-q, --filter=<value> query filter override for a data set deployment
|
|
148
192
|
-t, --dataset=<value> name or record ID of the data set to deploy
|
|
149
|
-
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not
|
|
150
|
-
|
|
193
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
|
194
|
+
configuration variable is already set.
|
|
151
195
|
-z, --notes=<value> notes for the deployment
|
|
152
196
|
|
|
153
197
|
GLOBAL FLAGS
|
|
154
|
-
--
|
|
198
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
199
|
+
--json Format output as json.
|
|
155
200
|
|
|
156
201
|
DESCRIPTION
|
|
157
202
|
prodly:checkout command
|
|
@@ -172,12 +217,16 @@ EXAMPLES
|
|
|
172
217
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
173
218
|
```
|
|
174
219
|
|
|
175
|
-
|
|
220
|
+
_See code: [src/commands/prodly/checkout.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.5.0/src/commands/prodly/checkout.ts)_
|
|
221
|
+
|
|
222
|
+
## `sf prodly deploy`
|
|
223
|
+
|
|
224
|
+
prodly:deploy command
|
|
176
225
|
|
|
177
226
|
```
|
|
178
227
|
USAGE
|
|
179
|
-
$ sf prodly
|
|
180
|
-
<value>] [-z <value>] [-p <value>] [-l] [-s <value>]
|
|
228
|
+
$ sf prodly deploy -v <value> -o <value> [--json] [--flags-dir <value>] [-t <value>] [-e] [-d <value>] [-q
|
|
229
|
+
<value>] [-b <value>] [-n <value>] [-z <value>] [-p <value>] [-l] [-s <value>]
|
|
181
230
|
|
|
182
231
|
FLAGS
|
|
183
232
|
-b, --label=<value> connection and managed instance name
|
|
@@ -185,18 +234,19 @@ FLAGS
|
|
|
185
234
|
-e, --deactivate deactivate all events for the deployment
|
|
186
235
|
-l, --simulation perform a data simulation
|
|
187
236
|
-n, --name=<value> name for the deployment
|
|
188
|
-
-o, --target-org=<value> (required) Username or alias of the target org. Not
|
|
189
|
-
|
|
237
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
238
|
+
configuration variable is already set.
|
|
190
239
|
-p, --plan=<value> name or record ID of the deployment plan to deploy
|
|
191
240
|
-q, --filter=<value> query filter override for a data set deployment
|
|
192
241
|
-s, --source=<value> source managed instance ID
|
|
193
242
|
-t, --dataset=<value> name or record ID of the data set to deploy
|
|
194
|
-
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not
|
|
195
|
-
|
|
243
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
|
244
|
+
configuration variable is already set.
|
|
196
245
|
-z, --notes=<value> notes for the deployment
|
|
197
246
|
|
|
198
247
|
GLOBAL FLAGS
|
|
199
|
-
--
|
|
248
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
249
|
+
--json Format output as json.
|
|
200
250
|
|
|
201
251
|
DESCRIPTION
|
|
202
252
|
prodly:deploy command
|
|
@@ -206,7 +256,6 @@ DESCRIPTION
|
|
|
206
256
|
EXAMPLES
|
|
207
257
|
$ sf prodly:deploy -n scratchorg --target-org FixesScratchOrg -v MainDevHub
|
|
208
258
|
Command output... deploying from the dev hub, the control org, to the scratch org, auto managed with provided name.
|
|
209
|
-
Command output...
|
|
210
259
|
|
|
211
260
|
$ sf prodly:deploy --target-org test-utxac7gbati9@example.com --target-dev-hub jsmith@acme.com
|
|
212
261
|
Command output... deploying from the dev hub, the control org, to the scratch org. Long param names.
|
|
@@ -218,12 +267,45 @@ EXAMPLES
|
|
|
218
267
|
Command output... deploying to the scratch org from the UAT sandbox, using the named connection record in the dev hub, control org. Long param names.
|
|
219
268
|
```
|
|
220
269
|
|
|
221
|
-
|
|
270
|
+
_See code: [src/commands/prodly/deploy.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.5.0/src/commands/prodly/deploy.ts)_
|
|
271
|
+
|
|
272
|
+
## `sf prodly jobs`
|
|
273
|
+
|
|
274
|
+
prodly:jobs command
|
|
275
|
+
|
|
276
|
+
```
|
|
277
|
+
USAGE
|
|
278
|
+
$ sf prodly jobs -v <value> -j <value> [--json] [--flags-dir <value>]
|
|
279
|
+
|
|
280
|
+
FLAGS
|
|
281
|
+
-j, --job=<value> (required) Prodly Job ID
|
|
282
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
|
283
|
+
configuration variable is already set.
|
|
284
|
+
|
|
285
|
+
GLOBAL FLAGS
|
|
286
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
287
|
+
--json Format output as json.
|
|
288
|
+
|
|
289
|
+
DESCRIPTION
|
|
290
|
+
prodly:jobs command
|
|
291
|
+
|
|
292
|
+
Check the job status.
|
|
293
|
+
|
|
294
|
+
EXAMPLES
|
|
295
|
+
$ sf prodly:jobs -j jobId -v MainDevHub
|
|
296
|
+
Print the job status for the provided job Id.
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
_See code: [src/commands/prodly/jobs.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.5.0/src/commands/prodly/jobs.ts)_
|
|
300
|
+
|
|
301
|
+
## `sf prodly manage`
|
|
302
|
+
|
|
303
|
+
prodly:manage command
|
|
222
304
|
|
|
223
305
|
```
|
|
224
306
|
USAGE
|
|
225
|
-
$ sf prodly
|
|
226
|
-
[-p] [-x] [-s]
|
|
307
|
+
$ sf prodly manage -v <value> -o <value> [--json] [--flags-dir <value>] [-c <value>] [-n <value>] [-i <value>]
|
|
308
|
+
[-b <value>] [-l] [-m] [-p] [-x] [-s]
|
|
227
309
|
|
|
228
310
|
FLAGS
|
|
229
311
|
-b, --label=<value> connection and managed instance name
|
|
@@ -232,22 +314,24 @@ FLAGS
|
|
|
232
314
|
-l, --list list all managed instances
|
|
233
315
|
-m, --manage manage a new instance
|
|
234
316
|
-n, --connection=<value> connection to use for the managed instance
|
|
235
|
-
-o, --target-org=<value> (required) Username or alias of the target org. Not
|
|
236
|
-
|
|
317
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
318
|
+
configuration variable is already set.
|
|
237
319
|
-p, --print print the managed instances in a standard format in addition to returning structured
|
|
238
320
|
data
|
|
239
321
|
-s, --version version the new managed instance, branch created and data deployed to the org
|
|
240
|
-
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not
|
|
241
|
-
|
|
322
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
|
323
|
+
configuration variable is already set.
|
|
242
324
|
-x, --unmanage unmanage the specified instance
|
|
243
325
|
|
|
244
326
|
GLOBAL FLAGS
|
|
245
|
-
--
|
|
327
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
328
|
+
--json Format output as json.
|
|
246
329
|
|
|
247
330
|
DESCRIPTION
|
|
248
331
|
prodly:manage command
|
|
249
332
|
|
|
250
|
-
Authorize (or unauthorize) a Salesforce environment (not already added to the Environments page in Release tab) for
|
|
333
|
+
Authorize (or unauthorize) a Salesforce environment (not already added to the Environments page in Release tab) for
|
|
334
|
+
use by the plugin.
|
|
251
335
|
|
|
252
336
|
EXAMPLES
|
|
253
337
|
$ sf prodly:manage -l -p
|
|
@@ -258,38 +342,57 @@ EXAMPLES
|
|
|
258
342
|
|
|
259
343
|
$ sf prodly:manage -m --target-org test-utxac7gbati9@example.com -n dev7sbx
|
|
260
344
|
Manage and version the org associated with the target username under the Prodly account associated with the default DevHub control org.
|
|
261
|
-
|
|
262
345
|
```
|
|
263
346
|
|
|
264
|
-
|
|
347
|
+
_See code: [src/commands/prodly/manage.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.5.0/src/commands/prodly/manage.ts)_
|
|
348
|
+
|
|
349
|
+
## `sf prodly releases`
|
|
350
|
+
|
|
351
|
+
prodly:releases command
|
|
265
352
|
|
|
266
353
|
```
|
|
267
354
|
USAGE
|
|
268
|
-
$ sf prodly
|
|
355
|
+
$ sf prodly releases -v <value> [--json] [--flags-dir <value>] [--api-version <value>] [-a] [-l | [-d -i <value> -r
|
|
356
|
+
<value>] | ] [-n]
|
|
269
357
|
|
|
270
358
|
FLAGS
|
|
271
|
-
-
|
|
272
|
-
-
|
|
273
|
-
|
|
359
|
+
-a, --deactivate-all-events deactivate all events for the release
|
|
360
|
+
-d, --deploy deploy a release
|
|
361
|
+
-i, --instance=<value> managed instance ID on which to perform the action
|
|
362
|
+
-l, --list list all releases
|
|
363
|
+
-n, --validation perform a data/metadata validation
|
|
364
|
+
-r, --release-id=<value> release Id to deploy
|
|
365
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
|
366
|
+
configuration variable is already set.
|
|
367
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
274
368
|
|
|
275
369
|
GLOBAL FLAGS
|
|
276
|
-
--
|
|
370
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
371
|
+
--json Format output as json.
|
|
277
372
|
|
|
278
373
|
DESCRIPTION
|
|
279
|
-
prodly:
|
|
374
|
+
prodly:releases command
|
|
280
375
|
|
|
281
|
-
|
|
376
|
+
List all releases and deploy a release.
|
|
282
377
|
|
|
283
378
|
EXAMPLES
|
|
284
|
-
$ sf prodly:
|
|
285
|
-
|
|
379
|
+
$ sf prodly:releases --target-dev-hub jsmith@acme.com -l
|
|
380
|
+
Lists all the releases
|
|
381
|
+
|
|
382
|
+
$ sf prodly:releases --target-dev-hub jsmith@acme.com -d -i "f50616b6-57b1-4941-802f-ee0e2506f217" -r "a5H6e0000024xKUEAY"
|
|
383
|
+
Creates a release given a release id and a destination instance id
|
|
384
|
+
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
286
385
|
```
|
|
287
386
|
|
|
288
|
-
|
|
387
|
+
_See code: [src/commands/prodly/releases.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.5.0/src/commands/prodly/releases.ts)_
|
|
388
|
+
|
|
389
|
+
## `sf prodly version`
|
|
390
|
+
|
|
391
|
+
prodly:version command
|
|
289
392
|
|
|
290
393
|
```
|
|
291
394
|
USAGE
|
|
292
|
-
$ sf prodly
|
|
395
|
+
$ sf prodly version -v <value> -o <value> [--json] [--flags-dir <value>] [-b <value>] [-s <value>] [-i <value>]
|
|
293
396
|
[-x]
|
|
294
397
|
|
|
295
398
|
FLAGS
|
|
@@ -304,6 +407,7 @@ FLAGS
|
|
|
304
407
|
-x, --unlink unlink the branch from the managed instance
|
|
305
408
|
|
|
306
409
|
GLOBAL FLAGS
|
|
410
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
307
411
|
--json Format output as json.
|
|
308
412
|
|
|
309
413
|
DESCRIPTION
|
|
@@ -319,8 +423,13 @@ EXAMPLES
|
|
|
319
423
|
$ sf prodly:version -s main -b cli-branch -i f50616b6-57b1-4941-802f-ee0e2506f217
|
|
320
424
|
Add version control to the managed instance identified by the provided ID. Use the "main" branch as a base for a new branch called "cli-branch"
|
|
321
425
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
426
|
+
|
|
427
|
+
$ sf prodly:version -x -i f50616b6-57b1-4941-802f-ee0e2506f217
|
|
428
|
+
Remove version control from the managed instance identified by the provided ID.
|
|
429
|
+
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
322
430
|
```
|
|
323
431
|
|
|
432
|
+
_See code: [src/commands/prodly/version.ts](https://github.com/prodly/prodly-sf-cli/blob/v1.5.0/src/commands/prodly/version.ts)_
|
|
324
433
|
<!-- commandsstop -->
|
|
325
434
|
|
|
326
435
|
<!-- debugging-your-plugin -->
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { JSONObject } from '../../types/generic.js';
|
|
3
|
+
export type ProdlyBranchFoldersResult = {
|
|
4
|
+
path: string;
|
|
5
|
+
};
|
|
6
|
+
export default class ProdlyBranchFolders extends SfCommand<JSONObject> {
|
|
7
|
+
static readonly summary: string;
|
|
8
|
+
static readonly description: string;
|
|
9
|
+
static readonly examples: string[];
|
|
10
|
+
static readonly flags: {
|
|
11
|
+
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
list: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<JSONObject>;
|
|
16
|
+
private logVCSRepoFolder;
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Messages, SfError } from '@salesforce/core';
|
|
2
|
+
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
+
import { getVCSRepoFolders } from '../../services/configuration-management.js';
|
|
4
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
5
|
+
const commandMessages = Messages.loadMessages('prodlysfcli', 'prodly.branch-folders');
|
|
6
|
+
const prodlyMessages = Messages.loadMessages('prodlysfcli', 'prodly');
|
|
7
|
+
export default class ProdlyBranchFolders extends SfCommand {
|
|
8
|
+
static summary = commandMessages.getMessage('summary');
|
|
9
|
+
static description = prodlyMessages.getMessage('descriptionBranchFoldersCommand');
|
|
10
|
+
static examples = commandMessages.getMessages('examples');
|
|
11
|
+
static flags = {
|
|
12
|
+
'api-version': Flags.orgApiVersion(),
|
|
13
|
+
'target-dev-hub': Flags.requiredHub(),
|
|
14
|
+
list: Flags.boolean({
|
|
15
|
+
char: 'l',
|
|
16
|
+
required: true,
|
|
17
|
+
summary: prodlyMessages.getMessage('listBranchFoldersFlagDescription'),
|
|
18
|
+
}),
|
|
19
|
+
};
|
|
20
|
+
async run() {
|
|
21
|
+
const { flags } = await this.parse(ProdlyBranchFolders);
|
|
22
|
+
const hubOrg = flags['target-dev-hub'];
|
|
23
|
+
const hubConn = hubOrg.getConnection(flags['api-version']);
|
|
24
|
+
const vcsRepoFolders = await getVCSRepoFolders({ hubConn });
|
|
25
|
+
if (!vcsRepoFolders)
|
|
26
|
+
throw new SfError('No branch folders found');
|
|
27
|
+
vcsRepoFolders.forEach((vcsRepoFolder) => this.logVCSRepoFolder(vcsRepoFolder));
|
|
28
|
+
return vcsRepoFolders;
|
|
29
|
+
}
|
|
30
|
+
logVCSRepoFolder(vcsRepoFolder) {
|
|
31
|
+
this.log('ID:', vcsRepoFolder.id + `${vcsRepoFolder.isDefault ? ` (default ${vcsRepoFolder.folderType} folder)` : ''}`);
|
|
32
|
+
this.log('Folder Path:', vcsRepoFolder.folderPath);
|
|
33
|
+
this.log('Folder Type:', vcsRepoFolder.folderType + '\n');
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=branch-folders.js.map
|