@salesforce/plugin-org 1.13.2 → 2.0.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/CHANGELOG.md +14 -0
- package/README.md +90 -98
- package/lib/commands/force/org/beta/create.js +19 -21
- package/lib/commands/force/org/beta/create.js.map +1 -1
- package/lib/commands/force/org/clone.js +8 -13
- package/lib/commands/force/org/clone.js.map +1 -1
- package/lib/commands/force/org/display.js +5 -8
- package/lib/commands/force/org/display.js.map +1 -1
- package/lib/commands/force/org/list.js +42 -25
- package/lib/commands/force/org/list.js.map +1 -1
- package/lib/commands/force/org/open.js +5 -5
- package/lib/commands/force/org/open.js.map +1 -1
- package/lib/commands/force/org/status.js +7 -8
- package/lib/commands/force/org/status.js.map +1 -1
- package/lib/shared/orgListUtil.d.ts +6 -3
- package/lib/shared/orgListUtil.js +9 -8
- package/lib/shared/orgListUtil.js.map +1 -1
- package/lib/shared/sandboxReporter.js +2 -3
- package/lib/shared/sandboxReporter.js.map +1 -1
- package/lib/shared/utils.js +2 -2
- package/lib/shared/utils.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +17 -18
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.0.0](https://github.com/salesforcecli/plugin-org/compare/v1.13.2...v2.0.0) (2022-06-27)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- use StateAggregator [sb-nuts] ([8abe9d7](https://github.com/salesforcecli/plugin-org/commit/8abe9d7abe2c8f5fb19fd9c092218a9b5c40e130))
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- do not use deprecated config var for org create ([52a3437](https://github.com/salesforcecli/plugin-org/commit/52a3437fd416c843ff6780585241a17575b7bd6a))
|
|
14
|
+
- handle orgs with no alias ([e89ce56](https://github.com/salesforcecli/plugin-org/commit/e89ce56baaa5361398737280d290db0c062b3a25))
|
|
15
|
+
- parking orbit plugin-org ([cb631c9](https://github.com/salesforcecli/plugin-org/commit/cb631c9de35c6805ca16c93217a3932b5f5b1ec8))
|
|
16
|
+
- print defaultmarker for org ([4f95931](https://github.com/salesforcecli/plugin-org/commit/4f959312bf9283c362cc28d647764b025c370105))
|
|
17
|
+
- **status:** write config file after the alias is set [sb-nuts] ([57ae082](https://github.com/salesforcecli/plugin-org/commit/57ae0829af4adc3b39d0a659829afef9e3b54677))
|
|
18
|
+
|
|
5
19
|
### [1.13.2](https://github.com/salesforcecli/plugin-org/compare/v1.13.1...v1.13.2) (2022-05-20)
|
|
6
20
|
|
|
7
21
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -93,65 +93,56 @@ create a scratch or sandbox org
|
|
|
93
93
|
```
|
|
94
94
|
USAGE
|
|
95
95
|
$ sfdx force:org:beta:create [name=value...] [-t scratch|sandbox] [-f <filepath>] [-n] [-c] [-i <string>] [-s] [-a
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
OPTIONS
|
|
100
|
-
-a, --setalias=setalias alias for the created org
|
|
96
|
+
<string>] [-w <minutes>] [-d <integer>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
97
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
101
98
|
|
|
99
|
+
FLAGS
|
|
100
|
+
-a, --setalias=<value> alias for the created org
|
|
102
101
|
-c, --noancestors do not include second-generation
|
|
103
102
|
package ancestors in the scratch org
|
|
104
|
-
|
|
105
|
-
-d, --durationdays=durationdays duration of the scratch org (in
|
|
103
|
+
-d, --durationdays=<value> duration of the scratch org (in
|
|
106
104
|
days) (default:7, min:1, max:30)
|
|
107
|
-
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
-i, --clientid=clientid connected app consumer key; not
|
|
105
|
+
-f, --definitionfile=<value> path to an org definition file
|
|
106
|
+
-i, --clientid=<value> connected app consumer key; not
|
|
111
107
|
supported for sandbox org creation
|
|
112
|
-
|
|
113
108
|
-n, --nonamespace create the scratch org with no
|
|
114
109
|
namespace
|
|
115
|
-
|
|
116
110
|
-s, --setdefaultusername set the created org as the default
|
|
117
111
|
username
|
|
118
|
-
|
|
119
112
|
-t, --type=(scratch|sandbox) [default: scratch] type of org to
|
|
120
113
|
create
|
|
121
|
-
|
|
122
|
-
-u, --targetusername=targetusername username or alias for the target
|
|
114
|
+
-u, --targetusername=<value> username or alias for the target
|
|
123
115
|
org; overrides default target org
|
|
124
|
-
|
|
125
|
-
-v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
|
|
116
|
+
-v, --targetdevhubusername=<value> username or alias for the dev hub
|
|
126
117
|
org; overrides default dev hub org
|
|
127
|
-
|
|
128
|
-
-w, --wait=wait [default: 6 minutes] the streaming
|
|
118
|
+
-w, --wait=<value> [default: 6 minutes] the streaming
|
|
129
119
|
client socket timeout (in minutes)
|
|
130
|
-
|
|
131
|
-
--apiversion=apiversion override the api version used for
|
|
120
|
+
--apiversion=<value> override the api version used for
|
|
132
121
|
api requests made by this command
|
|
133
|
-
|
|
134
122
|
--json format output as json
|
|
135
|
-
|
|
136
123
|
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
137
124
|
this command invocation
|
|
138
125
|
|
|
139
126
|
DESCRIPTION
|
|
127
|
+
create a scratch or sandbox org
|
|
128
|
+
|
|
140
129
|
Creates a scratch org or a sandbox org using the values specified in a configuration file or key=value pairs that you
|
|
141
130
|
specify on the command line. Values specified on the command line override values in the configuration file. Specify a
|
|
142
|
-
|
|
131
|
+
configuration file or provide key=value pairs while creating a scratch org or a sandbox. When creating scratch orgs,
|
|
143
132
|
—targetdevhubusername (-v) must be a Dev Hub org. When creating sandboxes, the --targetusername (-u) must be a
|
|
144
133
|
production org with sandbox licenses. The —type (-t) is required if creating a sandbox.
|
|
145
134
|
|
|
146
135
|
EXAMPLES
|
|
147
136
|
$ sfdx force:org:create -f config/enterprise-scratch-def.json -a MyScratchOrg
|
|
137
|
+
|
|
148
138
|
$ sfdx force:org:create edition=Developer -a MyScratchOrg -s -v devHub
|
|
149
|
-
|
|
150
|
-
username=testuser1@mycompany.org
|
|
139
|
+
|
|
140
|
+
$ sfdx force:org:create -f config/enterprise-scratch-def.json -a ScratchOrgWithOverrides username=testuser1@mycompany.org
|
|
141
|
+
|
|
151
142
|
$ sfdx force:org:create -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg
|
|
152
143
|
```
|
|
153
144
|
|
|
154
|
-
_See code: [src/commands/force/org/beta/create.ts](https://github.com/salesforcecli/plugin-org/blob/
|
|
145
|
+
_See code: [src/commands/force/org/beta/create.ts](https://github.com/salesforcecli/plugin-org/blob/v2.0.0/src/commands/force/org/beta/create.ts)_
|
|
155
146
|
|
|
156
147
|
## `sfdx force:org:clone [name=value...] -t sandbox [-f <filepath>] [-s] [-a <string>] [-w <minutes>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
157
148
|
|
|
@@ -160,30 +151,27 @@ clone a sandbox org
|
|
|
160
151
|
```
|
|
161
152
|
USAGE
|
|
162
153
|
$ sfdx force:org:clone [name=value...] -t sandbox [-f <filepath>] [-s] [-a <string>] [-w <minutes>] [-u <string>]
|
|
163
|
-
|
|
154
|
+
[--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
164
155
|
|
|
165
|
-
|
|
166
|
-
-a, --setalias
|
|
167
|
-
-f, --definitionfile
|
|
156
|
+
FLAGS
|
|
157
|
+
-a, --setalias=<value> alias for the cloned org
|
|
158
|
+
-f, --definitionfile=<value> path to the sandbox definition file
|
|
168
159
|
-s, --setdefaultusername set the cloned org as your default
|
|
169
160
|
-t, --type=(sandbox) (required) type of org to create
|
|
170
|
-
|
|
171
|
-
-u, --targetusername=targetusername username or alias for the target
|
|
161
|
+
-u, --targetusername=<value> username or alias for the target
|
|
172
162
|
org; overrides default target org
|
|
173
|
-
|
|
174
|
-
-w, --wait=wait [default: 6 minutes] number of
|
|
163
|
+
-w, --wait=<value> [default: 6 minutes] number of
|
|
175
164
|
minutes to wait while polling for
|
|
176
165
|
status
|
|
177
|
-
|
|
178
|
-
--apiversion=apiversion override the api version used for
|
|
166
|
+
--apiversion=<value> override the api version used for
|
|
179
167
|
api requests made by this command
|
|
180
|
-
|
|
181
168
|
--json format output as json
|
|
182
|
-
|
|
183
169
|
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
184
170
|
this command invocation
|
|
185
171
|
|
|
186
172
|
DESCRIPTION
|
|
173
|
+
clone a sandbox org
|
|
174
|
+
|
|
187
175
|
There are two ways to clone a sandbox: either specify a sandbox definition file or provide key=value pairs at the
|
|
188
176
|
command line. Key-value pairs at the command-line override their equivalent sandbox definition file values. In either
|
|
189
177
|
case, you must specify both the "SandboxName" and "SourceSandboxName" options.
|
|
@@ -193,10 +181,11 @@ DESCRIPTION
|
|
|
193
181
|
|
|
194
182
|
EXAMPLES
|
|
195
183
|
$ sfdx force:org:clone -t sandbox -f config/dev-sandbox-def.json -u prodOrg -a MyDevSandbox
|
|
184
|
+
|
|
196
185
|
$ sfdx force:org:clone -t sandbox SandboxName=DevSbx1 SourceSandboxName=Sbx2Clone -u prodOrg -a MyDevSandbox
|
|
197
186
|
```
|
|
198
187
|
|
|
199
|
-
_See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/
|
|
188
|
+
_See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/v2.0.0/src/commands/force/org/clone.ts)_
|
|
200
189
|
|
|
201
190
|
## `sfdx force:org:delete [-p] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
202
191
|
|
|
@@ -205,34 +194,32 @@ mark a scratch or sandbox org for deletion
|
|
|
205
194
|
```
|
|
206
195
|
USAGE
|
|
207
196
|
$ sfdx force:org:delete [-p] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
208
|
-
|
|
197
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
209
198
|
|
|
210
|
-
|
|
199
|
+
FLAGS
|
|
211
200
|
-p, --noprompt no prompt to confirm deletion
|
|
212
|
-
|
|
213
|
-
-u, --targetusername=targetusername username or alias for the target
|
|
201
|
+
-u, --targetusername=<value> username or alias for the target
|
|
214
202
|
org; overrides default target org
|
|
215
|
-
|
|
216
|
-
-v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
|
|
203
|
+
-v, --targetdevhubusername=<value> username or alias for the dev hub
|
|
217
204
|
org; overrides default dev hub org
|
|
218
|
-
|
|
219
|
-
--apiversion=apiversion override the api version used for
|
|
205
|
+
--apiversion=<value> override the api version used for
|
|
220
206
|
api requests made by this command
|
|
221
|
-
|
|
222
207
|
--json format output as json
|
|
223
|
-
|
|
224
208
|
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
225
209
|
this command invocation
|
|
226
210
|
|
|
227
211
|
DESCRIPTION
|
|
212
|
+
mark a scratch or sandbox org for deletion
|
|
213
|
+
|
|
228
214
|
To mark the org for deletion without being prompted to confirm, specify --noprompt.
|
|
229
215
|
|
|
230
216
|
EXAMPLES
|
|
231
217
|
$ sfdx force:org:delete -u me@my.org
|
|
218
|
+
|
|
232
219
|
$ sfdx force:org:delete -u MyOrgAlias -p
|
|
233
220
|
```
|
|
234
221
|
|
|
235
|
-
_See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/
|
|
222
|
+
_See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/v2.0.0/src/commands/force/org/delete.ts)_
|
|
236
223
|
|
|
237
224
|
## `sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
238
225
|
|
|
@@ -241,39 +228,42 @@ get the description for the current or target org
|
|
|
241
228
|
```
|
|
242
229
|
USAGE
|
|
243
230
|
$ sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel
|
|
244
|
-
|
|
231
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
245
232
|
|
|
246
|
-
|
|
247
|
-
-u, --targetusername
|
|
233
|
+
FLAGS
|
|
234
|
+
-u, --targetusername=<value> username or alias for the target
|
|
248
235
|
org; overrides default target org
|
|
249
|
-
|
|
250
|
-
--apiversion=apiversion override the api version used for
|
|
236
|
+
--apiversion=<value> override the api version used for
|
|
251
237
|
api requests made by this command
|
|
252
|
-
|
|
253
238
|
--json format output as json
|
|
254
|
-
|
|
255
239
|
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
256
240
|
this command invocation
|
|
257
|
-
|
|
258
241
|
--verbose emit additional command output to
|
|
259
242
|
stdout
|
|
260
243
|
|
|
261
244
|
DESCRIPTION
|
|
245
|
+
get the description for the current or target org
|
|
246
|
+
|
|
262
247
|
Output includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if
|
|
263
248
|
applicable.
|
|
249
|
+
|
|
264
250
|
Use --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a
|
|
265
251
|
refresh token that can be used to access an org. Don't share or distribute this URL or token.
|
|
252
|
+
|
|
266
253
|
Including --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not
|
|
267
254
|
auth:jwt:grant)
|
|
268
255
|
|
|
269
256
|
EXAMPLES
|
|
270
257
|
$ sfdx force:org:display
|
|
258
|
+
|
|
271
259
|
$ sfdx force:org:display -u me@my.org
|
|
260
|
+
|
|
272
261
|
$ sfdx force:org:display -u TestOrg1 --json
|
|
262
|
+
|
|
273
263
|
$ sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json
|
|
274
264
|
```
|
|
275
265
|
|
|
276
|
-
_See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/
|
|
266
|
+
_See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v2.0.0/src/commands/force/org/display.ts)_
|
|
277
267
|
|
|
278
268
|
## `sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
279
269
|
|
|
@@ -282,36 +272,35 @@ list all orgs you’ve created or authenticated to
|
|
|
282
272
|
```
|
|
283
273
|
USAGE
|
|
284
274
|
$ sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel
|
|
285
|
-
|
|
275
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
286
276
|
|
|
287
|
-
|
|
277
|
+
FLAGS
|
|
288
278
|
-p, --noprompt do not prompt for confirmation
|
|
289
|
-
|
|
290
279
|
--all include expired, deleted, and
|
|
291
280
|
unknown-status scratch orgs
|
|
292
|
-
|
|
293
281
|
--clean remove all local org authorizations
|
|
294
282
|
for non-active scratch orgs. Use
|
|
295
283
|
auth:logout to remove non-scratch
|
|
296
284
|
orgs
|
|
297
|
-
|
|
298
285
|
--json format output as json
|
|
299
|
-
|
|
300
286
|
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
301
287
|
this command invocation
|
|
302
|
-
|
|
303
288
|
--skipconnectionstatus skip retrieving the connection
|
|
304
289
|
status of non-scratch orgs
|
|
305
|
-
|
|
306
290
|
--verbose list more information about each org
|
|
307
291
|
|
|
292
|
+
DESCRIPTION
|
|
293
|
+
list all orgs you’ve created or authenticated to
|
|
294
|
+
|
|
308
295
|
EXAMPLES
|
|
309
296
|
$ sfdx force:org:list
|
|
297
|
+
|
|
310
298
|
$ sfdx force:org:list --verbose --json
|
|
299
|
+
|
|
311
300
|
$ sfdx force:org:list --verbose --json > tmp/MyOrgList.json
|
|
312
301
|
```
|
|
313
302
|
|
|
314
|
-
_See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/
|
|
303
|
+
_See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v2.0.0/src/commands/force/org/list.ts)_
|
|
315
304
|
|
|
316
305
|
## `sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
317
306
|
|
|
@@ -320,43 +309,48 @@ open your default scratch org, or another specified org
|
|
|
320
309
|
```
|
|
321
310
|
USAGE
|
|
322
311
|
$ sfdx force:org:open [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
OPTIONS
|
|
326
|
-
-b, --browser=chrome|edge|firefox browser where the org opens
|
|
327
|
-
-p, --path=path navigation URL path
|
|
312
|
+
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
328
313
|
|
|
314
|
+
FLAGS
|
|
315
|
+
-b, --browser=<option> browser where the org opens
|
|
316
|
+
<options: chrome|edge|firefox>
|
|
317
|
+
-p, --path=<value> navigation URL path
|
|
329
318
|
-r, --urlonly display navigation URL, but don’t
|
|
330
319
|
launch browser
|
|
331
|
-
|
|
332
|
-
-u, --targetusername=targetusername username or alias for the target
|
|
320
|
+
-u, --targetusername=<value> username or alias for the target
|
|
333
321
|
org; overrides default target org
|
|
334
|
-
|
|
335
|
-
--apiversion=apiversion override the api version used for
|
|
322
|
+
--apiversion=<value> override the api version used for
|
|
336
323
|
api requests made by this command
|
|
337
|
-
|
|
338
324
|
--json format output as json
|
|
339
|
-
|
|
340
325
|
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
341
326
|
this command invocation
|
|
342
327
|
|
|
343
328
|
DESCRIPTION
|
|
329
|
+
open your default scratch org, or another specified org
|
|
330
|
+
|
|
344
331
|
To open a specific page, specify the portion of the URL after "https://MyDomainName.my.salesforce.com/" as --path.
|
|
332
|
+
|
|
345
333
|
For example, specify "--path lightning" to open Lightning Experience, or specify "--path /apex/YourPage" to open a
|
|
346
334
|
Visualforce page.
|
|
335
|
+
|
|
347
336
|
To generate a URL but not launch it in your browser, specify --urlonly.
|
|
337
|
+
|
|
348
338
|
To open in a specific browser, use the --browser parameter. Supported browsers are "chrome", "edge", and "firefox". If
|
|
349
|
-
|
|
339
|
+
you don't specify --browser, the org opens in your default browser.
|
|
350
340
|
|
|
351
341
|
EXAMPLES
|
|
352
342
|
$ sfdx force:org:open
|
|
343
|
+
|
|
353
344
|
$ sfdx force:org:open -u me@my.org
|
|
345
|
+
|
|
354
346
|
$ sfdx force:org:open -u MyTestOrg1
|
|
347
|
+
|
|
355
348
|
$ sfdx force:org:open -r -p lightning
|
|
349
|
+
|
|
356
350
|
$ sfdx force:org:open -u me@my.org -b firefox
|
|
357
351
|
```
|
|
358
352
|
|
|
359
|
-
_See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/
|
|
353
|
+
_See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v2.0.0/src/commands/force/org/open.ts)_
|
|
360
354
|
|
|
361
355
|
## `sfdx force:org:status -n <string> [-s] [-a <string>] [-w <minutes>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
|
|
362
356
|
|
|
@@ -365,45 +359,43 @@ report status of sandbox creation or clone and authenticate to it
|
|
|
365
359
|
```
|
|
366
360
|
USAGE
|
|
367
361
|
$ sfdx force:org:status -n <string> [-s] [-a <string>] [-w <minutes>] [-u <string>] [--apiversion <string>] [--json]
|
|
368
|
-
|
|
362
|
+
[--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
|
|
369
363
|
|
|
370
|
-
|
|
371
|
-
-a, --setalias
|
|
372
|
-
|
|
373
|
-
-n, --sandboxname=sandboxname (required) name of the sandbox org
|
|
364
|
+
FLAGS
|
|
365
|
+
-a, --setalias=<value> alias for the created or cloned org
|
|
366
|
+
-n, --sandboxname=<value> (required) name of the sandbox org
|
|
374
367
|
to check status for
|
|
375
|
-
|
|
376
368
|
-s, --setdefaultusername set the created or cloned org as
|
|
377
369
|
your default
|
|
378
|
-
|
|
379
|
-
-u, --targetusername=targetusername username or alias for the target
|
|
370
|
+
-u, --targetusername=<value> username or alias for the target
|
|
380
371
|
org; overrides default target org
|
|
381
|
-
|
|
382
|
-
-w, --wait=wait [default: 6 minutes] number of
|
|
372
|
+
-w, --wait=<value> [default: 6 minutes] number of
|
|
383
373
|
minutes to wait while polling for
|
|
384
374
|
status
|
|
385
|
-
|
|
386
|
-
--apiversion=apiversion override the api version used for
|
|
375
|
+
--apiversion=<value> override the api version used for
|
|
387
376
|
api requests made by this command
|
|
388
|
-
|
|
389
377
|
--json format output as json
|
|
390
|
-
|
|
391
378
|
--loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
|
|
392
379
|
this command invocation
|
|
393
380
|
|
|
394
381
|
DESCRIPTION
|
|
382
|
+
report status of sandbox creation or clone and authenticate to it
|
|
383
|
+
|
|
395
384
|
Use this command to check the status of your sandbox creation or clone and, if the sandbox is ready, authenticate to
|
|
396
385
|
it.
|
|
386
|
+
|
|
397
387
|
Use the --wait (-w) parameter to specify the number of minutes that the command waits for the sandbox creation or
|
|
398
388
|
clone to complete before returning control of the terminal to you.
|
|
389
|
+
|
|
399
390
|
Set the --targetusername (-u) parameter to the username or alias of the production org that contains the sandbox
|
|
400
391
|
license.
|
|
401
392
|
|
|
402
393
|
EXAMPLES
|
|
403
394
|
$ sfdx force:org:status --sandboxname DevSbx1 --setalias MySandbox -u prodOrg
|
|
395
|
+
|
|
404
396
|
$ sfdx force:org:status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg
|
|
405
397
|
```
|
|
406
398
|
|
|
407
|
-
_See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/
|
|
399
|
+
_See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/v2.0.0/src/commands/force/org/status.ts)_
|
|
408
400
|
|
|
409
401
|
<!-- commandsstop -->
|
|
@@ -33,10 +33,10 @@ class Create extends command_1.SfdxCommand {
|
|
|
33
33
|
}
|
|
34
34
|
validateSandboxFlags() {
|
|
35
35
|
if (!this.flags.targetusername) {
|
|
36
|
-
throw core_1.
|
|
36
|
+
throw new core_1.SfError(messages.getMessage('requiresUsername'));
|
|
37
37
|
}
|
|
38
38
|
if (this.flags.retry !== 0) {
|
|
39
|
-
throw core_1.
|
|
39
|
+
throw new core_1.SfError(messages.getMessage('retryIsNotValidForSandboxes'), 'retryIsNotValidForSandboxes');
|
|
40
40
|
}
|
|
41
41
|
if (this.flags.clientid) {
|
|
42
42
|
this.ux.warn(messages.getMessage('clientIdNotSupported', [this.flags.clientid]));
|
|
@@ -83,7 +83,7 @@ class Create extends command_1.SfdxCommand {
|
|
|
83
83
|
this.ux.warn(`No SandboxName defined, generating new SandboxName: ${sandboxReq.SandboxName}`);
|
|
84
84
|
}
|
|
85
85
|
if (!sandboxReq.LicenseType) {
|
|
86
|
-
throw core_1.
|
|
86
|
+
throw new core_1.SfError(messages.getMessage('missingLicenseType'));
|
|
87
87
|
}
|
|
88
88
|
return sandboxReq;
|
|
89
89
|
}
|
|
@@ -110,21 +110,19 @@ class Create extends command_1.SfdxCommand {
|
|
|
110
110
|
this.ux.log(sandboxReadyForUse);
|
|
111
111
|
this.ux.styledHeader('Sandbox Org Creation Status');
|
|
112
112
|
this.ux.table(data, {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
{ key: 'value', label: 'Value' },
|
|
116
|
-
],
|
|
113
|
+
key: { header: 'Name' },
|
|
114
|
+
value: { header: 'Value' },
|
|
117
115
|
});
|
|
118
116
|
if ((_a = results.sandboxRes) === null || _a === void 0 ? void 0 : _a.authUserName) {
|
|
119
117
|
if (this.flags.setalias) {
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
const result = await
|
|
118
|
+
const stateAggregator = await core_1.StateAggregator.getInstance();
|
|
119
|
+
stateAggregator.aliases.set(this.flags.setalias, results.sandboxRes.authUserName);
|
|
120
|
+
const result = await stateAggregator.aliases.write();
|
|
123
121
|
this.logger.debug('Set Alias: %s result: %s', this.flags.setalias, result);
|
|
124
122
|
}
|
|
125
123
|
if (this.flags.setdefaultusername) {
|
|
126
124
|
const globalConfig = this.configAggregator.getGlobalConfig();
|
|
127
|
-
globalConfig.set(core_1.
|
|
125
|
+
globalConfig.set(core_1.OrgConfigProperties.TARGET_ORG, results.sandboxRes.authUserName);
|
|
128
126
|
const result = await globalConfig.write();
|
|
129
127
|
this.logger.debug('Set defaultUsername: %s result: %s', this.flags.setdefaultusername, result);
|
|
130
128
|
}
|
|
@@ -142,14 +140,14 @@ class Create extends command_1.SfdxCommand {
|
|
|
142
140
|
if (err === null || err === void 0 ? void 0 : err.message.includes('The org cannot be found')) {
|
|
143
141
|
// there was most likely an issue with DNS when auth'ing to the new sandbox, but it was created.
|
|
144
142
|
if (this.flags.setalias && this.sandboxAuth) {
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
const result = await
|
|
143
|
+
const stateAggregator = await core_1.StateAggregator.getInstance();
|
|
144
|
+
stateAggregator.aliases.set(this.flags.setalias, this.sandboxAuth.authUserName);
|
|
145
|
+
const result = await stateAggregator.aliases.write();
|
|
148
146
|
this.logger.debug('Set Alias: %s result: %s', this.flags.setalias, result);
|
|
149
147
|
}
|
|
150
148
|
if (this.flags.setdefaultusername && this.sandboxAuth) {
|
|
151
149
|
const globalConfig = this.configAggregator.getGlobalConfig();
|
|
152
|
-
globalConfig.set(core_1.
|
|
150
|
+
globalConfig.set(core_1.OrgConfigProperties.TARGET_ORG, this.sandboxAuth.authUserName);
|
|
153
151
|
const result = await globalConfig.write();
|
|
154
152
|
this.logger.debug('Set defaultUsername: %s result: %s', this.flags.setdefaultusername, result);
|
|
155
153
|
}
|
|
@@ -167,9 +165,9 @@ class Create extends command_1.SfdxCommand {
|
|
|
167
165
|
}
|
|
168
166
|
}
|
|
169
167
|
async setAliasAndDefaultUsername(username) {
|
|
170
|
-
const
|
|
168
|
+
const stateAggregator = await core_1.StateAggregator.getInstance();
|
|
171
169
|
if (this.flags.setalias) {
|
|
172
|
-
|
|
170
|
+
stateAggregator.aliases.set(this.flags.setalias, username);
|
|
173
171
|
this.logger.debug('Set Alias: %s result: %s', this.flags.setalias);
|
|
174
172
|
}
|
|
175
173
|
if (this.flags.setdefaultusername) {
|
|
@@ -180,8 +178,8 @@ class Create extends command_1.SfdxCommand {
|
|
|
180
178
|
catch {
|
|
181
179
|
config = await core_1.Config.create({ isGlobal: true });
|
|
182
180
|
}
|
|
183
|
-
const value = aliases.
|
|
184
|
-
const result = config.set(core_1.
|
|
181
|
+
const value = stateAggregator.aliases.get(username) || username;
|
|
182
|
+
const result = config.set(core_1.OrgConfigProperties.TARGET_ORG, value);
|
|
185
183
|
await config.write();
|
|
186
184
|
this.logger.debug('Set defaultUsername: %s result: %s', this.flags.setdefaultusername, result);
|
|
187
185
|
}
|
|
@@ -189,11 +187,11 @@ class Create extends command_1.SfdxCommand {
|
|
|
189
187
|
async createScratchOrg() {
|
|
190
188
|
this.logger.debug('OK, will do scratch org creation');
|
|
191
189
|
if (!this.hubOrg) {
|
|
192
|
-
throw core_1.
|
|
190
|
+
throw new core_1.SfError(messages.getMessage('RequiresDevhubUsernameError'));
|
|
193
191
|
}
|
|
194
192
|
// Ensure we have an org config input source.
|
|
195
193
|
if (!this.flags.definitionfile && Object.keys(this.varargs).length === 0) {
|
|
196
|
-
throw new core_1.
|
|
194
|
+
throw new core_1.SfError(messages.getMessage('noConfig'));
|
|
197
195
|
}
|
|
198
196
|
this.logger.debug('validation complete');
|
|
199
197
|
let secret;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../src/commands/force/org/beta/create.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,yBAAyB;AACzB,iDAAsE;AACtE,yCAA2C;AAC3C,2CAiB0B;AAE1B,wEAAqE;AAErE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;AAU3E,MAAa,MAAO,SAAQ,qBAAW;IAAvC;;QAwDqB,wBAAmB,GAAG,CAAC,eAAe,CAAC,CAAC;IAmQ7D,CAAC;IAhQQ,KAAK,CAAC,GAAG;QACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAE9D,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,eAAQ,CAAC,OAAO,EAAE;YACxC,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;SAC7B;aAAM;YACL,yBAAyB;YACzB,OAAO,IAAI,CAAC,gBAAgB,EAAE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,OAAO,CAAC,CAAC,CAAC;KAC7B,CAAC;IACF,YAAY,EAAE,eAAK,CAAC,OAAO,CAAC;QAC1B,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QACtD,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,EAAE;KACR,CAAC;IACF,KAAK,EAAE,eAAK,CAAC,MAAM,CAAC;QAClB,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,CAAC;QACV,GAAG,EAAE,EAAE;QACP,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;KAChD,CAAC;CACH,CAAC"}
|
|
@@ -34,20 +34,19 @@ class OrgCloneCommand extends command_1.SfdxCommand {
|
|
|
34
34
|
this.ux.log(sandboxReadyForUse);
|
|
35
35
|
this.ux.styledHeader('Sandbox Org Cloning Status');
|
|
36
36
|
this.ux.table(data, {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
{ key: 'value', label: 'Value' },
|
|
40
|
-
],
|
|
37
|
+
key: { header: 'Name' },
|
|
38
|
+
value: { header: 'Value' },
|
|
41
39
|
});
|
|
42
40
|
if ((_a = results === null || results === void 0 ? void 0 : results.sandboxRes) === null || _a === void 0 ? void 0 : _a.authUserName) {
|
|
43
41
|
if (this.flags.setalias) {
|
|
44
|
-
const
|
|
45
|
-
|
|
42
|
+
const stateAggregator = await core_1.StateAggregator.getInstance();
|
|
43
|
+
stateAggregator.aliases.set(this.flags.setalias, results.sandboxRes.authUserName);
|
|
44
|
+
const result = stateAggregator.aliases.getAll();
|
|
46
45
|
this.logger.debug('Set Alias: %s result: %s', this.flags.setalias, result);
|
|
47
46
|
}
|
|
48
47
|
if (this.flags.setdefaultusername) {
|
|
49
48
|
const globalConfig = this.configAggregator.getGlobalConfig();
|
|
50
|
-
globalConfig.set(core_1.
|
|
49
|
+
globalConfig.set(core_1.OrgConfigProperties.TARGET_ORG, results.sandboxRes.authUserName);
|
|
51
50
|
const result = await globalConfig.write();
|
|
52
51
|
this.logger.debug('Set defaultUsername: %s result: %s', this.flags.setdefaultusername, result);
|
|
53
52
|
}
|
|
@@ -59,9 +58,7 @@ class OrgCloneCommand extends command_1.SfdxCommand {
|
|
|
59
58
|
return this.org.cloneSandbox(sandboxReq, srcSandboxName, { wait });
|
|
60
59
|
}
|
|
61
60
|
else {
|
|
62
|
-
throw
|
|
63
|
-
core_1.OrgTypes.Sandbox,
|
|
64
|
-
]).addAction('commandOrganizationTypeNotSupportAction', [core_1.OrgTypes.Sandbox]));
|
|
61
|
+
throw new core_1.SfError(messages.getMessage('commandOrganizationTypeNotSupport', [core_1.OrgTypes.Sandbox]), messages.getMessage('commandOrganizationTypeNotSupportAction', [core_1.OrgTypes.Sandbox]));
|
|
65
62
|
}
|
|
66
63
|
}
|
|
67
64
|
createSandboxRequest() {
|
|
@@ -89,9 +86,7 @@ class OrgCloneCommand extends command_1.SfdxCommand {
|
|
|
89
86
|
}
|
|
90
87
|
else {
|
|
91
88
|
// error - we need SourceSandboxName to know which sandbox to clone from
|
|
92
|
-
throw
|
|
93
|
-
OrgCloneCommand.SANDBOXDEF_SRC_SANDBOXNAME,
|
|
94
|
-
]).addAction('missingSourceSandboxNameAction', [OrgCloneCommand.SANDBOXDEF_SRC_SANDBOXNAME]));
|
|
89
|
+
throw new core_1.SfError(messages.getMessage('missingSourceSandboxName', [OrgCloneCommand.SANDBOXDEF_SRC_SANDBOXNAME]), messages.getMessage('missingSourceSandboxNameAction', [OrgCloneCommand.SANDBOXDEF_SRC_SANDBOXNAME]));
|
|
95
90
|
}
|
|
96
91
|
return { sandboxReq, srcSandboxName };
|
|
97
92
|
}
|