@salesforce/plugin-org 2.8.6 → 2.9.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/lib/commands/force/org/clone.js +1 -1
- package/lib/commands/force/org/clone.js.map +1 -1
- package/lib/commands/force/org/create.js +6 -3
- package/lib/commands/force/org/create.js.map +1 -1
- package/lib/commands/org/create/scratch.d.ts +5 -3
- package/lib/commands/org/create/scratch.js +13 -28
- package/lib/commands/org/create/scratch.js.map +1 -1
- package/lib/commands/org/list.d.ts +2 -2
- package/lib/commands/org/list.js +5 -4
- package/lib/commands/org/list.js.map +1 -1
- package/lib/shared/scratchOrgRequest.d.ts +31 -0
- package/lib/shared/scratchOrgRequest.js +46 -0
- package/lib/shared/scratchOrgRequest.js.map +1 -0
- package/messages/clone.md +1 -5
- package/messages/create.md +4 -12
- package/messages/create.sandbox.md +0 -4
- package/messages/create_scratch.md +10 -0
- package/messages/list.md +1 -1
- package/messages/messages.md +1 -77
- package/messages/open.md +0 -4
- package/oclif.manifest.json +17 -2
- package/package.json +3 -3
|
@@ -22,7 +22,7 @@ class OrgCloneCommand extends sf_plugins_core_1.SfCommand {
|
|
|
22
22
|
if (flags.type === core_1.OrgTypes.Sandbox) {
|
|
23
23
|
lifecycle.on(core_1.SandboxEvents.EVENT_ASYNC_RESULT, async (results) =>
|
|
24
24
|
// Keep all console output in the command
|
|
25
|
-
Promise.resolve(this.log(messages.getMessage('commandSuccess', [results.Id, results.SandboxName]))));
|
|
25
|
+
Promise.resolve(this.log(messages.getMessage('commandSuccess', [results.Id, this.config.bin, results.SandboxName]))));
|
|
26
26
|
lifecycle.on(core_1.SandboxEvents.EVENT_STATUS, async (results) => Promise.resolve(this.log(sandboxReporter_1.SandboxReporter.sandboxProgress(results))));
|
|
27
27
|
lifecycle.on(core_1.SandboxEvents.EVENT_RESULT, async (results) => {
|
|
28
28
|
const { sandboxReadyForUse, data } = sandboxReporter_1.SandboxReporter.logSandboxProcessResult(results);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone.js","sourceRoot":"","sources":["../../../../src/commands/force/org/clone.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iEAOqC;AACrC,2CAY0B;AAC1B,mEAAsE;AACtE,qEAAkE;AAElE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;AAE1E,MAAa,eAAgB,SAAQ,2BAA+B;IAgD3D,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAChE,IAAI,CAAC,MAAM,GAAG,MAAM,aAAM,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACxD,MAAM,OAAO,GAAG,IAAA,8BAAY,EAAC,IAAI,EAAE,IAAgB,CAAC,CAAC;QAErD,MAAM,SAAS,GAAG,gBAAS,CAAC,WAAW,EAAE,CAAC;QAC1C,IAAI,KAAK,CAAC,IAAI,KAAK,eAAQ,CAAC,OAAO,EAAE;YACnC,SAAS,CAAC,EAAE,CAAC,oBAAa,CAAC,kBAAkB,EAAE,KAAK,EAAE,OAA6B,EAAE,EAAE;YACrF,yCAAyC;YACzC,OAAO,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"clone.js","sourceRoot":"","sources":["../../../../src/commands/force/org/clone.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iEAOqC;AACrC,2CAY0B;AAC1B,mEAAsE;AACtE,qEAAkE;AAElE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;AAE1E,MAAa,eAAgB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AAC;QACD,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC;QAC1C,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,cAAc,EAAE,uBAAK,CAAC,IAAI,CAAC;QACzB,IAAI,EAAE,GAAG;QACT,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KACrD,CAAC;IACF,kBAAkB,EAAE,uBAAK,CAAC,OAAO,CAAC;QAChC,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;KACzD,CAAC;IACF,QAAQ,EAAE,uBAAK,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC;KAC/C,CAAC;IACF,IAAI,EAAE,uBAAK,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC;QAC1C,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC;QAClD,GAAG,EAAE,CAAC;QACN,YAAY,EAAE,CAAC;KAChB,CAAC;IACF,QAAQ,EAAR,0BAAQ;CACT,CAAC"}
|
|
@@ -52,12 +52,12 @@ class Create extends sf_plugins_core_1.SfCommand {
|
|
|
52
52
|
}
|
|
53
53
|
async createSandbox() {
|
|
54
54
|
if (!this.flags['target-org']) {
|
|
55
|
-
throw new core_1.SfError(messages.getMessage('requiresUsername'));
|
|
55
|
+
throw new core_1.SfError(messages.getMessage('requiresUsername', [this.config.bin]));
|
|
56
56
|
}
|
|
57
57
|
const lifecycle = core_1.Lifecycle.getInstance();
|
|
58
58
|
const username = this.flags['target-org'].getUsername();
|
|
59
59
|
// register the sandbox event listeners before calling `prodOrg.createSandbox()`
|
|
60
|
-
lifecycle.on(core_1.SandboxEvents.EVENT_ASYNC_RESULT, async (results) => Promise.resolve(this.log(messages.getMessage('sandboxSuccess', [results.Id, results.SandboxName, username]))));
|
|
60
|
+
lifecycle.on(core_1.SandboxEvents.EVENT_ASYNC_RESULT, async (results) => Promise.resolve(this.log(messages.getMessage('sandboxSuccess', [results.Id, this.config.bin, results.SandboxName, username]))));
|
|
61
61
|
lifecycle.on(core_1.SandboxEvents.EVENT_STATUS, async (results) => Promise.resolve(this.log(sandboxReporter_1.SandboxReporter.sandboxProgress(results))));
|
|
62
62
|
lifecycle.on(core_1.SandboxEvents.EVENT_AUTH, async (results) => {
|
|
63
63
|
this.sandboxAuth = results;
|
|
@@ -109,7 +109,10 @@ class Create extends sf_plugins_core_1.SfCommand {
|
|
|
109
109
|
const result = await globalConfig.write();
|
|
110
110
|
this.logger.debug('Set defaultUsername: %s result: %s', this.flags.setdefaultusername, result);
|
|
111
111
|
}
|
|
112
|
-
err.actions = [
|
|
112
|
+
err.actions = [
|
|
113
|
+
messages.getMessage('dnsTimeout', [this.config.bin, this.config.bin]),
|
|
114
|
+
messages.getMessage('partialSuccess', [this.config.bin, this.config.bin, this.config.bin]),
|
|
115
|
+
];
|
|
113
116
|
err.exitCode = 68;
|
|
114
117
|
}
|
|
115
118
|
throw err;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/commands/force/org/create.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,iEAQqC;AACrC,2CAiB0B;AAC1B,mEAAsE;AACtE,qEAAkE;AAElE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;AAY3E,MAAa,MAAO,SAAQ,2BAAuB;IAAnD;;QA4EU,YAAO,GAAuC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"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,aAAa,CAAC;KAC5C,CAAC;CACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Duration } from '@salesforce/kit';
|
|
2
1
|
import { Org } from '@salesforce/core';
|
|
3
2
|
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
+
import { Duration } from '@salesforce/kit';
|
|
4
4
|
import { ScratchCreateResponse } from '../../../shared/orgTypes';
|
|
5
5
|
export declare const secretTimeout = 60000;
|
|
6
6
|
export default class EnvCreateScratch extends SfCommand<ScratchCreateResponse> {
|
|
@@ -18,8 +18,8 @@ export default class EnvCreateScratch extends SfCommand<ScratchCreateResponse> {
|
|
|
18
18
|
'no-ancestors': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
19
19
|
edition: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
20
20
|
'no-namespace': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
21
|
-
'duration-days': import("@oclif/core/lib/interfaces").OptionFlag<Duration
|
|
22
|
-
wait: import("@oclif/core/lib/interfaces").OptionFlag<Duration
|
|
21
|
+
'duration-days': import("@oclif/core/lib/interfaces").OptionFlag<Duration, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
22
|
+
wait: import("@oclif/core/lib/interfaces").OptionFlag<Duration, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
23
23
|
'api-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
24
24
|
'client-id': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
25
25
|
'track-source': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -27,6 +27,8 @@ export default class EnvCreateScratch extends SfCommand<ScratchCreateResponse> {
|
|
|
27
27
|
description: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
28
28
|
name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
29
29
|
release: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
30
|
+
'admin-email': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
31
|
+
'source-org': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
30
32
|
};
|
|
31
33
|
run(): Promise<ScratchCreateResponse>;
|
|
32
34
|
private clientSecretPrompt;
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.secretTimeout = void 0;
|
|
10
|
-
const fs = require("fs");
|
|
11
|
-
const kit_1 = require("@salesforce/kit");
|
|
12
10
|
const core_1 = require("@salesforce/core");
|
|
13
11
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
12
|
+
const kit_1 = require("@salesforce/kit");
|
|
13
|
+
const scratchOrgRequest_1 = require("../../../shared/scratchOrgRequest");
|
|
14
14
|
const scratchOrgOutput_1 = require("../../../shared/scratchOrgOutput");
|
|
15
15
|
core_1.Messages.importMessagesDirectory(__dirname);
|
|
16
16
|
const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'create_scratch');
|
|
@@ -23,30 +23,7 @@ class EnvCreateScratch extends sf_plugins_core_1.SfCommand {
|
|
|
23
23
|
if (!baseUrl) {
|
|
24
24
|
throw new core_1.SfError('No instance URL found for the dev hub');
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
...(flags['definition-file']
|
|
28
|
-
? JSON.parse(await fs.promises.readFile(flags['definition-file'], 'utf-8'))
|
|
29
|
-
: {}),
|
|
30
|
-
...(flags.edition ? { edition: flags.edition } : {}),
|
|
31
|
-
...(flags.username ? { username: flags.username } : {}),
|
|
32
|
-
...(flags.description ? { description: flags.description } : {}),
|
|
33
|
-
...(flags.name ? { orgName: flags.name } : {}),
|
|
34
|
-
...(flags.release ? { release: flags.release } : {}),
|
|
35
|
-
};
|
|
36
|
-
const createCommandOptions = {
|
|
37
|
-
hubOrg: flags['target-dev-hub'],
|
|
38
|
-
clientSecret: flags['client-id'] ? await this.clientSecretPrompt() : undefined,
|
|
39
|
-
connectedAppConsumerKey: flags['client-id'],
|
|
40
|
-
durationDays: flags['duration-days'].days,
|
|
41
|
-
nonamespace: flags['no-namespace'],
|
|
42
|
-
noancestors: flags['no-ancestors'],
|
|
43
|
-
wait: flags.async ? kit_1.Duration.minutes(0) : flags.wait,
|
|
44
|
-
apiversion: flags['api-version'],
|
|
45
|
-
orgConfig,
|
|
46
|
-
alias: flags.alias,
|
|
47
|
-
setDefault: flags['set-default'],
|
|
48
|
-
tracksSource: flags['track-source'],
|
|
49
|
-
};
|
|
26
|
+
const createCommandOptions = await (0, scratchOrgRequest_1.buildScratchOrgRequest)(flags, flags['client-id'] ? await this.clientSecretPrompt() : undefined);
|
|
50
27
|
let lastStatus;
|
|
51
28
|
if (!flags.async) {
|
|
52
29
|
lifecycle.on(core_1.scratchOrgLifecycleEventName, async (data) => {
|
|
@@ -155,7 +132,7 @@ EnvCreateScratch.flags = {
|
|
|
155
132
|
}),
|
|
156
133
|
'duration-days': sf_plugins_core_1.Flags.duration({
|
|
157
134
|
unit: 'days',
|
|
158
|
-
|
|
135
|
+
default: kit_1.Duration.days(7),
|
|
159
136
|
min: 1,
|
|
160
137
|
max: 30,
|
|
161
138
|
char: 'y',
|
|
@@ -164,7 +141,7 @@ EnvCreateScratch.flags = {
|
|
|
164
141
|
}),
|
|
165
142
|
wait: sf_plugins_core_1.Flags.duration({
|
|
166
143
|
unit: 'minutes',
|
|
167
|
-
|
|
144
|
+
default: kit_1.Duration.minutes(5),
|
|
168
145
|
min: 2,
|
|
169
146
|
char: 'w',
|
|
170
147
|
helpValue: '<minutes>',
|
|
@@ -198,5 +175,13 @@ EnvCreateScratch.flags = {
|
|
|
198
175
|
description: messages.getMessage('flags.release.description'),
|
|
199
176
|
options: ['preview', 'previous'],
|
|
200
177
|
}),
|
|
178
|
+
'admin-email': sf_plugins_core_1.Flags.string({
|
|
179
|
+
summary: messages.getMessage('flags.adminEmail.summary'),
|
|
180
|
+
}),
|
|
181
|
+
'source-org': sf_plugins_core_1.Flags.salesforceId({
|
|
182
|
+
summary: messages.getMessage('flags.sourceOrg.summary'),
|
|
183
|
+
startsWith: '00D',
|
|
184
|
+
length: 15,
|
|
185
|
+
}),
|
|
201
186
|
};
|
|
202
187
|
//# sourceMappingURL=scratch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scratch.js","sourceRoot":"","sources":["../../../../src/commands/org/create/scratch.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"scratch.js","sourceRoot":"","sources":["../../../../src/commands/org/create/scratch.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2CAQ0B;AAC1B,iEAA+D;AAC/D,yCAA2C;AAC3C,yEAA2E;AAC3E,uEAA+D;AAE/D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;AAEtE,QAAA,aAAa,GAAG,KAAK,CAAC;AAEnC,MAAqB,gBAAiB,SAAQ,2BAAgC;IAiHrE,KAAK,CAAC,GAAG;QACd,MAAM,SAAS,GAAG,gBAAS,CAAC,WAAW,EAAE,CAAC;QAC1C,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QACrD,MAAM,OAAO,GAAG,KAAK,CAAC,gBAAgB,CAAC,CAAC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D,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE,EAAE;KACX,CAAC;CACH,CAAC"}
|
|
@@ -8,8 +8,8 @@ export type OrgListResult = {
|
|
|
8
8
|
export declare class OrgListCommand extends SfCommand<OrgListResult> {
|
|
9
9
|
static readonly summary: string;
|
|
10
10
|
static readonly examples: string[];
|
|
11
|
-
static aliases: string[];
|
|
12
|
-
static deprecateAliases
|
|
11
|
+
static readonly aliases: string[];
|
|
12
|
+
static readonly deprecateAliases = true;
|
|
13
13
|
static readonly flags: {
|
|
14
14
|
verbose: Interfaces.BooleanFlag<boolean>;
|
|
15
15
|
all: Interfaces.BooleanFlag<boolean>;
|
package/lib/commands/org/list.js
CHANGED
|
@@ -57,10 +57,11 @@ class OrgListCommand extends sf_plugins_core_1.SfCommand {
|
|
|
57
57
|
await org.remove();
|
|
58
58
|
}
|
|
59
59
|
catch (e) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
this.warn(messages.getMessage('cleanWarning', [fields.username, this.config.bin, fields.username]));
|
|
61
|
+
if (e instanceof Error) {
|
|
62
|
+
const logger = await core_1.Logger.child('org:list');
|
|
63
|
+
logger.debug(`Error cleaning org ${fields.username}: ${e.message}`);
|
|
64
|
+
}
|
|
64
65
|
}
|
|
65
66
|
}));
|
|
66
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/org/list.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iEAAyE;AACzE,2CAAsH;AAEtH,0DAAkF;AAClF,gEAA8D;AAG9D,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;AAMzE,MAAa,cAAe,SAAQ,2BAAwB;IAgCnD,KAAK,CAAC,GAAG;QACd,MAAM,CAAC,EAAE,KAAK,E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C;IACxE,OAAO,kBAAkB,KAAK,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AACtG,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,KAAK,IAAuB,EAAE;IACrD,IAAI;QACF,OAAO,CAAC,CAAC,MAAM,eAAQ,CAAC,qBAAqB,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACtF;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,KAAK,GAAG,GAAc,CAAC;QAC7B,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB,EAAE;YACpC,MAAM,IAAI,cAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,aAAa,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC;SAClH;aAAM;YACL,MAAM,KAAK,CAAC;SACb;KACF;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Interfaces } from '@oclif/core';
|
|
2
|
+
import { ScratchOrgCreateOptions } from '@salesforce/core';
|
|
3
|
+
import { Duration } from '@salesforce/kit';
|
|
4
|
+
import EnvCreateScratch from '../commands/org/create/scratch';
|
|
5
|
+
/**
|
|
6
|
+
* Provide the parsed flags
|
|
7
|
+
* Returns the objet necessary to create a scratch org
|
|
8
|
+
*/
|
|
9
|
+
export declare const buildScratchOrgRequest: (flags: {
|
|
10
|
+
alias: string | undefined;
|
|
11
|
+
async: boolean;
|
|
12
|
+
'set-default': boolean;
|
|
13
|
+
'definition-file': string | undefined;
|
|
14
|
+
'target-dev-hub': import("@salesforce/core").Org;
|
|
15
|
+
'no-ancestors': boolean;
|
|
16
|
+
edition: string | undefined;
|
|
17
|
+
'no-namespace': boolean;
|
|
18
|
+
'duration-days': Duration;
|
|
19
|
+
wait: Duration;
|
|
20
|
+
'api-version': string | undefined;
|
|
21
|
+
'client-id': string | undefined;
|
|
22
|
+
'track-source': boolean;
|
|
23
|
+
username: string | undefined;
|
|
24
|
+
description: string | undefined;
|
|
25
|
+
name: string | undefined;
|
|
26
|
+
release: string | undefined;
|
|
27
|
+
'admin-email': string | undefined;
|
|
28
|
+
'source-org': string | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
json: boolean | undefined;
|
|
31
|
+
}, clientSecret?: string) => Promise<ScratchOrgCreateOptions>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2023, 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.buildScratchOrgRequest = void 0;
|
|
10
|
+
const fs = require("fs");
|
|
11
|
+
const kit_1 = require("@salesforce/kit");
|
|
12
|
+
/**
|
|
13
|
+
* Provide the parsed flags
|
|
14
|
+
* Returns the objet necessary to create a scratch org
|
|
15
|
+
*/
|
|
16
|
+
const buildScratchOrgRequest = async (flags, clientSecret) => {
|
|
17
|
+
const orgConfig = {
|
|
18
|
+
...(flags['definition-file']
|
|
19
|
+
? JSON.parse(await fs.promises.readFile(flags['definition-file'], 'utf-8'))
|
|
20
|
+
: {}),
|
|
21
|
+
...(flags.edition ? { edition: flags.edition } : {}),
|
|
22
|
+
...(flags.username ? { username: flags.username } : {}),
|
|
23
|
+
...(flags.description ? { description: flags.description } : {}),
|
|
24
|
+
...(flags.name ? { orgName: flags.name } : {}),
|
|
25
|
+
...(flags.release ? { release: flags.release } : {}),
|
|
26
|
+
...(flags['source-org'] ? { sourceOrg: flags['source-org'] } : {}),
|
|
27
|
+
...(flags['admin-email'] ? { adminEmail: flags['admin-email'] } : {}),
|
|
28
|
+
};
|
|
29
|
+
const createCommandOptions = {
|
|
30
|
+
hubOrg: flags['target-dev-hub'],
|
|
31
|
+
clientSecret,
|
|
32
|
+
connectedAppConsumerKey: flags['client-id'],
|
|
33
|
+
durationDays: flags['duration-days'].days,
|
|
34
|
+
nonamespace: flags['no-namespace'],
|
|
35
|
+
noancestors: flags['no-ancestors'],
|
|
36
|
+
wait: flags.async ? kit_1.Duration.minutes(0) : flags.wait,
|
|
37
|
+
apiversion: flags['api-version'],
|
|
38
|
+
orgConfig,
|
|
39
|
+
alias: flags.alias,
|
|
40
|
+
setDefault: flags['set-default'],
|
|
41
|
+
tracksSource: flags['track-source'],
|
|
42
|
+
};
|
|
43
|
+
return createCommandOptions;
|
|
44
|
+
};
|
|
45
|
+
exports.buildScratchOrgRequest = buildScratchOrgRequest;
|
|
46
|
+
//# sourceMappingURL=scratchOrgRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scratchOrgRequest.js","sourceRoot":"","sources":["../../src/shared/scratchOrgRequest.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AAGzB,yCAA2C;AAE3C;;;GAGG;AACI,MAAM,sBAAsB,GAAG,KAAK,EACzC,KAA8D,EAC9D,YAAqB,EACa,EAAE;IACpC,MAAM,SAAS,GAAG;QAChB,GAAG,CAAC,KAAK,CAAC,iBAAiB,CAAC;YAC1B,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAA6B;YACxG,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,C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AAU,EAAE,KAAK,CAAC,aAAa,CAAC;QAChC,SAAS;QACT,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC;QAChC,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC;KACpC,CAAC;IAEF,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CAAC;AAjCW,QAAA,sBAAsB,0BAiCjC"}
|
package/messages/clone.md
CHANGED
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Clone a sandbox org.
|
|
4
4
|
|
|
5
|
-
# success
|
|
6
|
-
|
|
7
|
-
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.
|
|
8
|
-
|
|
9
5
|
# description
|
|
10
6
|
|
|
11
7
|
There 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 to set the names of the new sandbox and the one being cloned, respectively.
|
|
@@ -44,7 +40,7 @@ Sets the streaming client socket timeout, in minutes. If the streaming client so
|
|
|
44
40
|
|
|
45
41
|
# commandSuccess
|
|
46
42
|
|
|
47
|
-
The sandbox org cloning process %s is in progress. Run "
|
|
43
|
+
The sandbox org cloning process %s is in progress. Run "%s 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.
|
|
48
44
|
|
|
49
45
|
# commandOrganizationTypeNotSupport
|
|
50
46
|
|
package/messages/create.md
CHANGED
|
@@ -36,10 +36,6 @@ Alias for the created org.
|
|
|
36
36
|
|
|
37
37
|
Path to an org definition file.
|
|
38
38
|
|
|
39
|
-
# flags.definitionJson
|
|
40
|
-
|
|
41
|
-
Org definition in JSON format.
|
|
42
|
-
|
|
43
39
|
# flags.noNamespace
|
|
44
40
|
|
|
45
41
|
Create the scratch org with no namespace.
|
|
@@ -48,10 +44,6 @@ Create the scratch org with no namespace.
|
|
|
48
44
|
|
|
49
45
|
Do not include second-generation package ancestors in the scratch org.
|
|
50
46
|
|
|
51
|
-
# flags.env
|
|
52
|
-
|
|
53
|
-
Environment where the scratch org is created: %s.
|
|
54
|
-
|
|
55
47
|
# flags.type
|
|
56
48
|
|
|
57
49
|
Type of org to create.
|
|
@@ -98,19 +90,19 @@ One cannot use flag retry with Sandbox org create.
|
|
|
98
90
|
|
|
99
91
|
# sandboxSuccess
|
|
100
92
|
|
|
101
|
-
The sandbox org creation process %s is in progress. Run "
|
|
93
|
+
The sandbox org creation process %s is in progress. Run "%s force:org:status -n %s -u %s" to check for status. If the org is ready, checking the status also authorizes the org for use with Salesforce CLI.
|
|
102
94
|
|
|
103
95
|
# requiresUsername
|
|
104
96
|
|
|
105
|
-
This command requires a username. Specify it with the -u parameter or with the "
|
|
97
|
+
This command requires a username. Specify it with the -u parameter or with the "%s config set defaultusername=<username>" command.
|
|
106
98
|
|
|
107
99
|
# dnsTimeout
|
|
108
100
|
|
|
109
|
-
The sandbox was successfully created and authenticated. However, the sandbox DNS records aren't ready yet and so the sandbox may not be available. Run "org:list" and check if the sandbox is listed correctly. If it isn't listed, run "force:org:status" to view its status and, if necessary, authenticate to it again. If this issue happens frequently, try setting the SFDX_DNS_TIMEOUT environment variable to a larger number; the default value is 3 seconds.
|
|
101
|
+
The sandbox was successfully created and authenticated. However, the sandbox DNS records aren't ready yet and so the sandbox may not be available. Run "%s org:list" and check if the sandbox is listed correctly. If it isn't listed, run "%s force:org:status" to view its status and, if necessary, authenticate to it again. If this issue happens frequently, try setting the SFDX_DNS_TIMEOUT environment variable to a larger number; the default value is 3 seconds.
|
|
110
102
|
|
|
111
103
|
# partialSuccess
|
|
112
104
|
|
|
113
|
-
If you specified the -a or -s parameters, but the sandbox wasn't immediately available, the "force:org:create" command may not have finished setting the alias or defaultusername. If so, set the alias manually with "
|
|
105
|
+
If you specified the -a or -s parameters, but the sandbox wasn't immediately available, the "%s force:org:create" command may not have finished setting the alias or defaultusername. If so, set the alias manually with "%s alias:set" and the defaultusername with "%s config:set".
|
|
114
106
|
|
|
115
107
|
# noConfig
|
|
116
108
|
|
|
@@ -102,10 +102,6 @@ To disable source tracking in the new sandbox, specify the --no-track-source fla
|
|
|
102
102
|
|
|
103
103
|
Is the configuration correct?
|
|
104
104
|
|
|
105
|
-
# warning.NoSandboxNameDefined
|
|
106
|
-
|
|
107
|
-
No SandboxName defined, generating new SandboxName: %s.
|
|
108
|
-
|
|
109
105
|
# error.SandboxNameLength
|
|
110
106
|
|
|
111
107
|
The sandbox name "%s" should be 10 or fewer characters.
|
|
@@ -13,6 +13,8 @@ For either method, you can also use these flags; if you use them with --definiti
|
|
|
13
13
|
* --username
|
|
14
14
|
* --release
|
|
15
15
|
* --edition
|
|
16
|
+
* --admin-email (equivalent to the "adminEmail" option)
|
|
17
|
+
* --source-org (equivalent to the "sourceOrg" option)
|
|
16
18
|
|
|
17
19
|
If you want to set options other than the preceding ones, such as org features or settings, you must use a definition file.
|
|
18
20
|
|
|
@@ -84,6 +86,14 @@ The scratch org definition file is a blueprint for the scratch org. It mimics th
|
|
|
84
86
|
|
|
85
87
|
Consumer key of the Dev Hub connected app.
|
|
86
88
|
|
|
89
|
+
# flags.adminEmail.summary
|
|
90
|
+
|
|
91
|
+
Email address that will be applied to the org's admin user. Overrides the value of the "adminEmail" option in the definition file, if set.
|
|
92
|
+
|
|
93
|
+
# flags.sourceOrg.summary
|
|
94
|
+
|
|
95
|
+
15-character ID of the org whose shape the new scratch org will be based on. Overrides the value of the "sourceOrg" option in the definition file, if set.
|
|
96
|
+
|
|
87
97
|
# flags.wait.summary
|
|
88
98
|
|
|
89
99
|
Number of minutes to wait for the scratch org to be ready.
|
package/messages/list.md
CHANGED
package/messages/messages.md
CHANGED
|
@@ -1,81 +1,5 @@
|
|
|
1
|
-
# HelpDefaults
|
|
2
|
-
|
|
3
|
-
If not supplied, the apiversion, template, and outputdir use default values.
|
|
4
|
-
|
|
5
|
-
# HelpOutputDirRelative
|
|
6
|
-
|
|
7
|
-
The outputdir can be an absolute path or relative to the current working directory.
|
|
8
|
-
|
|
9
|
-
# HelpOutputDirRelativeLightning
|
|
10
|
-
|
|
11
|
-
If you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.
|
|
12
|
-
|
|
13
|
-
# HelpExamplesTitle
|
|
14
|
-
|
|
15
|
-
Examples:
|
|
16
|
-
|
|
17
|
-
# OutputDirFlagDescription
|
|
18
|
-
|
|
19
|
-
folder for saving the created files
|
|
20
|
-
|
|
21
|
-
# OutputDirFlagLongDescription
|
|
22
|
-
|
|
23
|
-
The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.
|
|
24
|
-
|
|
25
|
-
# TemplateFlagDescription
|
|
26
|
-
|
|
27
|
-
template to use for file creation
|
|
28
|
-
|
|
29
|
-
# TemplateFlagLongDescription
|
|
30
|
-
|
|
31
|
-
The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.
|
|
32
|
-
|
|
33
|
-
# TargetDirOutput
|
|
34
|
-
|
|
35
|
-
target dir = %s
|
|
36
|
-
|
|
37
|
-
# App
|
|
38
|
-
|
|
39
|
-
app
|
|
40
|
-
|
|
41
|
-
# Event
|
|
42
|
-
|
|
43
|
-
event
|
|
44
|
-
|
|
45
|
-
# Interface
|
|
46
|
-
|
|
47
|
-
interface
|
|
48
|
-
|
|
49
|
-
# Test
|
|
50
|
-
|
|
51
|
-
test
|
|
52
|
-
|
|
53
|
-
# Component
|
|
54
|
-
|
|
55
|
-
component
|
|
56
|
-
|
|
57
|
-
# Page
|
|
58
|
-
|
|
59
|
-
page
|
|
60
|
-
|
|
61
|
-
# AlphaNumericNameError
|
|
62
|
-
|
|
63
|
-
Name must contain only alphanumeric characters.
|
|
64
|
-
|
|
65
|
-
# NameMustStartWithLetterError
|
|
66
|
-
|
|
67
|
-
Name must start with a letter.
|
|
68
|
-
|
|
69
|
-
# EndWithUnderscoreError
|
|
70
|
-
|
|
71
|
-
Name can't end with an underscore.
|
|
72
|
-
|
|
73
|
-
# DoubleUnderscoreError
|
|
74
|
-
|
|
75
|
-
Name can't contain 2 consecutive underscores.
|
|
76
|
-
|
|
77
1
|
# SecurityWarning
|
|
78
2
|
|
|
79
3
|
This command will expose sensitive information that allows for subsequent activity using your current authenticated session.
|
|
80
4
|
Sharing this information is equivalent to logging someone in under the current credential, resulting in unintended access and escalation of privilege.
|
|
81
|
-
For additional information, please review the authorization section of the https://developer.salesforce.com/docs/atlas.en-us.234.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm
|
|
5
|
+
For additional information, please review the authorization section of the https://developer.salesforce.com/docs/atlas.en-us.234.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm
|
package/messages/open.md
CHANGED
|
@@ -67,7 +67,3 @@ Waiting to resolve the Lightning Experience-enabled custom domain...
|
|
|
67
67
|
# domainTimeoutError
|
|
68
68
|
|
|
69
69
|
The Lightning Experience-enabled custom domain is unavailable.
|
|
70
|
-
|
|
71
|
-
# domainTimeoutAction
|
|
72
|
-
|
|
73
|
-
The Lightning Experience-enabled custom domain may take a few more minutes to resolve. Try the "org:open" command again.
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
2
|
+
"version": "2.9.0",
|
|
3
3
|
"commands": {
|
|
4
4
|
"org:display": {
|
|
5
5
|
"id": "org:display",
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
"org:create:scratch": {
|
|
876
876
|
"id": "org:create:scratch",
|
|
877
877
|
"summary": "Create a scratch org.",
|
|
878
|
-
"description": "There are two ways to create a scratch org: either specify a definition file that contains the options or use the --edition flag to specify the one required option.\n\nFor either method, you can also use these flags; if you use them with --definition-file, they override their equivalent option in the scratch org definition file:\n\n * --description\n * --name (equivalent to the \"orgName\" option)\n * --username\n * --release\n * --edition\n\nIf you want to set options other than the preceding ones, such as org features or settings, you must use a definition file.\n\nYou must specify a Dev Hub to create a scratch org, either with the --target-dev-hub flag or by setting your default Dev Hub with the target-dev-hub configuration variable.",
|
|
878
|
+
"description": "There are two ways to create a scratch org: either specify a definition file that contains the options or use the --edition flag to specify the one required option.\n\nFor either method, you can also use these flags; if you use them with --definition-file, they override their equivalent option in the scratch org definition file:\n\n * --description\n * --name (equivalent to the \"orgName\" option)\n * --username\n * --release\n * --edition\n * --admin-email (equivalent to the \"adminEmail\" option)\n * --source-org (equivalent to the \"sourceOrg\" option)\n\nIf you want to set options other than the preceding ones, such as org features or settings, you must use a definition file.\n\nYou must specify a Dev Hub to create a scratch org, either with the --target-dev-hub flag or by setting your default Dev Hub with the target-dev-hub configuration variable.",
|
|
879
879
|
"strict": true,
|
|
880
880
|
"pluginName": "@salesforce/plugin-org",
|
|
881
881
|
"pluginAlias": "@salesforce/plugin-org",
|
|
@@ -1063,6 +1063,21 @@
|
|
|
1063
1063
|
"previous"
|
|
1064
1064
|
],
|
|
1065
1065
|
"deprecateAliases": true
|
|
1066
|
+
},
|
|
1067
|
+
"admin-email": {
|
|
1068
|
+
"name": "admin-email",
|
|
1069
|
+
"type": "option",
|
|
1070
|
+
"summary": "Email address that will be applied to the org's admin user. Overrides the value of the \"adminEmail\" option in the definition file, if set.",
|
|
1071
|
+
"multiple": false,
|
|
1072
|
+
"deprecateAliases": true
|
|
1073
|
+
},
|
|
1074
|
+
"source-org": {
|
|
1075
|
+
"name": "source-org",
|
|
1076
|
+
"type": "option",
|
|
1077
|
+
"char": "i",
|
|
1078
|
+
"summary": "15-character ID of the org whose shape the new scratch org will be based on. Overrides the value of the \"sourceOrg\" option in the definition file, if set.",
|
|
1079
|
+
"multiple": false,
|
|
1080
|
+
"deprecateAliases": true
|
|
1066
1081
|
}
|
|
1067
1082
|
},
|
|
1068
1083
|
"args": {},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-org",
|
|
3
3
|
"description": "Commands to interact with Salesforce orgs",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.9.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
237
|
"sfdx": {
|
|
238
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.
|
|
239
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.
|
|
238
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.9.0.crt",
|
|
239
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.9.0.sig"
|
|
240
240
|
}
|
|
241
241
|
}
|