@salesforce/plugin-org 2.11.8 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -115
- package/lib/commands/force/org/clone.d.ts +8 -8
- package/lib/commands/force/org/clone.js +65 -66
- package/lib/commands/force/org/clone.js.map +1 -1
- package/lib/commands/force/org/create.d.ts +18 -42
- package/lib/commands/force/org/create.js +104 -106
- package/lib/commands/force/org/create.js.map +1 -1
- package/lib/commands/force/org/delete.d.ts +5 -5
- package/lib/commands/force/org/delete.js +42 -44
- package/lib/commands/force/org/delete.js.map +1 -1
- package/lib/commands/force/org/status.d.ts +7 -7
- package/lib/commands/force/org/status.js +48 -50
- package/lib/commands/force/org/status.js.map +1 -1
- package/lib/commands/org/create/sandbox.d.ts +11 -11
- package/lib/commands/org/create/sandbox.js +106 -106
- package/lib/commands/org/create/sandbox.js.map +1 -1
- package/lib/commands/org/create/scratch.d.ts +20 -20
- package/lib/commands/org/create/scratch.js +140 -142
- package/lib/commands/org/create/scratch.js.map +1 -1
- package/lib/commands/org/delete/sandbox.d.ts +3 -3
- package/lib/commands/org/delete/sandbox.js +46 -31
- package/lib/commands/org/delete/sandbox.js.map +1 -1
- package/lib/commands/org/delete/scratch.d.ts +3 -3
- package/lib/commands/org/delete/scratch.js +27 -28
- package/lib/commands/org/delete/scratch.js.map +1 -1
- package/lib/commands/org/display.d.ts +5 -5
- package/lib/commands/org/display.js +33 -34
- package/lib/commands/org/display.js.map +1 -1
- package/lib/commands/org/list/metadata-types.d.ts +5 -5
- package/lib/commands/org/list/metadata-types.js +38 -40
- package/lib/commands/org/list/metadata-types.js.map +1 -1
- package/lib/commands/org/list/metadata.d.ts +6 -6
- package/lib/commands/org/list/metadata.js +39 -41
- package/lib/commands/org/list/metadata.js.map +1 -1
- package/lib/commands/org/list.d.ts +2 -2
- package/lib/commands/org/list.js +56 -57
- package/lib/commands/org/list.js.map +1 -1
- package/lib/commands/org/open.d.ts +7 -7
- package/lib/commands/org/open.js +61 -61
- package/lib/commands/org/open.js.map +1 -1
- package/lib/commands/org/resume/sandbox.d.ts +6 -6
- package/lib/commands/org/resume/sandbox.js +61 -61
- package/lib/commands/org/resume/sandbox.js.map +1 -1
- package/lib/commands/org/resume/scratch.d.ts +3 -3
- package/lib/commands/org/resume/scratch.js +35 -36
- package/lib/commands/org/resume/scratch.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -2
- package/lib/index.js.map +1 -1
- package/lib/shared/flags.d.ts +4 -1
- package/lib/shared/flags.js +10 -11
- package/lib/shared/flags.js.map +1 -1
- package/lib/shared/orgHighlighter.d.ts +1 -1
- package/lib/shared/orgHighlighter.js +4 -9
- package/lib/shared/orgHighlighter.js.map +1 -1
- package/lib/shared/orgHooks.js +1 -2
- package/lib/shared/orgHooks.js.map +1 -1
- package/lib/shared/orgListUtil.d.ts +1 -1
- package/lib/shared/orgListUtil.js +27 -31
- package/lib/shared/orgListUtil.js.map +1 -1
- package/lib/shared/orgTypes.js +2 -5
- package/lib/shared/orgTypes.js.map +1 -1
- package/lib/shared/sandboxCommandBase.d.ts +2 -2
- package/lib/shared/sandboxCommandBase.js +33 -28
- package/lib/shared/sandboxCommandBase.js.map +1 -1
- package/lib/shared/sandboxProgress.d.ts +1 -1
- package/lib/shared/sandboxProgress.js +11 -17
- package/lib/shared/sandboxProgress.js.map +1 -1
- package/lib/shared/sandboxReporter.d.ts +0 -1
- package/lib/shared/sandboxReporter.js +3 -16
- package/lib/shared/sandboxReporter.js.map +1 -1
- package/lib/shared/sandboxRequest.d.ts +5 -0
- package/lib/shared/sandboxRequest.js +21 -20
- package/lib/shared/sandboxRequest.js.map +1 -1
- package/lib/shared/scratchOrgOutput.js +20 -31
- package/lib/shared/scratchOrgOutput.js.map +1 -1
- package/lib/shared/scratchOrgRequest.d.ts +1 -1
- package/lib/shared/scratchOrgRequest.js +4 -8
- package/lib/shared/scratchOrgRequest.js.map +1 -1
- package/lib/shared/stagedProgress.d.ts +1 -1
- package/lib/shared/stagedProgress.js +19 -19
- package/lib/shared/stagedProgress.js.map +1 -1
- package/lib/shared/timeUtils.js +10 -16
- package/lib/shared/timeUtils.js.map +1 -1
- package/lib/shared/utils.d.ts +9 -2
- package/lib/shared/utils.js +13 -14
- package/lib/shared/utils.js.map +1 -1
- package/messages/delete_sandbox.md +9 -3
- package/oclif.lock +8460 -0
- package/oclif.manifest.json +1090 -688
- package/package.json +26 -23
|
@@ -1,31 +1,74 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2021, salesforce.com, inc.
|
|
4
3
|
* All rights reserved.
|
|
5
4
|
* Licensed under the BSD 3-Clause license.
|
|
6
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const messages =
|
|
16
|
-
class OrgCloneCommand extends
|
|
7
|
+
import { dirname } from 'node:path';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { Flags, SfCommand, requiredOrgFlagWithDeprecations, parseVarArgs, orgApiVersionFlagWithDeprecations, loglevel, } from '@salesforce/sf-plugins-core';
|
|
10
|
+
import { SfError, Lifecycle, Messages, OrgTypes, OrgConfigProperties, StateAggregator, SandboxEvents, Logger, } from '@salesforce/core';
|
|
11
|
+
import requestFunctions from '../../../shared/sandboxRequest.js';
|
|
12
|
+
import { SandboxReporter } from '../../../shared/sandboxReporter.js';
|
|
13
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
14
|
+
const messages = Messages.loadMessages('@salesforce/plugin-org', 'clone');
|
|
15
|
+
export class OrgCloneCommand extends SfCommand {
|
|
16
|
+
static examples = messages.getMessages('examples');
|
|
17
|
+
static summary = messages.getMessage('summary');
|
|
18
|
+
static description = messages.getMessage('description');
|
|
19
|
+
static strict = false;
|
|
20
|
+
static state = 'deprecated';
|
|
21
|
+
static deprecationOptions = {
|
|
22
|
+
to: 'org:create:sandbox',
|
|
23
|
+
version: '60.0',
|
|
24
|
+
};
|
|
25
|
+
static SANDBOXDEF_SRC_SANDBOXNAME = 'SourceSandboxName';
|
|
26
|
+
static flags = {
|
|
27
|
+
'target-org': requiredOrgFlagWithDeprecations,
|
|
28
|
+
'api-version': orgApiVersionFlagWithDeprecations,
|
|
29
|
+
type: Flags.custom({
|
|
30
|
+
options: ['sandbox'],
|
|
31
|
+
})({
|
|
32
|
+
char: 't',
|
|
33
|
+
summary: messages.getMessage('flags.type.summary'),
|
|
34
|
+
required: true,
|
|
35
|
+
}),
|
|
36
|
+
definitionfile: Flags.file({
|
|
37
|
+
char: 'f',
|
|
38
|
+
exists: true,
|
|
39
|
+
summary: messages.getMessage('flags.definitionfile.summary'),
|
|
40
|
+
}),
|
|
41
|
+
setdefaultusername: Flags.boolean({
|
|
42
|
+
char: 's',
|
|
43
|
+
summary: messages.getMessage('flags.setdefaultusername.summary'),
|
|
44
|
+
}),
|
|
45
|
+
setalias: Flags.string({
|
|
46
|
+
char: 'a',
|
|
47
|
+
summary: messages.getMessage('flags.setalias.summary'),
|
|
48
|
+
}),
|
|
49
|
+
wait: Flags.duration({
|
|
50
|
+
unit: 'minutes',
|
|
51
|
+
char: 'w',
|
|
52
|
+
summary: messages.getMessage('flags.wait.summary'),
|
|
53
|
+
description: messages.getMessage('flags.wait.description'),
|
|
54
|
+
min: 2,
|
|
55
|
+
defaultValue: 6,
|
|
56
|
+
}),
|
|
57
|
+
loglevel,
|
|
58
|
+
};
|
|
59
|
+
logger;
|
|
17
60
|
async run() {
|
|
18
61
|
const { flags, args, argv } = await this.parse(OrgCloneCommand);
|
|
19
|
-
this.logger = await
|
|
20
|
-
const varargs =
|
|
21
|
-
const lifecycle =
|
|
22
|
-
if (flags.type ===
|
|
23
|
-
lifecycle.on(
|
|
62
|
+
this.logger = await Logger.child(this.constructor.name);
|
|
63
|
+
const varargs = parseVarArgs(args, argv);
|
|
64
|
+
const lifecycle = Lifecycle.getInstance();
|
|
65
|
+
if (flags.type === OrgTypes.Sandbox.toString()) {
|
|
66
|
+
lifecycle.on(SandboxEvents.EVENT_ASYNC_RESULT, async (results) =>
|
|
24
67
|
// Keep all console output in the command
|
|
25
68
|
Promise.resolve(this.log(messages.getMessage('commandSuccess', [results.Id, this.config.bin, results.SandboxName]))));
|
|
26
|
-
lifecycle.on(
|
|
27
|
-
lifecycle.on(
|
|
28
|
-
const { sandboxReadyForUse, data } =
|
|
69
|
+
lifecycle.on(SandboxEvents.EVENT_STATUS, async (results) => Promise.resolve(this.log(SandboxReporter.sandboxProgress(results))));
|
|
70
|
+
lifecycle.on(SandboxEvents.EVENT_RESULT, async (results) => {
|
|
71
|
+
const { sandboxReadyForUse, data } = SandboxReporter.logSandboxProcessResult(results);
|
|
29
72
|
this.log(sandboxReadyForUse);
|
|
30
73
|
this.styledHeader('Sandbox Org Cloning Status');
|
|
31
74
|
this.table(data, {
|
|
@@ -39,70 +82,26 @@ class OrgCloneCommand extends sf_plugins_core_1.SfCommand {
|
|
|
39
82
|
await this.setDefaultUsername(results.sandboxRes.authUserName);
|
|
40
83
|
}
|
|
41
84
|
});
|
|
42
|
-
const { sandboxReq, srcSandboxName } = await
|
|
85
|
+
const { sandboxReq, srcSandboxName } = await requestFunctions.createSandboxRequest(true, flags.definitionfile, this.logger, varargs);
|
|
43
86
|
this.logger.debug('Calling clone with SandboxRequest: %s and SandboxName: %s ', sandboxReq, srcSandboxName);
|
|
44
87
|
flags['target-org'].getConnection(flags['api-version']);
|
|
45
88
|
return flags['target-org'].cloneSandbox(sandboxReq, srcSandboxName, { wait: flags.wait });
|
|
46
89
|
}
|
|
47
90
|
else {
|
|
48
|
-
throw new
|
|
91
|
+
throw new SfError(messages.getMessage('commandOrganizationTypeNotSupport', [OrgTypes.Sandbox]), messages.getMessage('commandOrganizationTypeNotSupportAction', [OrgTypes.Sandbox]));
|
|
49
92
|
}
|
|
50
93
|
}
|
|
51
94
|
async setAlias(alias, username) {
|
|
52
|
-
const stateAggregator = await
|
|
95
|
+
const stateAggregator = await StateAggregator.getInstance();
|
|
53
96
|
stateAggregator.aliases.set(alias, username);
|
|
54
97
|
const result = stateAggregator.aliases.getAll();
|
|
55
98
|
this.logger.debug('Set Alias: %s result: %s', alias, result);
|
|
56
99
|
}
|
|
57
100
|
async setDefaultUsername(username) {
|
|
58
101
|
const globalConfig = this.configAggregator.getGlobalConfig();
|
|
59
|
-
globalConfig.set(
|
|
102
|
+
globalConfig.set(OrgConfigProperties.TARGET_ORG, username);
|
|
60
103
|
const result = await globalConfig.write();
|
|
61
104
|
this.logger.debug('Set defaultUsername: %s result: %s', username, result);
|
|
62
105
|
}
|
|
63
106
|
}
|
|
64
|
-
exports.OrgCloneCommand = OrgCloneCommand;
|
|
65
|
-
OrgCloneCommand.examples = messages.getMessages('examples');
|
|
66
|
-
OrgCloneCommand.summary = messages.getMessage('summary');
|
|
67
|
-
OrgCloneCommand.description = messages.getMessage('description');
|
|
68
|
-
OrgCloneCommand.strict = false;
|
|
69
|
-
OrgCloneCommand.state = 'deprecated';
|
|
70
|
-
OrgCloneCommand.deprecationOptions = {
|
|
71
|
-
to: 'org:create:sandbox',
|
|
72
|
-
version: '60.0',
|
|
73
|
-
};
|
|
74
|
-
OrgCloneCommand.SANDBOXDEF_SRC_SANDBOXNAME = 'SourceSandboxName';
|
|
75
|
-
OrgCloneCommand.flags = {
|
|
76
|
-
'target-org': sf_plugins_core_1.requiredOrgFlagWithDeprecations,
|
|
77
|
-
'api-version': sf_plugins_core_1.orgApiVersionFlagWithDeprecations,
|
|
78
|
-
type: sf_plugins_core_1.Flags.custom({
|
|
79
|
-
options: ['sandbox'],
|
|
80
|
-
})({
|
|
81
|
-
char: 't',
|
|
82
|
-
summary: messages.getMessage('flags.type.summary'),
|
|
83
|
-
required: true,
|
|
84
|
-
}),
|
|
85
|
-
definitionfile: sf_plugins_core_1.Flags.file({
|
|
86
|
-
char: 'f',
|
|
87
|
-
exists: true,
|
|
88
|
-
summary: messages.getMessage('flags.definitionfile.summary'),
|
|
89
|
-
}),
|
|
90
|
-
setdefaultusername: sf_plugins_core_1.Flags.boolean({
|
|
91
|
-
char: 's',
|
|
92
|
-
summary: messages.getMessage('flags.setdefaultusername.summary'),
|
|
93
|
-
}),
|
|
94
|
-
setalias: sf_plugins_core_1.Flags.string({
|
|
95
|
-
char: 'a',
|
|
96
|
-
summary: messages.getMessage('flags.setalias.summary'),
|
|
97
|
-
}),
|
|
98
|
-
wait: sf_plugins_core_1.Flags.duration({
|
|
99
|
-
unit: 'minutes',
|
|
100
|
-
char: 'w',
|
|
101
|
-
summary: messages.getMessage('flags.wait.summary'),
|
|
102
|
-
description: messages.getMessage('flags.wait.description'),
|
|
103
|
-
min: 2,
|
|
104
|
-
defaultValue: 6,
|
|
105
|
-
}),
|
|
106
|
-
loglevel: sf_plugins_core_1.loglevel,
|
|
107
|
-
};
|
|
108
107
|
//# sourceMappingURL=clone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone.js","sourceRoot":"","sources":["../../../../src/commands/force/org/clone.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clone.js","sourceRoot":"","sources":["../../../../src/commands/force/org/clone.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,KAAK,EACL,SAAS,EACT,+BAA+B,EAC/B,YAAY,EACZ,iCAAiC,EACjC,QAAQ,GACT,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,aAAa,EAIb,MAAM,GACP,MAAM,kBAAkB,CAAC;AAC1B,OAAO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AAC"}
|
|
@@ -32,59 +32,35 @@ export declare class Create extends SfCommand<CreateResult> {
|
|
|
32
32
|
dependsOn?: string[] | undefined;
|
|
33
33
|
exclusive?: string[] | undefined;
|
|
34
34
|
exactlyOne?: string[] | undefined;
|
|
35
|
-
relationships?: import("@oclif/core/lib/interfaces/parser").Relationship[] | undefined;
|
|
35
|
+
relationships?: import("@oclif/core/lib/interfaces/parser.js").Relationship[] | undefined;
|
|
36
36
|
deprecated?: true | Interfaces.Deprecation | undefined;
|
|
37
37
|
aliases?: string[] | undefined;
|
|
38
|
+
charAliases?: (Interfaces.AlphabetLowercase | Interfaces.AlphabetUppercase)[] | undefined;
|
|
38
39
|
deprecateAliases?: boolean | undefined;
|
|
39
|
-
|
|
40
|
+
noCacheDefault?: boolean | undefined;
|
|
40
41
|
type: "option";
|
|
41
42
|
helpValue?: string | undefined;
|
|
42
|
-
options?: string[] | undefined;
|
|
43
|
-
multiple
|
|
44
|
-
parse: import("@oclif/core/lib/interfaces/parser").FlagParser<import("@salesforce/core").Org | undefined, string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
45
|
-
defaultHelp?: import("@oclif/core/lib/interfaces/parser").FlagDefaultHelp<import("@salesforce/core").Org | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
46
|
-
input: string[];
|
|
47
|
-
default?: import("@oclif/core/lib/interfaces/parser").FlagDefault<import("@salesforce/core").Org | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
48
|
-
} | {
|
|
49
|
-
summary: string;
|
|
50
|
-
name: string;
|
|
51
|
-
char?: Interfaces.AlphabetLowercase | Interfaces.AlphabetUppercase | undefined;
|
|
52
|
-
description?: string | undefined;
|
|
53
|
-
helpLabel?: string | undefined;
|
|
54
|
-
helpGroup?: string | undefined;
|
|
55
|
-
env?: string | undefined;
|
|
56
|
-
hidden?: boolean | undefined;
|
|
57
|
-
required?: boolean | undefined;
|
|
58
|
-
dependsOn?: string[] | undefined;
|
|
59
|
-
exclusive?: string[] | undefined;
|
|
60
|
-
exactlyOne?: string[] | undefined;
|
|
61
|
-
relationships?: import("@oclif/core/lib/interfaces/parser").Relationship[] | undefined;
|
|
62
|
-
deprecated?: true | Interfaces.Deprecation | undefined;
|
|
63
|
-
aliases?: string[] | undefined;
|
|
64
|
-
deprecateAliases?: boolean | undefined;
|
|
43
|
+
options?: readonly string[] | undefined;
|
|
44
|
+
multiple?: boolean | undefined;
|
|
65
45
|
delimiter?: "," | undefined;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
options?: string[] | undefined;
|
|
69
|
-
multiple: true;
|
|
70
|
-
parse: import("@oclif/core/lib/interfaces/parser").FlagParser<import("@salesforce/core").Org | undefined, string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
71
|
-
defaultHelp?: import("@oclif/core/lib/interfaces/parser").FlagDefaultHelp<import("@salesforce/core").Org | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
46
|
+
parse: import("@oclif/core/lib/interfaces/parser.js").FlagParser<import("@salesforce/core").Org | undefined, string, Interfaces.CustomOptions>;
|
|
47
|
+
defaultHelp?: import("@oclif/core/lib/interfaces/parser.js").FlagDefaultHelp<import("@salesforce/core").Org, Interfaces.CustomOptions> | undefined;
|
|
72
48
|
input: string[];
|
|
73
|
-
default?: import("@oclif/core/lib/interfaces/parser").FlagDefault<
|
|
49
|
+
default?: import("@oclif/core/lib/interfaces/parser.js").FlagDefault<import("@salesforce/core").Org | undefined, Interfaces.CustomOptions>;
|
|
74
50
|
};
|
|
75
|
-
'target-dev-hub': Interfaces.OptionFlag<import("@salesforce/core").Org | undefined,
|
|
76
|
-
'api-version': Interfaces.OptionFlag<string | undefined,
|
|
77
|
-
loglevel: Interfaces.OptionFlag<string | undefined,
|
|
78
|
-
type: Interfaces.OptionFlag<OrgTypes,
|
|
79
|
-
definitionfile: Interfaces.OptionFlag<string | undefined,
|
|
51
|
+
'target-dev-hub': Interfaces.OptionFlag<import("@salesforce/core").Org | undefined, Interfaces.CustomOptions>;
|
|
52
|
+
'api-version': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
53
|
+
loglevel: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
54
|
+
type: Interfaces.OptionFlag<OrgTypes, Interfaces.CustomOptions>;
|
|
55
|
+
definitionfile: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
80
56
|
nonamespace: Interfaces.BooleanFlag<boolean>;
|
|
81
57
|
noancestors: Interfaces.BooleanFlag<boolean>;
|
|
82
|
-
clientid: Interfaces.OptionFlag<string | undefined,
|
|
58
|
+
clientid: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
83
59
|
setdefaultusername: Interfaces.BooleanFlag<boolean>;
|
|
84
|
-
setalias: Interfaces.OptionFlag<string | undefined,
|
|
85
|
-
wait: Interfaces.OptionFlag<import("@salesforce/kit").Duration
|
|
86
|
-
durationdays: Interfaces.OptionFlag<number,
|
|
87
|
-
retry: Interfaces.OptionFlag<number,
|
|
60
|
+
setalias: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
61
|
+
wait: Interfaces.OptionFlag<import("@salesforce/kit").Duration, Interfaces.CustomOptions>;
|
|
62
|
+
durationdays: Interfaces.OptionFlag<number, Interfaces.CustomOptions>;
|
|
63
|
+
retry: Interfaces.OptionFlag<number, Interfaces.CustomOptions>;
|
|
88
64
|
};
|
|
89
65
|
private sandboxAuth?;
|
|
90
66
|
private logger;
|
|
@@ -1,29 +1,98 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/*
|
|
3
2
|
* Copyright (c) 2021, salesforce.com, inc.
|
|
4
3
|
* All rights reserved.
|
|
5
4
|
* Licensed under the BSD 3-Clause license.
|
|
6
5
|
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
7
6
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const messages =
|
|
16
|
-
class Create extends
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
import { dirname } from 'node:path';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { Flags, loglevel, optionalHubFlagWithDeprecations, optionalOrgFlagWithDeprecations, orgApiVersionFlagWithDeprecations, parseVarArgs, SfCommand, } from '@salesforce/sf-plugins-core';
|
|
10
|
+
import { Lifecycle, Logger, Messages, OrgConfigProperties, OrgTypes, SandboxEvents, SfError, StateAggregator, } from '@salesforce/core';
|
|
11
|
+
import requestFunctions from '../../../shared/sandboxRequest.js';
|
|
12
|
+
import { SandboxReporter } from '../../../shared/sandboxReporter.js';
|
|
13
|
+
Messages.importMessagesDirectory(dirname(fileURLToPath(import.meta.url)));
|
|
14
|
+
const messages = Messages.loadMessages('@salesforce/plugin-org', 'create');
|
|
15
|
+
export class Create extends SfCommand {
|
|
16
|
+
static summary = messages.getMessage('summary');
|
|
17
|
+
static description = messages.getMessage('description');
|
|
18
|
+
static examples = messages.getMessages('examples');
|
|
19
|
+
static state = 'deprecated';
|
|
20
|
+
static deprecationOptions = {
|
|
21
|
+
message: messages.getMessage('deprecation'),
|
|
22
|
+
};
|
|
23
|
+
// needed to allow varargs
|
|
24
|
+
static strict = false;
|
|
25
|
+
static flags = {
|
|
26
|
+
'target-org': {
|
|
27
|
+
...optionalOrgFlagWithDeprecations,
|
|
28
|
+
summary: messages.getMessage('flags.targetOrg.summary'),
|
|
29
|
+
},
|
|
30
|
+
'target-dev-hub': optionalHubFlagWithDeprecations,
|
|
31
|
+
'api-version': orgApiVersionFlagWithDeprecations,
|
|
32
|
+
loglevel,
|
|
33
|
+
type: Flags.custom({
|
|
34
|
+
options: [OrgTypes.Scratch, OrgTypes.Sandbox],
|
|
35
|
+
})({
|
|
36
|
+
char: 't',
|
|
37
|
+
summary: messages.getMessage('flags.type.summary'),
|
|
38
|
+
default: OrgTypes.Scratch,
|
|
39
|
+
}),
|
|
40
|
+
definitionfile: Flags.file({
|
|
41
|
+
exists: true,
|
|
42
|
+
char: 'f',
|
|
43
|
+
summary: messages.getMessage('flags.definitionfile.summary'),
|
|
44
|
+
}),
|
|
45
|
+
nonamespace: Flags.boolean({
|
|
46
|
+
char: 'n',
|
|
47
|
+
summary: messages.getMessage('flags.nonamespace.summary'),
|
|
48
|
+
}),
|
|
49
|
+
noancestors: Flags.boolean({
|
|
50
|
+
char: 'c',
|
|
51
|
+
summary: messages.getMessage('flags.noancestors.summary'),
|
|
52
|
+
}),
|
|
53
|
+
clientid: Flags.string({
|
|
54
|
+
char: 'i',
|
|
55
|
+
summary: messages.getMessage('flags.clientid.summary'),
|
|
56
|
+
}),
|
|
57
|
+
setdefaultusername: Flags.boolean({
|
|
58
|
+
char: 's',
|
|
59
|
+
summary: messages.getMessage('flags.setdefaultusername.summary'),
|
|
60
|
+
}),
|
|
61
|
+
setalias: Flags.string({
|
|
62
|
+
char: 'a',
|
|
63
|
+
summary: messages.getMessage('flags.setalias.summary'),
|
|
64
|
+
}),
|
|
65
|
+
wait: Flags.duration({
|
|
66
|
+
unit: 'minutes',
|
|
67
|
+
char: 'w',
|
|
68
|
+
summary: messages.getMessage('flags.wait.summary'),
|
|
69
|
+
min: 6,
|
|
70
|
+
defaultValue: 6,
|
|
71
|
+
}),
|
|
72
|
+
durationdays: Flags.integer({
|
|
73
|
+
char: 'd',
|
|
74
|
+
summary: messages.getMessage('flags.durationdays.summary'),
|
|
75
|
+
min: 1,
|
|
76
|
+
max: 30,
|
|
77
|
+
default: 7,
|
|
78
|
+
}),
|
|
79
|
+
retry: Flags.integer({
|
|
80
|
+
hidden: true,
|
|
81
|
+
default: 0,
|
|
82
|
+
max: 10,
|
|
83
|
+
summary: messages.getMessage('flags.retry.summary'),
|
|
84
|
+
}),
|
|
85
|
+
};
|
|
86
|
+
sandboxAuth;
|
|
87
|
+
logger;
|
|
88
|
+
varArgs = {};
|
|
89
|
+
flags;
|
|
21
90
|
async run() {
|
|
22
91
|
const { flags, args, argv } = await this.parse(Create);
|
|
23
92
|
this.flags = flags;
|
|
24
|
-
this.varArgs =
|
|
25
|
-
this.logger = await
|
|
26
|
-
if (flags.type ===
|
|
93
|
+
this.varArgs = parseVarArgs(args, argv);
|
|
94
|
+
this.logger = await Logger.child(this.constructor.name);
|
|
95
|
+
if (flags.type === OrgTypes.Sandbox) {
|
|
27
96
|
this.validateSandboxFlags();
|
|
28
97
|
return this.createSandbox();
|
|
29
98
|
}
|
|
@@ -34,7 +103,7 @@ class Create extends sf_plugins_core_1.SfCommand {
|
|
|
34
103
|
}
|
|
35
104
|
validateSandboxFlags() {
|
|
36
105
|
if (this.flags.retry !== 0) {
|
|
37
|
-
throw new
|
|
106
|
+
throw new SfError(messages.getMessage('retryIsNotValidForSandboxes'), 'retryIsNotValidForSandboxes');
|
|
38
107
|
}
|
|
39
108
|
if (this.flags.clientid) {
|
|
40
109
|
this.warn(messages.getMessage('clientIdNotSupported', [this.flags.clientid]));
|
|
@@ -51,19 +120,19 @@ class Create extends sf_plugins_core_1.SfCommand {
|
|
|
51
120
|
}
|
|
52
121
|
async createSandbox() {
|
|
53
122
|
if (!this.flags['target-org']) {
|
|
54
|
-
throw new
|
|
123
|
+
throw new SfError(messages.getMessage('requiresUsername', [this.config.bin]));
|
|
55
124
|
}
|
|
56
|
-
const lifecycle =
|
|
125
|
+
const lifecycle = Lifecycle.getInstance();
|
|
57
126
|
const username = this.flags['target-org'].getUsername();
|
|
58
127
|
// register the sandbox event listeners before calling `prodOrg.createSandbox()`
|
|
59
|
-
lifecycle.on(
|
|
60
|
-
lifecycle.on(
|
|
61
|
-
lifecycle.on(
|
|
128
|
+
lifecycle.on(SandboxEvents.EVENT_ASYNC_RESULT, async (results) => Promise.resolve(this.log(messages.getMessage('sandboxSuccess', [results.Id, this.config.bin, results.SandboxName, username]))));
|
|
129
|
+
lifecycle.on(SandboxEvents.EVENT_STATUS, async (results) => Promise.resolve(this.log(SandboxReporter.sandboxProgress(results))));
|
|
130
|
+
lifecycle.on(SandboxEvents.EVENT_AUTH, async (results) => {
|
|
62
131
|
this.sandboxAuth = results;
|
|
63
132
|
return Promise.resolve();
|
|
64
133
|
});
|
|
65
|
-
lifecycle.on(
|
|
66
|
-
const { sandboxReadyForUse, data } =
|
|
134
|
+
lifecycle.on(SandboxEvents.EVENT_RESULT, async (results) => {
|
|
135
|
+
const { sandboxReadyForUse, data } = SandboxReporter.logSandboxProcessResult(results);
|
|
67
136
|
this.log(sandboxReadyForUse);
|
|
68
137
|
this.styledHeader('Sandbox Org Creation Status');
|
|
69
138
|
this.table(data, {
|
|
@@ -72,20 +141,20 @@ class Create extends sf_plugins_core_1.SfCommand {
|
|
|
72
141
|
});
|
|
73
142
|
if (results.sandboxRes?.authUserName) {
|
|
74
143
|
if (this.flags.setalias) {
|
|
75
|
-
const stateAggregator = await
|
|
144
|
+
const stateAggregator = await StateAggregator.getInstance();
|
|
76
145
|
stateAggregator.aliases.set(this.flags.setalias, results.sandboxRes.authUserName);
|
|
77
146
|
const result = await stateAggregator.aliases.write();
|
|
78
147
|
this.logger.debug('Set Alias: %s result: %s', this.flags.setalias, result);
|
|
79
148
|
}
|
|
80
149
|
if (this.flags.setdefaultusername) {
|
|
81
150
|
const globalConfig = this.configAggregator.getGlobalConfig();
|
|
82
|
-
globalConfig.set(
|
|
151
|
+
globalConfig.set(OrgConfigProperties.TARGET_ORG, results.sandboxRes.authUserName);
|
|
83
152
|
const result = await globalConfig.write();
|
|
84
153
|
this.logger.debug('Set defaultUsername: %s result: %s', this.flags.setdefaultusername, result);
|
|
85
154
|
}
|
|
86
155
|
}
|
|
87
156
|
});
|
|
88
|
-
const { sandboxReq } = await
|
|
157
|
+
const { sandboxReq } = await requestFunctions.createSandboxRequest(false, this.flags.definitionfile, this.logger, this.varArgs);
|
|
89
158
|
this.logger.debug('Calling create with SandboxRequest: %s ', sandboxReq);
|
|
90
159
|
const wait = this.flags.wait;
|
|
91
160
|
try {
|
|
@@ -97,14 +166,14 @@ class Create extends sf_plugins_core_1.SfCommand {
|
|
|
97
166
|
if (err?.message.includes('The org cannot be found')) {
|
|
98
167
|
// there was most likely an issue with DNS when auth'ing to the new sandbox, but it was created.
|
|
99
168
|
if (this.flags.setalias && this.sandboxAuth) {
|
|
100
|
-
const stateAggregator = await
|
|
169
|
+
const stateAggregator = await StateAggregator.getInstance();
|
|
101
170
|
stateAggregator.aliases.set(this.flags.setalias, this.sandboxAuth.authUserName);
|
|
102
171
|
const result = await stateAggregator.aliases.write();
|
|
103
172
|
this.logger.debug('Set Alias: %s result: %s', this.flags.setalias, result);
|
|
104
173
|
}
|
|
105
174
|
if (this.flags.setdefaultusername && this.sandboxAuth) {
|
|
106
175
|
const globalConfig = this.configAggregator.getGlobalConfig();
|
|
107
|
-
globalConfig.set(
|
|
176
|
+
globalConfig.set(OrgConfigProperties.TARGET_ORG, this.sandboxAuth.authUserName);
|
|
108
177
|
const result = await globalConfig.write();
|
|
109
178
|
this.logger.debug('Set defaultUsername: %s result: %s', this.flags.setdefaultusername, result);
|
|
110
179
|
}
|
|
@@ -120,11 +189,11 @@ class Create extends sf_plugins_core_1.SfCommand {
|
|
|
120
189
|
async createScratchOrg() {
|
|
121
190
|
this.logger.debug('OK, will do scratch org creation');
|
|
122
191
|
if (!this.flags['target-dev-hub']) {
|
|
123
|
-
throw new
|
|
192
|
+
throw new SfError(messages.getMessage('RequiresDevhubUsernameError'));
|
|
124
193
|
}
|
|
125
194
|
// Ensure we have an org config input source.
|
|
126
195
|
if (!this.flags.definitionfile && Object.keys(this.varArgs).length === 0) {
|
|
127
|
-
throw new
|
|
196
|
+
throw new SfError(messages.getMessage('noConfig'));
|
|
128
197
|
}
|
|
129
198
|
this.logger.debug('validation complete');
|
|
130
199
|
// If the user supplied a specific client ID, we have no way of knowing if it's
|
|
@@ -152,12 +221,12 @@ class Create extends sf_plugins_core_1.SfCommand {
|
|
|
152
221
|
};
|
|
153
222
|
const { username, scratchOrgInfo, authFields, warnings } = await this.flags['target-dev-hub'].scratchOrgCreate(createCommandOptions);
|
|
154
223
|
if (!scratchOrgInfo) {
|
|
155
|
-
throw new
|
|
224
|
+
throw new SfError('No scratch org info returned from scratchOrgCreate');
|
|
156
225
|
}
|
|
157
226
|
if (!authFields?.orgId) {
|
|
158
|
-
throw new
|
|
227
|
+
throw new SfError('Information missing from authFields');
|
|
159
228
|
}
|
|
160
|
-
await
|
|
229
|
+
await Lifecycle.getInstance().emit('scratchOrgInfo', scratchOrgInfo);
|
|
161
230
|
this.logger.debug(`orgConfig.loginUrl: ${authFields?.loginUrl}`);
|
|
162
231
|
this.logger.debug(`orgConfig.instanceUrl: ${authFields?.instanceUrl}`);
|
|
163
232
|
this.log(messages.getMessage('scratchOrgCreateSuccess', [authFields?.orgId, username]));
|
|
@@ -175,75 +244,4 @@ class Create extends sf_plugins_core_1.SfCommand {
|
|
|
175
244
|
};
|
|
176
245
|
}
|
|
177
246
|
}
|
|
178
|
-
exports.Create = Create;
|
|
179
|
-
Create.summary = messages.getMessage('summary');
|
|
180
|
-
Create.description = messages.getMessage('description');
|
|
181
|
-
Create.examples = messages.getMessages('examples');
|
|
182
|
-
Create.state = 'deprecated';
|
|
183
|
-
Create.deprecationOptions = {
|
|
184
|
-
message: messages.getMessage('deprecation'),
|
|
185
|
-
};
|
|
186
|
-
// needed to allow varargs
|
|
187
|
-
Create.strict = false;
|
|
188
|
-
Create.flags = {
|
|
189
|
-
'target-org': {
|
|
190
|
-
...sf_plugins_core_1.optionalOrgFlagWithDeprecations,
|
|
191
|
-
summary: messages.getMessage('flags.targetOrg.summary'),
|
|
192
|
-
},
|
|
193
|
-
'target-dev-hub': sf_plugins_core_1.optionalHubFlagWithDeprecations,
|
|
194
|
-
'api-version': sf_plugins_core_1.orgApiVersionFlagWithDeprecations,
|
|
195
|
-
loglevel: sf_plugins_core_1.loglevel,
|
|
196
|
-
type: sf_plugins_core_1.Flags.custom({
|
|
197
|
-
options: [core_1.OrgTypes.Scratch, core_1.OrgTypes.Sandbox],
|
|
198
|
-
})({
|
|
199
|
-
char: 't',
|
|
200
|
-
summary: messages.getMessage('flags.type.summary'),
|
|
201
|
-
default: core_1.OrgTypes.Scratch,
|
|
202
|
-
}),
|
|
203
|
-
definitionfile: sf_plugins_core_1.Flags.file({
|
|
204
|
-
exists: true,
|
|
205
|
-
char: 'f',
|
|
206
|
-
summary: messages.getMessage('flags.definitionfile.summary'),
|
|
207
|
-
}),
|
|
208
|
-
nonamespace: sf_plugins_core_1.Flags.boolean({
|
|
209
|
-
char: 'n',
|
|
210
|
-
summary: messages.getMessage('flags.nonamespace.summary'),
|
|
211
|
-
}),
|
|
212
|
-
noancestors: sf_plugins_core_1.Flags.boolean({
|
|
213
|
-
char: 'c',
|
|
214
|
-
summary: messages.getMessage('flags.noancestors.summary'),
|
|
215
|
-
}),
|
|
216
|
-
clientid: sf_plugins_core_1.Flags.string({
|
|
217
|
-
char: 'i',
|
|
218
|
-
summary: messages.getMessage('flags.clientid.summary'),
|
|
219
|
-
}),
|
|
220
|
-
setdefaultusername: sf_plugins_core_1.Flags.boolean({
|
|
221
|
-
char: 's',
|
|
222
|
-
summary: messages.getMessage('flags.setdefaultusername.summary'),
|
|
223
|
-
}),
|
|
224
|
-
setalias: sf_plugins_core_1.Flags.string({
|
|
225
|
-
char: 'a',
|
|
226
|
-
summary: messages.getMessage('flags.setalias.summary'),
|
|
227
|
-
}),
|
|
228
|
-
wait: sf_plugins_core_1.Flags.duration({
|
|
229
|
-
unit: 'minutes',
|
|
230
|
-
char: 'w',
|
|
231
|
-
summary: messages.getMessage('flags.wait.summary'),
|
|
232
|
-
min: 6,
|
|
233
|
-
defaultValue: 6,
|
|
234
|
-
}),
|
|
235
|
-
durationdays: sf_plugins_core_1.Flags.integer({
|
|
236
|
-
char: 'd',
|
|
237
|
-
summary: messages.getMessage('flags.durationdays.summary'),
|
|
238
|
-
min: 1,
|
|
239
|
-
max: 30,
|
|
240
|
-
default: 7,
|
|
241
|
-
}),
|
|
242
|
-
retry: sf_plugins_core_1.Flags.integer({
|
|
243
|
-
hidden: true,
|
|
244
|
-
default: 0,
|
|
245
|
-
max: 10,
|
|
246
|
-
summary: messages.getMessage('flags.retry.summary'),
|
|
247
|
-
}),
|
|
248
|
-
};
|
|
249
247
|
//# sourceMappingURL=create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/force/org/create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/force/org/create.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EACL,KAAK,EACL,QAAQ,EACR,+BAA+B,EAC/B,+BAA+B,EAC/B,iCAAiC,EACjC,YAAY,EACZ,SAAS,GACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGL,SAAS,EACT,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,QAAQ,EAER,aAAa,EAKb,OAAO,EACP,eAAe,GAEhB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,QAAQ,CAAC,uBAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1E,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;AAY3E,MAAM,OAAO,MAAO,SAAQ,SAAuB;IAC1C,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG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cAAc,EAAE;YACnB,MAAM,IAAI,OAAO,CAAC,oDAAoD,CAAC,CAAC;SACzE;QACD,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE;YACtB,MAAM,IAAI,OAAO,CAAC,qCAAqC,CAAC,CAAC;SAC1D;QAED,MAAM,SAAS,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;QAErE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uBAAuB,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC;QACjE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,UAAU,EAAE,WAAW,EAAE,CAAC,CAAC;QAEvE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAC,UAAU,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;QAExF,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;YACvB,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC3B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC;SACJ;QAED,OAAO;YACL,QAAQ;YACR,cAAc;YACd,UAAU;YACV,QAAQ;YACR,KAAK,EAAE,UAAU,EAAE,KAAK;SACzB,CAAC;IACJ,CAAC"}
|
|
@@ -12,11 +12,11 @@ export declare class Delete extends SfCommand<DeleteResult> {
|
|
|
12
12
|
message: string;
|
|
13
13
|
};
|
|
14
14
|
static readonly flags: {
|
|
15
|
-
'target-org': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
|
-
targetdevhubusername: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
17
|
-
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
18
|
-
'no-prompt': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
|
-
loglevel: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
15
|
+
'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
16
|
+
targetdevhubusername: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
17
|
+
'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
18
|
+
'no-prompt': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
19
|
+
loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
20
20
|
};
|
|
21
21
|
run(): Promise<DeleteResult>;
|
|
22
22
|
}
|