@salesforce/plugin-org 1.11.2 → 1.13.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 CHANGED
@@ -2,6 +2,34 @@
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
+ ## [1.13.0](https://github.com/salesforcecli/plugin-org/compare/v1.12.1...v1.13.0) (2022-05-10)
6
+
7
+ ### Features
8
+
9
+ - clone command ([481b19d](https://github.com/salesforcecli/plugin-org/commit/481b19d3869ed426bc483a256f486bb0823225ac))
10
+ - clone command ([48b2b85](https://github.com/salesforcecli/plugin-org/commit/48b2b85b9bc21856fe35d81b5b2bc595744aa63c))
11
+
12
+ ### Bug Fixes
13
+
14
+ - bump core ([78186ed](https://github.com/salesforcecli/plugin-org/commit/78186ed0e2f525aab5fa3d741ad67d4e5c4f7f8c))
15
+ - test and snapshot updates ([6b469ea](https://github.com/salesforcecli/plugin-org/commit/6b469ea8301377ec4acad8fcbc98e9a6bb4ba5e0))
16
+
17
+ ### [1.12.1](https://github.com/salesforcecli/plugin-org/compare/v1.12.0...v1.12.1) (2022-04-29)
18
+
19
+ ### Bug Fixes
20
+
21
+ - docs for clean flag ([be868ab](https://github.com/salesforcecli/plugin-org/commit/be868ab5ea13099ba2b3f6a90581609eb0c55164))
22
+
23
+ ## [1.12.0](https://github.com/salesforcecli/plugin-org/compare/v1.11.2...v1.12.0) (2022-04-22)
24
+
25
+ ### Features
26
+
27
+ - new command org:status ([9524fb6](https://github.com/salesforcecli/plugin-org/commit/9524fb67285cf608d4f7a4dd9c11b2475f643866))
28
+
29
+ ### Bug Fixes
30
+
31
+ - for set alias ([99c77f0](https://github.com/salesforcecli/plugin-org/commit/99c77f0be12df5c03ee8b1f11e7c9425910ec1b1))
32
+
5
33
  ### [1.11.2](https://github.com/salesforcecli/plugin-org/compare/v1.11.1...v1.11.2) (2022-02-21)
6
34
 
7
35
  ### Bug Fixes
package/README.md CHANGED
@@ -79,10 +79,12 @@ sfdx plugins
79
79
  <!-- commands -->
80
80
 
81
81
  - [`sfdx force:org:beta:create [name=value...] [-t scratch|sandbox] [-f <filepath>] [-n] [-c] [-i <string>] [-s] [-a <string>] [-w <minutes>] [-d <integer>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorgbetacreate-namevalue--t-scratchsandbox--f-filepath--n--c--i-string--s--a-string--w-minutes--d-integer--v-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
82
+ - [`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]`](#sfdx-forceorgclone-namevalue--t-sandbox--f-filepath--s--a-string--w-minutes--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
82
83
  - [`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]`](#sfdx-forceorgdelete--p--v-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
83
84
  - [`sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorgdisplay--u-string---apiversion-string---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
84
85
  - [`sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-forceorglist---all--p---clean---skipconnectionstatus---verbose---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
85
86
  - [`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]`](#sfdx-forceorgopen--b-string---r--p-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
87
+ - [`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]`](#sfdx-forceorgstatus--n-string--s--a-string--w-minutes--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
86
88
 
87
89
  ## `sfdx force:org:beta:create [name=value...] [-t scratch|sandbox] [-f <filepath>] [-n] [-c] [-i <string>] [-s] [-a <string>] [-w <minutes>] [-d <integer>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
88
90
 
@@ -149,7 +151,52 @@ EXAMPLES
149
151
  $ sfdx force:org:create -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg
150
152
  ```
151
153
 
152
- _See code: [src/commands/force/org/beta/create.ts](https://github.com/salesforcecli/plugin-org/blob/v1.11.1/src/commands/force/org/beta/create.ts)_
154
+ _See code: [src/commands/force/org/beta/create.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/beta/create.ts)_
155
+
156
+ ## `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
+
158
+ clone a sandbox org
159
+
160
+ ```
161
+ USAGE
162
+ $ sfdx force:org:clone [name=value...] -t sandbox [-f <filepath>] [-s] [-a <string>] [-w <minutes>] [-u <string>]
163
+ [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
164
+
165
+ OPTIONS
166
+ -a, --setalias=setalias alias for the cloned org
167
+ -f, --definitionfile=definitionfile path to the sandbox definition file
168
+ -s, --setdefaultusername set the cloned org as your default
169
+ -t, --type=(sandbox) (required) type of org to create
170
+
171
+ -u, --targetusername=targetusername username or alias for the target
172
+ org; overrides default target org
173
+
174
+ -w, --wait=wait [default: 6 minutes] number of
175
+ minutes to wait while polling for
176
+ status
177
+
178
+ --apiversion=apiversion override the api version used for
179
+ api requests made by this command
180
+
181
+ --json format output as json
182
+
183
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
184
+ this command invocation
185
+
186
+ DESCRIPTION
187
+ There are two ways to clone a sandbox: either specify a sandbox definition file or provide key=value pairs at the
188
+ command line. Key-value pairs at the command-line override their equivalent sandbox definition file values. In either
189
+ case, you must specify both the "SandboxName" and "SourceSandboxName" options.
190
+
191
+ Set the --targetusername (-u) parameter to a production org with sandbox licenses. The --type (-t) parameter is
192
+ required and must be set to "sandbox".
193
+
194
+ EXAMPLES
195
+ $ sfdx force:org:clone -t sandbox -f config/dev-sandbox-def.json -u prodOrg -a MyDevSandbox
196
+ $ sfdx force:org:clone -t sandbox SandboxName=DevSbx1 SourceSandboxName=Sbx2Clone -u prodOrg -a MyDevSandbox
197
+ ```
198
+
199
+ _See code: [src/commands/force/org/clone.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/clone.ts)_
153
200
 
154
201
  ## `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]`
155
202
 
@@ -185,7 +232,7 @@ EXAMPLES
185
232
  $ sfdx force:org:delete -u MyOrgAlias -p
186
233
  ```
187
234
 
188
- _See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/v1.11.1/src/commands/force/org/delete.ts)_
235
+ _See code: [src/commands/force/org/delete.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/delete.ts)_
189
236
 
190
237
  ## `sfdx force:org:display [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
191
238
 
@@ -226,7 +273,7 @@ EXAMPLES
226
273
  sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json
227
274
  ```
228
275
 
229
- _See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.11.1/src/commands/force/org/display.ts)_
276
+ _See code: [src/commands/force/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/display.ts)_
230
277
 
231
278
  ## `sfdx force:org:list [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
232
279
 
@@ -244,7 +291,9 @@ OPTIONS
244
291
  unknown-status scratch orgs
245
292
 
246
293
  --clean remove all local org authorizations
247
- for non-active orgs
294
+ for non-active scratch orgs. Use
295
+ auth:logout to remove non-scratch
296
+ orgs
248
297
 
249
298
  --json format output as json
250
299
 
@@ -262,7 +311,7 @@ EXAMPLES
262
311
  sfdx force:org:list --verbose --json > tmp/MyOrgList.json
263
312
  ```
264
313
 
265
- _See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.11.1/src/commands/force/org/list.ts)_
314
+ _See code: [src/commands/force/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/list.ts)_
266
315
 
267
316
  ## `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]`
268
317
 
@@ -307,6 +356,54 @@ EXAMPLES
307
356
  sfdx force:org:open -u me@my.org -b firefox
308
357
  ```
309
358
 
310
- _See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.11.1/src/commands/force/org/open.ts)_
359
+ _See code: [src/commands/force/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/open.ts)_
360
+
361
+ ## `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
+
363
+ report status of sandbox creation or clone and authenticate to it
364
+
365
+ ```
366
+ USAGE
367
+ $ sfdx force:org:status -n <string> [-s] [-a <string>] [-w <minutes>] [-u <string>] [--apiversion <string>] [--json]
368
+ [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
369
+
370
+ OPTIONS
371
+ -a, --setalias=setalias alias for the created or cloned org
372
+
373
+ -n, --sandboxname=sandboxname (required) name of the sandbox org
374
+ to check status for
375
+
376
+ -s, --setdefaultusername set the created or cloned org as
377
+ your default
378
+
379
+ -u, --targetusername=targetusername username or alias for the target
380
+ org; overrides default target org
381
+
382
+ -w, --wait=wait [default: 6 minutes] number of
383
+ minutes to wait while polling for
384
+ status
385
+
386
+ --apiversion=apiversion override the api version used for
387
+ api requests made by this command
388
+
389
+ --json format output as json
390
+
391
+ --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
392
+ this command invocation
393
+
394
+ DESCRIPTION
395
+ Use this command to check the status of your sandbox creation or clone and, if the sandbox is ready, authenticate to
396
+ it.
397
+ Use the --wait (-w) parameter to specify the number of minutes that the command waits for the sandbox creation or
398
+ clone to complete before returning control of the terminal to you.
399
+ Set the --targetusername (-u) parameter to the username or alias of the production org that contains the sandbox
400
+ license.
401
+
402
+ EXAMPLES
403
+ sfdx force:org:status --sandboxname DevSbx1 --setalias MySandbox -u prodOrg
404
+ sfdx force:org:status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg
405
+ ```
406
+
407
+ _See code: [src/commands/force/org/status.ts](https://github.com/salesforcecli/plugin-org/blob/v1.12.1/src/commands/force/org/status.ts)_
311
408
 
312
409
  <!-- commandsstop -->
@@ -0,0 +1,14 @@
1
+ import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
+ export declare class OrgCloneCommand extends SfdxCommand {
3
+ static readonly examples: string[];
4
+ static readonly description: string;
5
+ static readonly requiresProject = false;
6
+ static readonly requiresUsername = true;
7
+ static readonly varargs = true;
8
+ static readonly SANDBOXDEF_SRC_SANDBOXNAME = "SourceSandboxName";
9
+ static readonly flagsConfig: FlagsConfig;
10
+ run(): Promise<unknown>;
11
+ private createSandboxRequest;
12
+ private lowerToUpper;
13
+ private readJsonDefFile;
14
+ }
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2021, salesforce.com, inc.
4
+ * All rights reserved.
5
+ * Licensed under the BSD 3-Clause license.
6
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.OrgCloneCommand = void 0;
10
+ const os_1 = require("os");
11
+ const fs = require("fs");
12
+ const command_1 = require("@salesforce/command");
13
+ const core_1 = require("@salesforce/core");
14
+ const kit_1 = require("@salesforce/kit");
15
+ const sandboxReporter_1 = require("../../../shared/sandboxReporter");
16
+ core_1.Messages.importMessagesDirectory(__dirname);
17
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'clone');
18
+ class OrgCloneCommand extends command_1.SfdxCommand {
19
+ async run() {
20
+ const lifecycle = core_1.Lifecycle.getInstance();
21
+ if (this.flags.type === core_1.OrgTypes.Sandbox) {
22
+ // eslint-disable-next-line @typescript-eslint/require-await
23
+ lifecycle.on(core_1.SandboxEvents.EVENT_ASYNC_RESULT, async (results) => {
24
+ // Keep all console output in the command
25
+ this.ux.log(messages.getMessage('commandSuccess', [results.Id, results.SandboxName]));
26
+ });
27
+ // eslint-disable-next-line @typescript-eslint/require-await
28
+ lifecycle.on(core_1.SandboxEvents.EVENT_STATUS, async (results) => {
29
+ this.ux.log(sandboxReporter_1.SandboxReporter.sandboxProgress(results));
30
+ });
31
+ lifecycle.on(core_1.SandboxEvents.EVENT_RESULT, async (results) => {
32
+ var _a;
33
+ const { sandboxReadyForUse, data } = sandboxReporter_1.SandboxReporter.logSandboxProcessResult(results);
34
+ this.ux.log(sandboxReadyForUse);
35
+ this.ux.styledHeader('Sandbox Org Cloning Status');
36
+ this.ux.table(data, {
37
+ columns: [
38
+ { key: 'key', label: 'Name' },
39
+ { key: 'value', label: 'Value' },
40
+ ],
41
+ });
42
+ if ((_a = results === null || results === void 0 ? void 0 : results.sandboxRes) === null || _a === void 0 ? void 0 : _a.authUserName) {
43
+ if (this.flags.setalias) {
44
+ const alias = await core_1.Aliases.create({});
45
+ const result = alias.set(this.flags.setalias, results.sandboxRes.authUserName);
46
+ this.logger.debug('Set Alias: %s result: %s', this.flags.setalias, result);
47
+ }
48
+ if (this.flags.setdefaultusername) {
49
+ const globalConfig = this.configAggregator.getGlobalConfig();
50
+ globalConfig.set(core_1.Config.DEFAULT_USERNAME, results.sandboxRes.authUserName);
51
+ const result = await globalConfig.write();
52
+ this.logger.debug('Set defaultUsername: %s result: %s', this.flags.setdefaultusername, result);
53
+ }
54
+ }
55
+ });
56
+ const { sandboxReq, srcSandboxName } = this.createSandboxRequest();
57
+ this.logger.debug('Calling clone with SandboxRequest: %s and SandboxName: %s ', sandboxReq, srcSandboxName);
58
+ const wait = this.flags.wait;
59
+ return this.org.cloneSandbox(sandboxReq, srcSandboxName, { wait });
60
+ }
61
+ else {
62
+ throw core_1.SfdxError.create(new core_1.SfdxErrorConfig('@salesforce/plugin-org', 'clone', 'commandOrganizationTypeNotSupport', [
63
+ core_1.OrgTypes.Sandbox,
64
+ ]).addAction('commandOrganizationTypeNotSupportAction', [core_1.OrgTypes.Sandbox]));
65
+ }
66
+ }
67
+ createSandboxRequest() {
68
+ this.logger.debug('Clone started with args %s ', this.flags);
69
+ this.logger.debug('Clone Varargs: %s ', this.varargs);
70
+ let sandboxDefFileContents = this.readJsonDefFile();
71
+ let capitalizedVarArgs = {};
72
+ if (sandboxDefFileContents) {
73
+ sandboxDefFileContents = this.lowerToUpper(sandboxDefFileContents);
74
+ }
75
+ if (this.varargs) {
76
+ capitalizedVarArgs = this.lowerToUpper(this.varargs);
77
+ }
78
+ // varargs override file input
79
+ const sandboxReq = { SandboxName: undefined, ...sandboxDefFileContents, ...capitalizedVarArgs };
80
+ this.logger.debug('SandboxRequest after merging DefFile and Varargs: %s ', sandboxReq);
81
+ // try to find the source sandbox name either from the definition file or the commandline arg
82
+ // NOTE the name and the case "SourceSandboxName" must match exactly
83
+ const srcSandboxName = sandboxReq[OrgCloneCommand.SANDBOXDEF_SRC_SANDBOXNAME];
84
+ if (srcSandboxName) {
85
+ // we have to delete this property from the sandboxRequest object,
86
+ // because sandboxRequest object represent the POST request to create SandboxInfo bpo,
87
+ // sandboxInfo does not have a column named SourceSandboxName, this field will be converted to sourceId in the clone call below
88
+ delete sandboxReq[OrgCloneCommand.SANDBOXDEF_SRC_SANDBOXNAME];
89
+ }
90
+ else {
91
+ // error - we need SourceSandboxName to know which sandbox to clone from
92
+ throw core_1.SfdxError.create(new core_1.SfdxErrorConfig('@salesforce/plugin-org', 'clone', 'missingSourceSandboxName', [
93
+ OrgCloneCommand.SANDBOXDEF_SRC_SANDBOXNAME,
94
+ ]).addAction('missingSourceSandboxNameAction', [OrgCloneCommand.SANDBOXDEF_SRC_SANDBOXNAME]));
95
+ }
96
+ return { sandboxReq, srcSandboxName };
97
+ }
98
+ lowerToUpper(object) {
99
+ // the API has keys defined in capital camel case, while the definition schema has them as lower camel case
100
+ // we need to convert lower camel case to upper before merging options so they will override properly
101
+ return Object.fromEntries(Object.entries(object).map(([key, value]) => [(0, kit_1.upperFirst)(key), value]));
102
+ }
103
+ readJsonDefFile() {
104
+ // the -f option
105
+ if (this.flags.definitionfile) {
106
+ this.logger.debug('Reading JSON DefFile %s ', this.flags.definitionfile);
107
+ return JSON.parse(fs.readFileSync(this.flags.definitionfile, 'utf-8'));
108
+ }
109
+ }
110
+ }
111
+ exports.OrgCloneCommand = OrgCloneCommand;
112
+ OrgCloneCommand.examples = messages.getMessage('examples').split(os_1.EOL);
113
+ OrgCloneCommand.description = messages.getMessage('description');
114
+ OrgCloneCommand.requiresProject = false;
115
+ OrgCloneCommand.requiresUsername = true;
116
+ OrgCloneCommand.varargs = true;
117
+ OrgCloneCommand.SANDBOXDEF_SRC_SANDBOXNAME = 'SourceSandboxName';
118
+ OrgCloneCommand.flagsConfig = {
119
+ type: command_1.flags.enum({
120
+ char: 't',
121
+ description: messages.getMessage('flags.type'),
122
+ required: true,
123
+ options: ['sandbox'],
124
+ }),
125
+ definitionfile: command_1.flags.filepath({
126
+ char: 'f',
127
+ description: messages.getMessage('flags.definitionfile'),
128
+ }),
129
+ setdefaultusername: command_1.flags.boolean({
130
+ char: 's',
131
+ description: messages.getMessage('flags.setdefaultusername'),
132
+ }),
133
+ setalias: command_1.flags.string({
134
+ char: 'a',
135
+ description: messages.getMessage('flags.setalias'),
136
+ }),
137
+ wait: command_1.flags.minutes({
138
+ char: 'w',
139
+ description: messages.getMessage('flags.wait'),
140
+ min: kit_1.Duration.minutes(2),
141
+ default: kit_1.Duration.minutes(6),
142
+ }),
143
+ };
144
+ //# sourceMappingURL=clone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone.js","sourceRoot":"","sources":["../../../../src/commands/force/org/clone.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AAO,CAAC;KACrB,CAAC;IACF,oBAAoB,EAAE,eAAK,CAAC,OAAO,CAAC;QAClC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KACzD,CAAC;CACH,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { FlagsConfig, SfdxCommand } from '@salesforce/command';
2
+ import { SandboxProcessObject } from '@salesforce/core';
3
+ export declare class OrgStatusCommand extends SfdxCommand {
4
+ static readonly examples: string[];
5
+ static readonly description: string;
6
+ static readonly requiresProject = false;
7
+ static readonly requiresUsername = true;
8
+ static readonly flagsConfig: FlagsConfig;
9
+ run(): Promise<SandboxProcessObject>;
10
+ }
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2021, salesforce.com, inc.
4
+ * All rights reserved.
5
+ * Licensed under the BSD 3-Clause license.
6
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.OrgStatusCommand = void 0;
10
+ const os_1 = require("os");
11
+ const command_1 = require("@salesforce/command");
12
+ const core_1 = require("@salesforce/core");
13
+ const kit_1 = require("@salesforce/kit");
14
+ const sandboxReporter_1 = require("../../../shared/sandboxReporter");
15
+ core_1.Messages.importMessagesDirectory(__dirname);
16
+ const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'status');
17
+ class OrgStatusCommand extends command_1.SfdxCommand {
18
+ async run() {
19
+ this.logger.debug('Status started with args %s ', this.flags);
20
+ const lifecycle = core_1.Lifecycle.getInstance();
21
+ // eslint-disable-next-line @typescript-eslint/require-await
22
+ lifecycle.on(core_1.SandboxEvents.EVENT_STATUS, async (results) => {
23
+ this.ux.log(sandboxReporter_1.SandboxReporter.sandboxProgress(results));
24
+ });
25
+ lifecycle.on(core_1.SandboxEvents.EVENT_RESULT, async (results) => {
26
+ var _a;
27
+ const resultMsg = `Sandbox ${results.sandboxProcessObj.SandboxName}(${results.sandboxProcessObj.Id}) is ready for use.`;
28
+ this.ux.log(resultMsg);
29
+ const { data } = sandboxReporter_1.SandboxReporter.logSandboxProcessResult(results);
30
+ this.ux.styledHeader('Sandbox Org Status');
31
+ this.ux.table(data, {
32
+ columns: [
33
+ { key: 'key', label: 'Name' },
34
+ { key: 'value', label: 'Value' },
35
+ ],
36
+ });
37
+ if ((_a = results.sandboxRes) === null || _a === void 0 ? void 0 : _a.authUserName) {
38
+ if (this.flags.setalias) {
39
+ const aliases = await core_1.Aliases.create(core_1.Aliases.getDefaultOptions());
40
+ const result = await aliases.updateValue(this.flags.setalias, results.sandboxRes.authUserName);
41
+ this.logger.debug('Set Alias: %s result: %s', this.flags.setalias, result);
42
+ }
43
+ if (this.flags.setdefaultusername) {
44
+ const globalConfig = this.configAggregator.getGlobalConfig();
45
+ globalConfig.set(core_1.Config.DEFAULT_USERNAME, results.sandboxRes.authUserName);
46
+ const result = await globalConfig.write();
47
+ this.logger.debug('Set defaultUsername: %s result: %s', this.flags.setdefaultusername, result);
48
+ }
49
+ }
50
+ });
51
+ this.logger.debug('Calling auth for SandboxName args: %s ', this.flags.sandboxname);
52
+ const results = await this.org.sandboxStatus(this.flags.sandboxname, { wait: this.flags.wait });
53
+ this.logger.debug('Results for auth call: %s ', results);
54
+ if (!results) {
55
+ this.ux.styledHeader('Sandbox Org Creation Status');
56
+ this.ux.log('No SandboxProcess Result Found');
57
+ }
58
+ return results;
59
+ }
60
+ }
61
+ exports.OrgStatusCommand = OrgStatusCommand;
62
+ OrgStatusCommand.examples = messages.getMessage('examples').split(os_1.EOL);
63
+ OrgStatusCommand.description = messages.getMessage('description');
64
+ OrgStatusCommand.requiresProject = false;
65
+ OrgStatusCommand.requiresUsername = true;
66
+ OrgStatusCommand.flagsConfig = {
67
+ sandboxname: command_1.flags.string({
68
+ char: 'n',
69
+ description: messages.getMessage('flags.sandboxname'),
70
+ required: true,
71
+ }),
72
+ setdefaultusername: command_1.flags.boolean({
73
+ char: 's',
74
+ description: messages.getMessage('flags.setdefaultusername'),
75
+ }),
76
+ setalias: command_1.flags.string({
77
+ char: 'a',
78
+ description: messages.getMessage('flags.setalias'),
79
+ }),
80
+ wait: command_1.flags.minutes({
81
+ char: 'w',
82
+ description: messages.getMessage('flags.wait'),
83
+ min: kit_1.Duration.minutes(2),
84
+ default: kit_1.Duration.minutes(6),
85
+ }),
86
+ };
87
+ //# sourceMappingURL=status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../src/commands/force/org/status.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2BAAyB;AACzB,iDAAsE;AACtE,2CAS0B;AAC1B,yCAA2C;AAC3C,qEAAkE;AAElE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;AAE3E,MAAa,gBAAiB,SAAQ,qBAAW;IA4BxC,KAAK,CAAC,GAAG;QACd,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9D,MAAM,SAAS,GAAG,gBAAS,CAAC,WAAW,EAAE,CAAC;QAE1C,4DAA4D;QAC5D,SAAS,CAAC,EAAE,CAAC,oBAAa,CAAC,YAAY,EAAE,KAAK,EAAE,OAAoB,EAAE,EAAE;YACtE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,iCAAe,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;QAEH,SAAS,CAAC,EAAE,CAAC,oBAAa,CAAC,YAAY,EAAE,KAAK,EAAE,OAAoB,EAAE,EAAE;;YACtE,MAAM,SAAS,GAAG,WAAW,OAAO,CAAC,iBAAiB,CAAC,WAAW,IAAI,OAAO,CAAC,iBAAiB,CAAC,EAAE,qBAAqB,CAAC;YACxH,IAAI,CAAC,EAA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AW,EAAE,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC;KACnD,CAAC;IACF,IAAI,EAAE,eAAK,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC;QAC9C,GAAG,EAAE,cAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QACxB,OAAO,EAAE,cAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;KAC7B,CAAC;CACH,CAAC"}
@@ -0,0 +1,21 @@
1
+ {
2
+ "success": "The sandbox org cloning process %s is in progress. Run \"sfdx force:org:status -n %s\" to check for status. If the org is ready, checking the status also logs the requesting user in to the sandbox org and authorizes the org for use with Salesforce CLI.",
3
+ "description": "clone a sandbox org\nThere are two ways to clone a sandbox: either specify a sandbox definition file or provide key=value pairs at the command line. Key-value pairs at the command-line override their equivalent sandbox definition file values. In either case, you must specify both the \"SandboxName\" and \"SourceSandboxName\" options. \n\nSet the --targetusername (-u) parameter to a production org with sandbox licenses. The --type (-t) parameter is required and must be set to \"sandbox\".",
4
+ "examples": [
5
+ "$ sfdx force:org:clone -t sandbox -f config/dev-sandbox-def.json -u prodOrg -a MyDevSandbox",
6
+ "$ sfdx force:org:clone -t sandbox SandboxName=DevSbx1 SourceSandboxName=Sbx2Clone -u prodOrg -a MyDevSandbox"
7
+ ],
8
+ "flags": {
9
+ "type": "type of org to create",
10
+ "wait": "number of minutes to wait while polling for status",
11
+ "setdefaultusername": "set the cloned org as your default",
12
+ "setalias": "alias for the cloned org",
13
+ "definitionfile": "path to the sandbox definition file"
14
+ },
15
+ "commandSuccess": "The sandbox org cloning process %s is in progress. Run \"sfdx force:org:status -n %s\" to check for status. If the org is ready, checking the status also logs the requesting user in to the sandbox org and authorizes the org for use with Salesforce CLI.",
16
+ "missingLicenseType": "The sandbox license type is required, but you didn't provide a value. Specify the license type in the sandbox definition file with the \"licenseType\" option, or specify the option as a name-value pair at the command-line. See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm for more information.",
17
+ "commandOrganizationTypeNotSupport": "The only supported org type is: %s",
18
+ "commandOrganizationTypeNotSupportAction": "force:org:clone -t %s",
19
+ "missingSourceSandboxName": "Specify a value for %s in a definition file or on the command line.",
20
+ "missingSourceSandboxNameAction": "To indicate which sandbox org you want to clone, specify %s in a definition file or as a command line argument."
21
+ }
@@ -7,7 +7,7 @@
7
7
  ],
8
8
  "verbose": "list more information about each org",
9
9
  "all": "include expired, deleted, and unknown-status scratch orgs",
10
- "clean": "remove all local org authorizations for non-active orgs",
10
+ "clean": "remove all local org authorizations for non-active scratch orgs. Use auth:logout to remove non-scratch orgs",
11
11
  "noPrompt": "do not prompt for confirmation",
12
12
  "skipConnectionStatus": "skip retrieving the connection status of non-scratch orgs",
13
13
  "prompt": "Found (%s) org configurations to delete. Are you sure (yes/no)?",
@@ -0,0 +1,13 @@
1
+ {
2
+ "examples": [
3
+ "sfdx force:org:status --sandboxname DevSbx1 --setalias MySandbox -u prodOrg",
4
+ "sfdx force:org:status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg"
5
+ ],
6
+ "description": "report status of sandbox creation or clone and authenticate to it\nUse this command to check the status of your sandbox creation or clone and, if the sandbox is ready, authenticate to it.\nUse the --wait (-w) parameter to specify the number of minutes that the command waits for the sandbox creation or clone to complete before returning control of the terminal to you.\nSet the --targetusername (-u) parameter to the username or alias of the production org that contains the sandbox license.",
7
+ "flags": {
8
+ "sandboxname": "name of the sandbox org to check status for",
9
+ "wait": "number of minutes to wait while polling for status",
10
+ "setdefaultusername": "set the created or cloned org as your default",
11
+ "setalias": "alias for the created or cloned org"
12
+ }
13
+ }
@@ -1 +1 @@
1
- {"version":"1.11.2","commands":{"force:org:delete":{"id":"force:org:delete","description":"mark a scratch or sandbox org for deletion \nTo mark the org for deletion without being prompted to confirm, specify --noprompt.","usage":"<%= command.id %> [-p] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:delete -u me@my.org","$ sfdx force:org:delete -u MyOrgAlias -p"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"no prompt to confirm deletion","allowNo":false}},"args":[]},"force:org:display":{"id":"force:org:display","description":"get the description for the current or target org\nOutput includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if applicable.\nUse --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a refresh token that can be used to access an org. Don't share or distribute this URL or token.\nIncluding --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not auth:jwt:grant)","usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["sfdx force:org:display","sfdx force:org:display -u me@my.org","sfdx force:org:display -u TestOrg1 --json","sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"verbose":{"name":"verbose","type":"boolean","description":"emit additional command output to stdout","allowNo":false}},"args":[]},"force:org:list":{"id":"force:org:list","description":"list all orgs you’ve created or authenticated to","usage":"<%= command.id %> [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["sfdx force:org:list","sfdx force:org:list --verbose --json","sfdx force:org:list --verbose --json > tmp/MyOrgList.json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"list more information about each org","allowNo":false},"all":{"name":"all","type":"boolean","description":"include expired, deleted, and unknown-status scratch orgs","allowNo":false},"clean":{"name":"clean","type":"boolean","description":"remove all local org authorizations for non-active orgs","allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","allowNo":false},"skipconnectionstatus":{"name":"skipconnectionstatus","type":"boolean","description":"skip retrieving the connection status of non-scratch orgs","allowNo":false}},"args":[]},"force:org:open":{"id":"force:org:open","description":"open your default scratch org, or another specified org\nTo open a specific page, specify the portion of the URL after \"https://MyDomainName.my.salesforce.com/\" as --path.\nFor example, specify \"--path lightning\" to open Lightning Experience, or specify \"--path /apex/YourPage\" to open a Visualforce page.\nTo generate a URL but not launch it in your browser, specify --urlonly.\nTo open in a specific browser, use the --browser parameter. Supported browsers are \"chrome\", \"edge\", and \"firefox\". If you don't specify --browser, the org opens in your default browser.","usage":"<%= command.id %> [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["sfdx force:org:open","sfdx force:org:open -u me@my.org","sfdx force:org:open -u MyTestOrg1","sfdx force:org:open -r -p lightning","sfdx force:org:open -u me@my.org -b firefox"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"browser":{"name":"browser","type":"option","char":"b","description":"browser where the org opens","options":["chrome","edge","firefox"]},"path":{"name":"path","type":"option","char":"p","description":"navigation URL path"},"urlonly":{"name":"urlonly","type":"boolean","char":"r","description":"display navigation URL, but don’t launch browser","allowNo":false}},"args":[]},"force:org:beta:create":{"id":"force:org:beta:create","description":"create a scratch or sandbox org \nCreates a scratch org or a sandbox org using the values specified in a configuration file or key=value pairs that you specify on the command line. Values specified on the command line override values in the configuration file. Specify a configuration file or provide key=value pairs while creating a scratch org or a sandbox. When creating scratch orgs, —targetdevhubusername (-v) must be a Dev Hub org. When creating sandboxes, the --targetusername (-u) must be a production org with sandbox licenses. The —type (-t) is required if creating a sandbox.\n\n","usage":"<%= command.id %> [name=value...] [-t scratch|sandbox] [-f <filepath>] [-n] [-c] [-i <string>] [-s] [-a <string>] [-w <minutes>] [-d <integer>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:create -f config/enterprise-scratch-def.json -a MyScratchOrg","$ sfdx force:org:create edition=Developer -a MyScratchOrg -s -v devHub","$ sfdx force:org:create -f config/enterprise-scratch-def.json -a ScratchOrgWithOverrides username=testuser1@mycompany.org","$ sfdx force:org:create -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"type":{"name":"type","type":"option","char":"t","description":"type of org to create","helpValue":"(scratch|sandbox)","options":["scratch","sandbox"],"default":"scratch"},"definitionfile":{"name":"definitionfile","type":"option","char":"f","description":"path to an org definition file"},"nonamespace":{"name":"nonamespace","type":"boolean","char":"n","description":"create the scratch org with no namespace","allowNo":false},"noancestors":{"name":"noancestors","type":"boolean","char":"c","description":"do not include second-generation package ancestors in the scratch org","allowNo":false},"clientid":{"name":"clientid","type":"option","char":"i","description":"connected app consumer key; not supported for sandbox org creation"},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the created org as the default username","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"alias for the created org"},"wait":{"name":"wait","type":"option","char":"w","description":"the streaming client socket timeout (in minutes)","default":{"quantity":6,"unit":0}},"durationdays":{"name":"durationdays","type":"option","char":"d","description":"duration of the scratch org (in days) (default:7, min:1, max:30)"},"retry":{"name":"retry","type":"option","description":"Number of scratch org auth retries after scratch org is successfully signed up.","hidden":true,"default":0}},"args":[]}}}
1
+ {"version":"1.13.0","commands":{"force:org:clone":{"id":"force:org:clone","description":"clone a sandbox org\nThere are two ways to clone a sandbox: either specify a sandbox definition file or provide key=value pairs at the command line. Key-value pairs at the command-line override their equivalent sandbox definition file values. In either case, you must specify both the \"SandboxName\" and \"SourceSandboxName\" options. \n\nSet the --targetusername (-u) parameter to a production org with sandbox licenses. The --type (-t) parameter is required and must be set to \"sandbox\".","usage":"<%= command.id %> [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]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:clone -t sandbox -f config/dev-sandbox-def.json -u prodOrg -a MyDevSandbox","$ sfdx force:org:clone -t sandbox SandboxName=DevSbx1 SourceSandboxName=Sbx2Clone -u prodOrg -a MyDevSandbox"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"type":{"name":"type","type":"option","char":"t","description":"type of org to create","required":true,"helpValue":"(sandbox)","options":["sandbox"]},"definitionfile":{"name":"definitionfile","type":"option","char":"f","description":"path to the sandbox definition file"},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the cloned org as your default","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"alias for the cloned org"},"wait":{"name":"wait","type":"option","char":"w","description":"number of minutes to wait while polling for status","default":{"quantity":6,"unit":0}}},"args":[]},"force:org:delete":{"id":"force:org:delete","description":"mark a scratch or sandbox org for deletion \nTo mark the org for deletion without being prompted to confirm, specify --noprompt.","usage":"<%= command.id %> [-p] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:delete -u me@my.org","$ sfdx force:org:delete -u MyOrgAlias -p"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"no prompt to confirm deletion","allowNo":false}},"args":[]},"force:org:display":{"id":"force:org:display","description":"get the description for the current or target org\nOutput includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if applicable.\nUse --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a refresh token that can be used to access an org. Don't share or distribute this URL or token.\nIncluding --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not auth:jwt:grant)","usage":"<%= command.id %> [-u <string>] [--apiversion <string>] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["sfdx force:org:display","sfdx force:org:display -u me@my.org","sfdx force:org:display -u TestOrg1 --json","sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"verbose":{"name":"verbose","type":"boolean","description":"emit additional command output to stdout","allowNo":false}},"args":[]},"force:org:list":{"id":"force:org:list","description":"list all orgs you’ve created or authenticated to","usage":"<%= command.id %> [--all] [-p --clean] [--skipconnectionstatus] [--verbose] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["sfdx force:org:list","sfdx force:org:list --verbose --json","sfdx force:org:list --verbose --json > tmp/MyOrgList.json"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"verbose":{"name":"verbose","type":"boolean","description":"list more information about each org","allowNo":false},"all":{"name":"all","type":"boolean","description":"include expired, deleted, and unknown-status scratch orgs","allowNo":false},"clean":{"name":"clean","type":"boolean","description":"remove all local org authorizations for non-active scratch orgs. Use auth:logout to remove non-scratch orgs","allowNo":false},"noprompt":{"name":"noprompt","type":"boolean","char":"p","description":"do not prompt for confirmation","allowNo":false},"skipconnectionstatus":{"name":"skipconnectionstatus","type":"boolean","description":"skip retrieving the connection status of non-scratch orgs","allowNo":false}},"args":[]},"force:org:open":{"id":"force:org:open","description":"open your default scratch org, or another specified org\nTo open a specific page, specify the portion of the URL after \"https://MyDomainName.my.salesforce.com/\" as --path.\nFor example, specify \"--path lightning\" to open Lightning Experience, or specify \"--path /apex/YourPage\" to open a Visualforce page.\nTo generate a URL but not launch it in your browser, specify --urlonly.\nTo open in a specific browser, use the --browser parameter. Supported browsers are \"chrome\", \"edge\", and \"firefox\". If you don't specify --browser, the org opens in your default browser.","usage":"<%= command.id %> [-b <string> | -r] [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["sfdx force:org:open","sfdx force:org:open -u me@my.org","sfdx force:org:open -u MyTestOrg1","sfdx force:org:open -r -p lightning","sfdx force:org:open -u me@my.org -b firefox"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"browser":{"name":"browser","type":"option","char":"b","description":"browser where the org opens","options":["chrome","edge","firefox"]},"path":{"name":"path","type":"option","char":"p","description":"navigation URL path"},"urlonly":{"name":"urlonly","type":"boolean","char":"r","description":"display navigation URL, but don’t launch browser","allowNo":false}},"args":[]},"force:org:status":{"id":"force:org:status","description":"report status of sandbox creation or clone and authenticate to it\nUse this command to check the status of your sandbox creation or clone and, if the sandbox is ready, authenticate to it.\nUse the --wait (-w) parameter to specify the number of minutes that the command waits for the sandbox creation or clone to complete before returning control of the terminal to you.\nSet the --targetusername (-u) parameter to the username or alias of the production org that contains the sandbox license.","usage":"<%= command.id %> -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]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["sfdx force:org:status --sandboxname DevSbx1 --setalias MySandbox -u prodOrg","sfdx force:org:status --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"sandboxname":{"name":"sandboxname","type":"option","char":"n","description":"name of the sandbox org to check status for","required":true},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the created or cloned org as your default","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"alias for the created or cloned org"},"wait":{"name":"wait","type":"option","char":"w","description":"number of minutes to wait while polling for status","default":{"quantity":6,"unit":0}}},"args":[]},"force:org:beta:create":{"id":"force:org:beta:create","description":"create a scratch or sandbox org \nCreates a scratch org or a sandbox org using the values specified in a configuration file or key=value pairs that you specify on the command line. Values specified on the command line override values in the configuration file. Specify a configuration file or provide key=value pairs while creating a scratch org or a sandbox. When creating scratch orgs, —targetdevhubusername (-v) must be a Dev Hub org. When creating sandboxes, the --targetusername (-u) must be a production org with sandbox licenses. The —type (-t) is required if creating a sandbox.\n\n","usage":"<%= command.id %> [name=value...] [-t scratch|sandbox] [-f <filepath>] [-n] [-c] [-i <string>] [-s] [-a <string>] [-w <minutes>] [-d <integer>] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@salesforce/plugin-org","pluginType":"core","aliases":[],"examples":["$ sfdx force:org:create -f config/enterprise-scratch-def.json -a MyScratchOrg","$ sfdx force:org:create edition=Developer -a MyScratchOrg -s -v devHub","$ sfdx force:org:create -f config/enterprise-scratch-def.json -a ScratchOrgWithOverrides username=testuser1@mycompany.org","$ sfdx force:org:create -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetdevhubusername":{"name":"targetdevhubusername","type":"option","char":"v","description":"username or alias for the dev hub org; overrides default dev hub org"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"type":{"name":"type","type":"option","char":"t","description":"type of org to create","helpValue":"(scratch|sandbox)","options":["scratch","sandbox"],"default":"scratch"},"definitionfile":{"name":"definitionfile","type":"option","char":"f","description":"path to an org definition file"},"nonamespace":{"name":"nonamespace","type":"boolean","char":"n","description":"create the scratch org with no namespace","allowNo":false},"noancestors":{"name":"noancestors","type":"boolean","char":"c","description":"do not include second-generation package ancestors in the scratch org","allowNo":false},"clientid":{"name":"clientid","type":"option","char":"i","description":"connected app consumer key; not supported for sandbox org creation"},"setdefaultusername":{"name":"setdefaultusername","type":"boolean","char":"s","description":"set the created org as the default username","allowNo":false},"setalias":{"name":"setalias","type":"option","char":"a","description":"alias for the created org"},"wait":{"name":"wait","type":"option","char":"w","description":"the streaming client socket timeout (in minutes)","default":{"quantity":6,"unit":0}},"durationdays":{"name":"durationdays","type":"option","char":"d","description":"duration of the scratch org (in days) (default:7, min:1, max:30)"},"retry":{"name":"retry","type":"option","description":"Number of scratch org auth retries after scratch org is successfully signed up.","hidden":true,"default":0}},"args":[]}}}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-org",
3
3
  "description": "A template repository for sfdx plugins",
4
- "version": "1.11.2",
4
+ "version": "1.13.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
8
  "@oclif/config": "^1.18.1",
9
9
  "@salesforce/command": "^4.2.2",
10
- "@salesforce/core": "^2.35.0",
10
+ "@salesforce/core": "^2.36.3",
11
11
  "@salesforce/kit": "^1.5.17",
12
12
  "open": "8.4.0",
13
13
  "tslib": "^2"
@@ -33,7 +33,7 @@
33
33
  "eslint-config-salesforce-license": "^0.1.6",
34
34
  "eslint-config-salesforce-typescript": "^0.2.8",
35
35
  "eslint-plugin-header": "^3.0.0",
36
- "eslint-plugin-import": "2.25.4",
36
+ "eslint-plugin-import": "2.26.0",
37
37
  "eslint-plugin-jsdoc": "^35.1.2",
38
38
  "eslint-plugin-prettier": "^3.1.3",
39
39
  "husky": "^7.0.4",
@@ -43,18 +43,22 @@
43
43
  "nyc": "^15.1.0",
44
44
  "prettier": "^2.4.1",
45
45
  "pretty-quick": "^3.1.0",
46
+ "shelljs": "^0.8.5",
46
47
  "shx": "0.3.4",
47
48
  "sinon": "10.0.0",
48
49
  "ts-node": "^10.0.0",
49
50
  "typescript": "^4.4.4"
50
51
  },
52
+ "resolutions": {
53
+ "@salesforce/core": "^2.37.1"
54
+ },
51
55
  "config": {
52
56
  "commitizen": {
53
57
  "path": "cz-conventional-changelog"
54
58
  }
55
59
  },
56
60
  "engines": {
57
- "node": ">=12.0.0"
61
+ "node": ">=14.0.0"
58
62
  },
59
63
  "files": [
60
64
  "/lib",
@@ -116,7 +120,7 @@
116
120
  "access": "public"
117
121
  },
118
122
  "sfdx": {
119
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.11.2.crt",
120
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.11.2.sig"
123
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.13.0.crt",
124
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/1.13.0.sig"
121
125
  }
122
126
  }