You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: messages/create_scratch.md
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,24 @@ Create a scratch org.
4
4
5
5
# description
6
6
7
-
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.
7
+
There are four ways to create a scratch org:
8
8
9
-
For 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:
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 other than the preceding ones, such as org features or settings, you must use a definition file.
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
- 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:
@@ -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 whose shape the new scratch org will be based on. Overrides the value of the "sourceOrg" option in the definition file, if set.
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.
0 commit comments