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
+44-4Lines changed: 44 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,17 @@ Create a scratch org.
4
4
5
5
# description
6
6
7
-
There are two ways to create a scratch org: specify a definition file that contains the options or use the --edition flag to specify the one required option. If you want to set options other than the edition, such as org features or settings, you must use a definition file.
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.
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:
10
+
11
+
* --description
12
+
* --name (equivalent to the "orgName" option)
13
+
* --username
14
+
* --release
15
+
* --edition
16
+
17
+
If you want to set options other than the preceding ones, such as org features or settings, you must use a definition file.
8
18
9
19
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.
10
20
@@ -14,9 +24,13 @@ You must specify a Dev Hub to create a scratch org, either with the --target-dev
- Specify the Dev Hub using its alias and a scratch org definition file. Set the scratch org as your default and specify that it expires in 3 days:
27
+
- Create a scratch org with a definition file. Specify the Dev Hub using its alias, set the scratch org as your default, and specify that it expires in 3 days:
@@ -44,7 +58,7 @@ Don't include second-generation managed package (2GP) ancestors in the scratch o
44
58
45
59
# flags.edition.summary
46
60
47
-
Salesforce edition of the scratch org.
61
+
Salesforce edition of the scratch org. Overrides the value of the "edition" option in the definition file, if set.
48
62
49
63
# flags.async.summary
50
64
@@ -96,6 +110,32 @@ Create the scratch org with no namespace, even if the Dev Hub has a namespace.
96
110
97
111
Number of days before the org expires.
98
112
113
+
# flags.username.summary
114
+
115
+
Username of the scratch org admin user. Overrides the value of the "username" option in the definition file, if set.
116
+
117
+
# flags.username.description
118
+
119
+
The username must be unique within the entire scratch org and sandbox universe. You must add your own logic to ensure uniqueness.
120
+
121
+
Omit this flag to have Salesforce generate a unique username for your org.
122
+
123
+
# flags.description.summary
124
+
125
+
Description of the scratch org in the Dev Hub. Overrides the value of the "description" option in the definition file, if set.
126
+
127
+
# flags.name.summary
128
+
129
+
Name of the org, such as "Acme Company". Overrides the value of the "orgName" option in the definition file, if set.
130
+
131
+
# flags.release.summary
132
+
133
+
Release of the scratch org as compared to the Dev Hub release.
134
+
135
+
# flags.release.description
136
+
137
+
By default, scratch orgs are on the same release as the Dev Hub. During Salesforce release transition periods, you can override this default behavior and opt in or out of the new release.
138
+
99
139
# prompt.secret
100
140
101
141
OAuth client secret of your personal connected app
0 commit comments