@salesforce/plugin-org 5.2.42 → 5.3.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/README.md +55 -27
- package/lib/commands/org/create/scratch.d.ts +1 -0
- package/lib/commands/org/create/scratch.js +10 -0
- package/lib/commands/org/create/scratch.js.map +1 -1
- package/lib/shared/scratchOrgRequest.js +1 -0
- package/lib/shared/scratchOrgRequest.js.map +1 -1
- package/messages/create_scratch.md +27 -6
- package/oclif.manifest.json +578 -554
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -242,7 +242,7 @@ FLAG DESCRIPTIONS
|
|
|
242
242
|
You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
|
|
243
243
|
```
|
|
244
244
|
|
|
245
|
-
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
245
|
+
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/create/sandbox.ts)_
|
|
246
246
|
|
|
247
247
|
## `sf org create scratch`
|
|
248
248
|
|
|
@@ -251,9 +251,9 @@ Create a scratch org.
|
|
|
251
251
|
```
|
|
252
252
|
USAGE
|
|
253
253
|
$ sf org create scratch -v <value> [--json] [--flags-dir <value>] [-a <value>] [--async] [-d] [-f <value>] [-c] [-e
|
|
254
|
-
developer|enterprise|group|professional|partner-developer|partner-enterprise|partner-group|partner-professional
|
|
255
|
-
[-m] [-y <days>] [-w <minutes>] [--api-version <value>] [-i <value>] [-t]
|
|
256
|
-
<value>] [--name <value>] [--release preview|previous] [--admin-email <value>]
|
|
254
|
+
developer|enterprise|group|professional|partner-developer|partner-enterprise|partner-group|partner-professional | -s
|
|
255
|
+
<value> | --source-org <value>] [-m] [-y <days>] [-w <minutes>] [--api-version <value>] [-i <value>] [-t]
|
|
256
|
+
[--username <value>] [--description <value>] [--name <value>] [--release preview|previous] [--admin-email <value>]
|
|
257
257
|
|
|
258
258
|
FLAGS
|
|
259
259
|
-a, --alias=<value> Alias for the scratch org.
|
|
@@ -277,6 +277,8 @@ DEFINITION FILE OVERRIDE FLAGS
|
|
|
277
277
|
definition file, if set.
|
|
278
278
|
<options: developer|enterprise|group|professional|partner-developer|partner-enterprise|part
|
|
279
279
|
ner-group|partner-professional>
|
|
280
|
+
-s, --snapshot=<value> Name of the snapshot to use when creating this scratch org. Overrides the value of the
|
|
281
|
+
"snapshot" option in the defintion file, if set.
|
|
280
282
|
--admin-email=<value> Email address that will be applied to the org's admin user. Overrides the value of the
|
|
281
283
|
"adminEmail" option in the definition file, if set.
|
|
282
284
|
--description=<value> Description of the scratch org in the Dev Hub. Overrides the value of the "description"
|
|
@@ -285,8 +287,8 @@ DEFINITION FILE OVERRIDE FLAGS
|
|
|
285
287
|
definition file, if set.
|
|
286
288
|
--release=<option> Release of the scratch org as compared to the Dev Hub release.
|
|
287
289
|
<options: preview|previous>
|
|
288
|
-
--source-org=<value> 15-character ID of the org
|
|
289
|
-
|
|
290
|
+
--source-org=<value> 15-character ID of the org shape that the new scratch org is based on. Overrides the value
|
|
291
|
+
of the "sourceOrg" option in the definition file, if set.
|
|
290
292
|
--username=<value> Username of the scratch org admin user. Overrides the value of the "username" option in the
|
|
291
293
|
definition file, if set.
|
|
292
294
|
|
|
@@ -297,22 +299,28 @@ GLOBAL FLAGS
|
|
|
297
299
|
DESCRIPTION
|
|
298
300
|
Create a scratch org.
|
|
299
301
|
|
|
300
|
-
There are
|
|
301
|
-
--edition flag to specify the one required option.
|
|
302
|
+
There are four ways to create a scratch org:
|
|
302
303
|
|
|
303
|
-
|
|
304
|
+
* Specify a definition file that contains the scratch org options.
|
|
305
|
+
* Use the --edition flag to specify the one required option; this method doesn't require a defintion file.
|
|
306
|
+
* Use the --snapshot flag to create a scratch org from a snapshot. Snapshots are a point-in-time copy of a scratch
|
|
307
|
+
org; you create a snapshot with the "sf org create snapshot" command.
|
|
308
|
+
* Use the --source-org flag to create a scratch org from an org shape. Org shapes mimic the baseline setup of a source
|
|
309
|
+
org without the extraneous data and metadata; you create an org shape with the "sf org create shape" command.
|
|
310
|
+
|
|
311
|
+
The --edition, --snapshot, and --source-org flags are mutually exclusive, which means if you specify one, you can't
|
|
312
|
+
also specify the others.
|
|
313
|
+
|
|
314
|
+
For any of the methods, you can also use these flags; if you use them with --definition-file, they override their
|
|
304
315
|
equivalent option in the scratch org definition file:
|
|
305
316
|
|
|
306
317
|
* --description
|
|
307
318
|
* --name (equivalent to the "orgName" option)
|
|
308
319
|
* --username
|
|
309
320
|
* --release
|
|
310
|
-
* --edition
|
|
311
321
|
* --admin-email (equivalent to the "adminEmail" option)
|
|
312
|
-
* --source-org (equivalent to the "sourceOrg" option)
|
|
313
322
|
|
|
314
|
-
If you want to set options
|
|
315
|
-
file.
|
|
323
|
+
If you want to set options such as org features or settings, you must use a definition file.
|
|
316
324
|
|
|
317
325
|
You must specify a Dev Hub to create a scratch org, either with the --target-dev-hub flag or by setting your default
|
|
318
326
|
Dev Hub with the target-dev-hub configuration variable.
|
|
@@ -335,6 +343,12 @@ EXAMPLES
|
|
|
335
343
|
|
|
336
344
|
$ sf org create scratch --edition enterprise --alias my-scratch-org --target-dev-hub MyHub --release preview
|
|
337
345
|
|
|
346
|
+
Create a scratch org from a snapshot called "NightlyBranch"; be sure you specify the same Dev Hub org associated
|
|
347
|
+
with the snapshot. We recommend you increase the --wait time because creating a scratch org from a snapshot can take
|
|
348
|
+
a while:
|
|
349
|
+
|
|
350
|
+
$ sf org create scratch --alias my-scratch-org --target-dev-hub MyHub --snapshot NightlyBranch --wait 10
|
|
351
|
+
|
|
338
352
|
FLAG DESCRIPTIONS
|
|
339
353
|
-a, --alias=<value> Alias for the scratch org.
|
|
340
354
|
|
|
@@ -355,6 +369,13 @@ FLAG DESCRIPTIONS
|
|
|
355
369
|
<https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file.htm> for
|
|
356
370
|
all the option you can specify in the definition file.
|
|
357
371
|
|
|
372
|
+
-s, --snapshot=<value>
|
|
373
|
+
|
|
374
|
+
Name of the snapshot to use when creating this scratch org. Overrides the value of the "snapshot" option in the
|
|
375
|
+
defintion file, if set.
|
|
376
|
+
|
|
377
|
+
To view the names of the available snapshots for a given Dev Hub org, run the "sf org list snapshot" command.
|
|
378
|
+
|
|
358
379
|
-t, --[no-]track-source Use source tracking for this scratch org. Set --no-track-source to disable source tracking.
|
|
359
380
|
|
|
360
381
|
We recommend you enable source tracking in scratch orgs, which is why it's the default behavior. Source tracking
|
|
@@ -386,6 +407,13 @@ FLAG DESCRIPTIONS
|
|
|
386
407
|
By default, scratch orgs are on the same release as the Dev Hub. During Salesforce release transition periods, you
|
|
387
408
|
can override this default behavior and opt in or out of the new release.
|
|
388
409
|
|
|
410
|
+
--source-org=<value>
|
|
411
|
+
|
|
412
|
+
15-character ID of the org shape that the new scratch org is based on. Overrides the value of the "sourceOrg" option
|
|
413
|
+
in the definition file, if set.
|
|
414
|
+
|
|
415
|
+
To view the names of the available org shapes for a given Dev Hub org, run the "sf org list shape" command.
|
|
416
|
+
|
|
389
417
|
--username=<value>
|
|
390
418
|
|
|
391
419
|
Username of the scratch org admin user. Overrides the value of the "username" option in the definition file, if set.
|
|
@@ -396,7 +424,7 @@ FLAG DESCRIPTIONS
|
|
|
396
424
|
Omit this flag to have Salesforce generate a unique username for your org.
|
|
397
425
|
```
|
|
398
426
|
|
|
399
|
-
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
427
|
+
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/create/scratch.ts)_
|
|
400
428
|
|
|
401
429
|
## `sf org delete sandbox`
|
|
402
430
|
|
|
@@ -442,7 +470,7 @@ EXAMPLES
|
|
|
442
470
|
$ sf org delete sandbox --target-org my-sandbox --no-prompt
|
|
443
471
|
```
|
|
444
472
|
|
|
445
|
-
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
473
|
+
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/delete/sandbox.ts)_
|
|
446
474
|
|
|
447
475
|
## `sf org delete scratch`
|
|
448
476
|
|
|
@@ -486,7 +514,7 @@ EXAMPLES
|
|
|
486
514
|
$ sf org delete scratch --target-org my-scratch-org --no-prompt
|
|
487
515
|
```
|
|
488
516
|
|
|
489
|
-
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
517
|
+
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/delete/scratch.ts)_
|
|
490
518
|
|
|
491
519
|
## `sf org disable tracking`
|
|
492
520
|
|
|
@@ -525,7 +553,7 @@ EXAMPLES
|
|
|
525
553
|
$ sf org disable tracking
|
|
526
554
|
```
|
|
527
555
|
|
|
528
|
-
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
556
|
+
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/disable/tracking.ts)_
|
|
529
557
|
|
|
530
558
|
## `sf org display`
|
|
531
559
|
|
|
@@ -570,7 +598,7 @@ EXAMPLES
|
|
|
570
598
|
$ sf org display --target-org TestOrg1 --verbose
|
|
571
599
|
```
|
|
572
600
|
|
|
573
|
-
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
601
|
+
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/display.ts)_
|
|
574
602
|
|
|
575
603
|
## `sf org enable tracking`
|
|
576
604
|
|
|
@@ -612,7 +640,7 @@ EXAMPLES
|
|
|
612
640
|
$ sf org enable tracking
|
|
613
641
|
```
|
|
614
642
|
|
|
615
|
-
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
643
|
+
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/enable/tracking.ts)_
|
|
616
644
|
|
|
617
645
|
## `sf org list`
|
|
618
646
|
|
|
@@ -651,7 +679,7 @@ EXAMPLES
|
|
|
651
679
|
$ sf org list --clean
|
|
652
680
|
```
|
|
653
681
|
|
|
654
|
-
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
682
|
+
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/list.ts)_
|
|
655
683
|
|
|
656
684
|
## `sf org list metadata`
|
|
657
685
|
|
|
@@ -718,7 +746,7 @@ FLAG DESCRIPTIONS
|
|
|
718
746
|
Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
|
|
719
747
|
```
|
|
720
748
|
|
|
721
|
-
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
749
|
+
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/list/metadata.ts)_
|
|
722
750
|
|
|
723
751
|
## `sf org list metadata-types`
|
|
724
752
|
|
|
@@ -773,7 +801,7 @@ FLAG DESCRIPTIONS
|
|
|
773
801
|
Override the api version used for api requests made by this command
|
|
774
802
|
```
|
|
775
803
|
|
|
776
|
-
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
804
|
+
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/list/metadata-types.ts)_
|
|
777
805
|
|
|
778
806
|
## `sf org open`
|
|
779
807
|
|
|
@@ -849,7 +877,7 @@ EXAMPLES
|
|
|
849
877
|
$ sf org open --source-file force-app/main/default/bots/Coral_Cloud_Agent/Coral_Cloud_Agent.bot-meta.xml
|
|
850
878
|
```
|
|
851
879
|
|
|
852
|
-
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
880
|
+
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/open.ts)_
|
|
853
881
|
|
|
854
882
|
## `sf org open agent`
|
|
855
883
|
|
|
@@ -900,7 +928,7 @@ EXAMPLES
|
|
|
900
928
|
$ sf org open agent --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent
|
|
901
929
|
```
|
|
902
930
|
|
|
903
|
-
_See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
931
|
+
_See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/open/agent.ts)_
|
|
904
932
|
|
|
905
933
|
## `sf org refresh sandbox`
|
|
906
934
|
|
|
@@ -977,7 +1005,7 @@ FLAG DESCRIPTIONS
|
|
|
977
1005
|
By default, a sandbox auto-activates after a refresh. Use this flag to control sandbox activation manually.
|
|
978
1006
|
```
|
|
979
1007
|
|
|
980
|
-
_See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
1008
|
+
_See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/refresh/sandbox.ts)_
|
|
981
1009
|
|
|
982
1010
|
## `sf org resume sandbox`
|
|
983
1011
|
|
|
@@ -1040,7 +1068,7 @@ FLAG DESCRIPTIONS
|
|
|
1040
1068
|
returns the job ID. To resume checking the sandbox creation, rerun this command.
|
|
1041
1069
|
```
|
|
1042
1070
|
|
|
1043
|
-
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
1071
|
+
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/resume/sandbox.ts)_
|
|
1044
1072
|
|
|
1045
1073
|
## `sf org resume scratch`
|
|
1046
1074
|
|
|
@@ -1087,6 +1115,6 @@ FLAG DESCRIPTIONS
|
|
|
1087
1115
|
The job ID is valid for 24 hours after you start the scratch org creation.
|
|
1088
1116
|
```
|
|
1089
1117
|
|
|
1090
|
-
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.
|
|
1118
|
+
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/resume/scratch.ts)_
|
|
1091
1119
|
|
|
1092
1120
|
<!-- commandsstop -->
|
|
@@ -16,6 +16,7 @@ export default class OrgCreateScratch extends SfCommand<ScratchCreateResponse> {
|
|
|
16
16
|
'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
17
|
'no-ancestors': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
18
|
edition: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
snapshot: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
20
|
'no-namespace': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
21
|
'duration-days': import("@oclif/core/interfaces").OptionFlag<Duration, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
22
|
wait: import("@oclif/core/interfaces").OptionFlag<Duration, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -65,6 +65,7 @@ export default class OrgCreateScratch extends SfCommand {
|
|
|
65
65
|
'partner-group',
|
|
66
66
|
'partner-professional',
|
|
67
67
|
],
|
|
68
|
+
exclusive: ['snapshot', 'source-org'],
|
|
68
69
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
69
70
|
parse: async (value) => {
|
|
70
71
|
// the API expects partner editions in `partner <EDITION>` format.
|
|
@@ -76,6 +77,13 @@ export default class OrgCreateScratch extends SfCommand {
|
|
|
76
77
|
},
|
|
77
78
|
helpGroup: definitionFileHelpGroupName,
|
|
78
79
|
}),
|
|
80
|
+
snapshot: Flags.string({
|
|
81
|
+
char: 's',
|
|
82
|
+
summary: messages.getMessage('flags.snapshot.summary'),
|
|
83
|
+
description: messages.getMessage('flags.snapshot.description'),
|
|
84
|
+
exclusive: ['edition', 'source-org'],
|
|
85
|
+
helpGroup: definitionFileHelpGroupName,
|
|
86
|
+
}),
|
|
79
87
|
'no-namespace': Flags.boolean({
|
|
80
88
|
char: 'm',
|
|
81
89
|
summary: messages.getMessage('flags.no-namespace.summary'),
|
|
@@ -136,6 +144,8 @@ export default class OrgCreateScratch extends SfCommand {
|
|
|
136
144
|
}),
|
|
137
145
|
'source-org': Flags.salesforceId({
|
|
138
146
|
summary: messages.getMessage('flags.source-org.summary'),
|
|
147
|
+
description: messages.getMessage('flags.source-org.description'),
|
|
148
|
+
exclusive: ['edition', 'snapshot'],
|
|
139
149
|
startsWith: '00D',
|
|
140
150
|
length: 15,
|
|
141
151
|
helpGroup: definitionFileHelpGroupName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scratch.js","sourceRoot":"","sources":["../../../../src/commands/org/create/scratch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,SAAS,EACT,QAAQ,EACR,GAAG,EACH,gBAAgB,EAEhB,4BAA4B,EAC5B,yBAAyB,EACzB,OAAO,GACR,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAG9E,QAAQ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C,KAAK,CAAC,GAAG,cAAc,IAAI,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YAC7E,CAAC;iBAAM,CAAC;gBACN,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;IACH,CAAC"}
|
|
@@ -16,6 +16,7 @@ export const buildScratchOrgRequest = async (flags, clientSecret) => {
|
|
|
16
16
|
? JSON.parse(await fs.promises.readFile(flags['definition-file'], 'utf-8'))
|
|
17
17
|
: {}),
|
|
18
18
|
...(flags.edition ? { edition: flags.edition } : {}),
|
|
19
|
+
...(flags.snapshot ? { snapshot: flags.snapshot } : {}),
|
|
19
20
|
...(flags.username ? { username: flags.username } : {}),
|
|
20
21
|
...(flags.description ? { description: flags.description } : {}),
|
|
21
22
|
...(flags.name ? { orgName: flags.name } : {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scratchOrgRequest.js","sourceRoot":"","sources":["../../src/shared/scratchOrgRequest.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AAGzB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"scratchOrgRequest.js","sourceRoot":"","sources":["../../src/shared/scratchOrgRequest.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AAGzB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C;;;GAGG;AAEH,MAAM,CAAC,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,iBAA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AAC,WAAW,CAAC;QAC3C,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,IAAI;QACzC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC;QAClC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC;QAClC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI;QACpD,UAAU,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"}
|
|
@@ -4,19 +4,24 @@ Create a scratch org.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
There are
|
|
7
|
+
There are four ways to create a scratch org:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
* Specify a definition file that contains the scratch org options.
|
|
10
|
+
* Use the --edition flag to specify the one required option; this method doesn't require a defintion file.
|
|
11
|
+
* Use the --snapshot flag to create a scratch org from a snapshot. Snapshots are a point-in-time copy of a scratch org; you create a snapshot with the "sf org create snapshot" command.
|
|
12
|
+
* Use the --source-org flag to create a scratch org from an org shape. Org shapes mimic the baseline setup of a source org without the extraneous data and metadata; you create an org shape with the "sf org create shape" command.
|
|
13
|
+
|
|
14
|
+
The --edition, --snapshot, and --source-org flags are mutually exclusive, which means if you specify one, you can't also specify the others.
|
|
15
|
+
|
|
16
|
+
For any of the methods, you can also use these flags; if you use them with --definition-file, they override their equivalent option in the scratch org definition file:
|
|
10
17
|
|
|
11
18
|
* --description
|
|
12
19
|
* --name (equivalent to the "orgName" option)
|
|
13
20
|
* --username
|
|
14
21
|
* --release
|
|
15
|
-
* --edition
|
|
16
22
|
* --admin-email (equivalent to the "adminEmail" option)
|
|
17
|
-
* --source-org (equivalent to the "sourceOrg" option)
|
|
18
23
|
|
|
19
|
-
If you want to set options
|
|
24
|
+
If you want to set options such as org features or settings, you must use a definition file.
|
|
20
25
|
|
|
21
26
|
You 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.
|
|
22
27
|
|
|
@@ -34,6 +39,10 @@ You must specify a Dev Hub to create a scratch org, either with the --target-dev
|
|
|
34
39
|
|
|
35
40
|
<%= config.bin %> <%= command.id %> --edition enterprise --alias my-scratch-org --target-dev-hub MyHub --release preview
|
|
36
41
|
|
|
42
|
+
- Create a scratch org from a snapshot called "NightlyBranch"; be sure you specify the same Dev Hub org associated with the snapshot. We recommend you increase the --wait time because creating a scratch org from a snapshot can take a while:
|
|
43
|
+
|
|
44
|
+
<%= config.bin %> <%= command.id %> --alias my-scratch-org --target-dev-hub MyHub --snapshot NightlyBranch --wait 10
|
|
45
|
+
|
|
37
46
|
# flags.target-dev-hub.summary
|
|
38
47
|
|
|
39
48
|
Username or alias of the Dev Hub org.
|
|
@@ -62,6 +71,14 @@ Don't include second-generation managed package (2GP) ancestors in the scratch o
|
|
|
62
71
|
|
|
63
72
|
Salesforce edition of the scratch org. Overrides the value of the "edition" option in the definition file, if set.
|
|
64
73
|
|
|
74
|
+
# flags.snapshot.summary
|
|
75
|
+
|
|
76
|
+
Name of the snapshot to use when creating this scratch org. Overrides the value of the "snapshot" option in the defintion file, if set.
|
|
77
|
+
|
|
78
|
+
# flags.snapshot.description
|
|
79
|
+
|
|
80
|
+
To view the names of the available snapshots for a given Dev Hub org, run the "sf org list snapshot" command.
|
|
81
|
+
|
|
65
82
|
# flags.async.summary
|
|
66
83
|
|
|
67
84
|
Request the org, but don't wait for it to complete.
|
|
@@ -92,7 +109,11 @@ Email address that will be applied to the org's admin user. Overrides the value
|
|
|
92
109
|
|
|
93
110
|
# flags.source-org.summary
|
|
94
111
|
|
|
95
|
-
15-character ID of the org
|
|
112
|
+
15-character ID of the org shape that the new scratch org is based on. Overrides the value of the "sourceOrg" option in the definition file, if set.
|
|
113
|
+
|
|
114
|
+
# flags.source-org.description
|
|
115
|
+
|
|
116
|
+
To view the names of the available org shapes for a given Dev Hub org, run the "sf org list shape" command.
|
|
96
117
|
|
|
97
118
|
# flags.wait.summary
|
|
98
119
|
|