@salesforce/plugin-org 3.5.0 → 3.5.1

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 CHANGED
@@ -99,908 +99,8 @@ the [SandboxNuts](https://github.com/salesforcecli/plugin-org/actions/workflows/
99
99
 
100
100
  <!-- commands -->
101
101
 
102
- - [`sf org create sandbox`](#sf-org-create-sandbox)
103
- - [`sf org create scratch`](#sf-org-create-scratch)
104
- - [`sf org delete sandbox`](#sf-org-delete-sandbox)
105
- - [`sf org delete scratch`](#sf-org-delete-scratch)
106
- - [`sf org disable tracking`](#sf-org-disable-tracking)
107
- - [`sf org display`](#sf-org-display)
108
- - [`sf org enable tracking`](#sf-org-enable-tracking)
109
- - [`sf org list`](#sf-org-list)
110
- - [`sf org list metadata`](#sf-org-list-metadata)
111
- - [`sf org list metadata-types`](#sf-org-list-metadata-types)
112
- - [`sf org open`](#sf-org-open)
113
- - [`sf org refresh sandbox`](#sf-org-refresh-sandbox)
114
- - [`sf org resume sandbox`](#sf-org-resume-sandbox)
115
- - [`sf org resume scratch`](#sf-org-resume-scratch)
102
+ # Command Topics
116
103
 
117
- ## `sf org create sandbox`
118
-
119
- Create a sandbox org.
120
-
121
- ```
122
- USAGE
123
- $ sf org create sandbox -o <value> [--json] [-f <value>] [-s] [-a <value>] [-w <value> | --async] [-i <value> | ] [-n
124
- <value>] [-c <value> | -l Developer|Developer_Pro|Partial|Full] [--no-prompt] [--no-track-source]
125
-
126
- FLAGS
127
- -a, --alias=<value> Alias for the sandbox org.
128
- -c, --clone=<value> Name of the sandbox org to clone.
129
- -f, --definition-file=<value> Path to a sandbox definition file.
130
- -i, --poll-interval=<seconds> [default: 30 seconds] Number of seconds to wait between retries.
131
- -l, --license-type=<option> Type of sandbox license.
132
- <options: Developer|Developer_Pro|Partial|Full>
133
- -n, --name=<value> Name of the sandbox org.
134
- -o, --target-org=<value> (required) Username or alias of the production org that contains the sandbox license.
135
- -s, --set-default Set the sandbox org as your default org.
136
- -w, --wait=<minutes> [default: 30 minutes] Number of minutes to wait for the sandbox org to be ready.
137
- --async Request the sandbox creation, but don't wait for it to complete.
138
- --no-prompt Don't prompt for confirmation about the sandbox configuration.
139
- --no-track-source Do not use source tracking for this sandbox.
140
-
141
- GLOBAL FLAGS
142
- --json Format output as json.
143
-
144
- DESCRIPTION
145
- Create a sandbox org.
146
-
147
- There are two ways to create a sandbox org: specify a definition file that contains the sandbox options or use the
148
- --name and --license-type flags to specify the two required options. If you want to set an option other than name or
149
- license type, such as apexClassId, you must use a definition file.
150
-
151
- You can also use this command to clone an existing sandbox. Use the --clone flag to specify the existing sandbox name
152
- and the --name flag to the name of the new sandbox.
153
-
154
- ALIASES
155
- $ sf env create sandbox
156
-
157
- EXAMPLES
158
- Create a sandbox org using a definition file and give it the alias "MyDevSandbox". The production org that contains
159
- the sandbox license has the alias "prodOrg".
160
-
161
- $ sf org create sandbox --definition-file config/dev-sandbox-def.json --alias MyDevSandbox --target-org prodOrg
162
-
163
- Create a sandbox org by directly specifying its name and type of license (Developer) instead of using a definition
164
- file. Set the sandbox org as your default.
165
-
166
- $ sf org create sandbox --name mysandbox --license-type Developer --alias MyDevSandbox --target-org prodOrg \
167
- --set-default
168
-
169
- Clone the existing sandbox with name "ExistingSandbox" and name the new sandbox "NewClonedSandbox". Set the new
170
- sandbox as your default org. Wait for 30 minutes for the sandbox creation to complete.
171
-
172
- $ sf org create sandbox --clone ExistingSandbox --name NewClonedSandbox --target-org prodOrg --alias \
173
- MyDevSandbox --set-default --wait 30
174
-
175
- FLAG DESCRIPTIONS
176
- -a, --alias=<value> Alias for the sandbox org.
177
-
178
- When you create a sandbox, the generated usernames are based on the usernames present in the production org. To
179
- ensure uniqueness, the new usernames are appended with the name of the sandbox. For example, the username
180
- "user@example.com" in the production org results in the username "user@example.com.mysandbox" in a sandbox named
181
- "mysandbox". When you set an alias for a sandbox org, it's assigned to the resulting username of the user running
182
- this command.
183
-
184
- -c, --clone=<value> Name of the sandbox org to clone.
185
-
186
- The value of --clone must be an existing sandbox. The existing sandbox, and the new sandbox specified with the
187
- --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
188
-
189
- -f, --definition-file=<value> Path to a sandbox definition file.
190
-
191
- The sandbox definition file is a blueprint for the sandbox. You can create different definition files for each
192
- sandbox type that you use in the development process. See
193
- <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm> for all
194
- the options you can specify in the definition file.
195
-
196
- -n, --name=<value> Name of the sandbox org.
197
-
198
- The name must be a unique alphanumeric string (10 or fewer characters) to identify the sandbox. You can’t reuse a
199
- name while a sandbox is in the process of being deleted.
200
-
201
- -o, --target-org=<value> Username or alias of the production org that contains the sandbox license.
202
-
203
- When it creates the sandbox org, Salesforce copies the metadata, and optionally data, from your production org to
204
- the new sandbox org.
205
-
206
- -w, --wait=<minutes> Number of minutes to wait for the sandbox org to be ready.
207
-
208
- If the command continues to run after the wait period, the CLI returns control of the terminal to you and displays
209
- the "sf org resume sandbox" command you run to check the status of the create. The displayed command includes the
210
- job ID for the running sandbox creation.
211
-
212
- --async Request the sandbox creation, but don't wait for it to complete.
213
-
214
- The command immediately displays the job ID and returns control of the terminal to you. This way, you can continue
215
- to use the CLI. To check the status of the sandbox creation, run "sf org resume sandbox".
216
-
217
- --no-track-source Do not use source tracking for this sandbox.
218
-
219
- We recommend you enable source tracking in Developer and Developer Pro sandbox, which is why it's the default
220
- behavior. Source tracking allows you to track the changes you make to your metadata, both in your local project and
221
- in the sandbox, and to detect any conflicts between the two.
222
-
223
- To disable source tracking in the new sandbox, specify the --no-track-source flag. The main reason to disable source
224
- tracking is for performance. For example, while you probably want to deploy metadata and run Apex tests in your
225
- CI/CD jobs, you probably don't want to incur the costs of source tracking (checking for conflicts, polling the
226
- SourceMember object, various file system operations.) This is a good use case for disabling source tracking in the
227
- sandbox.
228
- ```
229
-
230
- _See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/create/sandbox.ts)_
231
-
232
- ## `sf org create scratch`
233
-
234
- Create a scratch org.
235
-
236
- ```
237
- USAGE
238
- $ sf org create scratch -v <value> [--json] [-a <value>] [--async] [-d] [-f <value>] [-c] [-e
239
- developer|enterprise|group|professional|partner-developer|partner-enterprise|partner-group|partner-professional]
240
- [-m] [-y <value>] [-w <value>] [--api-version <value>] [-i <value>] [-t] [--username <value>] [--description
241
- <value>] [--name <value>] [--release preview|previous] [--admin-email <value>] [--source-org <value>]
242
-
243
- FLAGS
244
- -a, --alias=<value> Alias for the scratch org.
245
- -d, --set-default Set the scratch org as your default org
246
- -f, --definition-file=<value> Path to a scratch org definition file.
247
- -i, --client-id=<value> Consumer key of the Dev Hub connected app.
248
- -t, --[no-]track-source Use source tracking for this scratch org. Set --no-track-source to disable source
249
- tracking.
250
- -v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org.
251
- -w, --wait=<minutes> [default: 5 minutes] Number of minutes to wait for the scratch org to be ready.
252
- -y, --duration-days=<days> [default: 7 days] Number of days before the org expires.
253
- --api-version=<value> Override the api version used for api requests made by this command
254
- --async Request the org, but don't wait for it to complete.
255
-
256
- PACKAGING FLAGS
257
- -c, --no-ancestors Don't include second-generation managed package (2GP) ancestors in the scratch org.
258
- -m, --no-namespace Create the scratch org with no namespace, even if the Dev Hub has a namespace.
259
-
260
- DEFINITION FILE OVERRIDE FLAGS
261
- -e, --edition=<option> Salesforce edition of the scratch org. Overrides the value of the "edition" option in the
262
- definition file, if set.
263
- <options: developer|enterprise|group|professional|partner-developer|partner-enterprise|part
264
- ner-group|partner-professional>
265
- --admin-email=<value> Email address that will be applied to the org's admin user. Overrides the value of the
266
- "adminEmail" option in the definition file, if set.
267
- --description=<value> Description of the scratch org in the Dev Hub. Overrides the value of the "description"
268
- option in the definition file, if set.
269
- --name=<value> Name of the org, such as "Acme Company". Overrides the value of the "orgName" option in the
270
- definition file, if set.
271
- --release=<option> Release of the scratch org as compared to the Dev Hub release.
272
- <options: preview|previous>
273
- --source-org=<value> 15-character ID of the org whose shape the new scratch org will be based on. Overrides the
274
- value of the "sourceOrg" option in the definition file, if set.
275
- --username=<value> Username of the scratch org admin user. Overrides the value of the "username" option in the
276
- definition file, if set.
277
-
278
- GLOBAL FLAGS
279
- --json Format output as json.
280
-
281
- DESCRIPTION
282
- Create a scratch org.
283
-
284
- There are two ways to create a scratch org: either specify a definition file that contains the options or use the
285
- --edition flag to specify the one required option.
286
-
287
- For either method, you can also use these flags; if you use them with --definition-file, they override their
288
- equivalent option in the scratch org definition file:
289
-
290
- * --description
291
- * --name (equivalent to the "orgName" option)
292
- * --username
293
- * --release
294
- * --edition
295
- * --admin-email (equivalent to the "adminEmail" option)
296
- * --source-org (equivalent to the "sourceOrg" option)
297
-
298
- If you want to set options other than the preceding ones, such as org features or settings, you must use a definition
299
- file.
300
-
301
- You must specify a Dev Hub to create a scratch org, either with the --target-dev-hub flag or by setting your default
302
- Dev Hub with the target-dev-hub configuration variable.
303
-
304
- ALIASES
305
- $ sf env create scratch
306
-
307
- EXAMPLES
308
- Create a Developer edition scratch org using your default Dev Hub and give the scratch org an alias:
309
-
310
- $ sf org create scratch --edition developer --alias my-scratch-org
311
-
312
- Create a scratch org with a definition file. Specify the Dev Hub using its alias, set the scratch org as your
313
- default, and specify that it expires in 3 days:
314
-
315
- $ sf org create scratch --target-dev-hub MyHub --definition-file config/project-scratch-def.json --set-default \
316
- --duration-days 3
317
-
318
- Create a preview Enterprise edition scratch org; for use only during Salesforce release transition periods:
319
-
320
- $ sf org create scratch --edition enterprise --alias my-scratch-org --target-dev-hub MyHub --release preview
321
-
322
- FLAG DESCRIPTIONS
323
- -a, --alias=<value> Alias for the scratch org.
324
-
325
- New scratch orgs include one administrator by default. The admin user's username is auto-generated and looks
326
- something like test-wvkpnfm5z113@example.com. When you set an alias for a new scratch org, it's assigned this
327
- username.
328
-
329
- -e, --edition=developer|enterprise|group|professional|partner-developer|partner-enterprise|partner-group|partner-professional
330
-
331
- Salesforce edition of the scratch org. Overrides the value of the "edition" option in the definition file, if set.
332
-
333
- The editions that begin with "partner-" are available only if the Dev Hub org is a Partner Business Org.
334
-
335
- -f, --definition-file=<value> Path to a scratch org definition file.
336
-
337
- The scratch org definition file is a blueprint for the scratch org. It mimics the shape of an org that you use in
338
- the development life cycle, such as acceptance testing, packaging, or production. See
339
- <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file.htm> for
340
- all the option you can specify in the definition file.
341
-
342
- -t, --[no-]track-source Use source tracking for this scratch org. Set --no-track-source to disable source tracking.
343
-
344
- We recommend you enable source tracking in scratch orgs, which is why it's the default behavior. Source tracking
345
- allows you to track the changes you make to your metadata, both in your local project and in the scratch org, and to
346
- detect any conflicts between the two.
347
-
348
- To disable source tracking in the new scratch org, specify the --no-track-source flag. The main reason to disable
349
- source tracking is for performance. For example, while you probably want to deploy metadata and run Apex tests in
350
- your CI/CD jobs, you probably don't want to incur the costs of source tracking (checking for conflicts, polling the
351
- SourceMember object, various file system operations.) This is a good use case for disabling source tracking in the
352
- scratch org.
353
-
354
- -v, --target-dev-hub=<value> Username or alias of the Dev Hub org.
355
-
356
- Overrides the value of the target-dev-hub configuration variable, if set.
357
-
358
- -w, --wait=<minutes> Number of minutes to wait for the scratch org to be ready.
359
-
360
- If the command continues to run after the wait period, the CLI returns control of the terminal to you and displays
361
- the job ID. To resume the scratch org creation, run the org resume scratch command and pass it the job ID.
362
-
363
- --async Request the org, but don't wait for it to complete.
364
-
365
- The command immediately displays the job ID and returns control of the terminal to you. This way, you can continue
366
- to use the CLI. To resume the scratch org creation, run "sf org resume scratch".
367
-
368
- --release=preview|previous Release of the scratch org as compared to the Dev Hub release.
369
-
370
- By default, scratch orgs are on the same release as the Dev Hub. During Salesforce release transition periods, you
371
- can override this default behavior and opt in or out of the new release.
372
-
373
- --username=<value>
374
-
375
- Username of the scratch org admin user. Overrides the value of the "username" option in the definition file, if set.
376
-
377
- The username must be unique within the entire scratch org and sandbox universe. You must add your own logic to
378
- ensure uniqueness.
379
-
380
- Omit this flag to have Salesforce generate a unique username for your org.
381
- ```
382
-
383
- _See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/create/scratch.ts)_
384
-
385
- ## `sf org delete sandbox`
386
-
387
- Delete a sandbox.
388
-
389
- ```
390
- USAGE
391
- $ sf org delete sandbox -o <value> [--json] [-p]
392
-
393
- FLAGS
394
- -o, --target-org=<value> (required) Sandbox alias or login user.
395
- -p, --no-prompt Don't prompt the user to confirm the deletion.
396
-
397
- GLOBAL FLAGS
398
- --json Format output as json.
399
-
400
- DESCRIPTION
401
- Delete a sandbox.
402
-
403
- Salesforce CLI marks the org for deletion in the production org that contains the sandbox licenses and then deletes
404
- all local references to the org from your computer.
405
- Specify a sandbox with either the username you used when you logged into it, or the alias you gave the sandbox when
406
- you created it. Run "sf org list" to view all your orgs, including sandboxes, and their aliases.
407
- Both the sandbox and the associated production org must already be authenticated with the CLI to successfully delete
408
- the sandbox.
409
-
410
- ALIASES
411
- $ sf env delete sandbox
412
-
413
- EXAMPLES
414
- Delete a sandbox with alias my-sandbox:
415
-
416
- $ sf org delete sandbox --target-org my-sandbox
417
-
418
- Specify a username instead of an alias:
419
-
420
- $ sf org delete sandbox --target-org myusername@example.com.qa
421
-
422
- Delete the sandbox without prompting to confirm:
423
-
424
- $ sf org delete sandbox --target-org my-sandbox --no-prompt
425
- ```
426
-
427
- _See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/delete/sandbox.ts)_
428
-
429
- ## `sf org delete scratch`
430
-
431
- Delete a scratch org.
432
-
433
- ```
434
- USAGE
435
- $ sf org delete scratch -o <value> [--json] [-p]
436
-
437
- FLAGS
438
- -o, --target-org=<value> (required) Scratch org alias or login user.
439
- -p, --no-prompt Don't prompt the user to confirm the deletion.
440
-
441
- GLOBAL FLAGS
442
- --json Format output as json.
443
-
444
- DESCRIPTION
445
- Delete a scratch org.
446
-
447
- Salesforce CLI marks the org for deletion in the Dev Hub org and then deletes all local references to the org from
448
- your computer.
449
- Specify a scratch org with either the username or the alias you gave the scratch org when you created it. Run "sf org
450
- list" to view all your orgs, including scratch orgs, and their aliases.
451
-
452
- ALIASES
453
- $ sf env delete scratch
454
-
455
- EXAMPLES
456
- Delete a scratch org with alias my-scratch-org:
457
-
458
- $ sf org delete scratch --target-org my-scratch-org
459
-
460
- Specify a username instead of an alias:
461
-
462
- $ sf org delete scratch --target-org test-123456-abcdefg@example.com
463
-
464
- Delete the scratch org without prompting to confirm :
465
-
466
- $ sf org delete scratch --target-org my-scratch-org --no-prompt
467
- ```
468
-
469
- _See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/delete/scratch.ts)_
470
-
471
- ## `sf org disable tracking`
472
-
473
- Prevent Salesforce CLI from tracking changes in your source files between your project and an org.
474
-
475
- ```
476
- USAGE
477
- $ sf org disable tracking -o <value> [--json]
478
-
479
- FLAGS
480
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
481
- configuration variable is already set.
482
-
483
- GLOBAL FLAGS
484
- --json Format output as json.
485
-
486
- DESCRIPTION
487
- Prevent Salesforce CLI from tracking changes in your source files between your project and an org.
488
-
489
- Disabling source tracking has no direct effect on the org, it affects only your local environment. Specifically,
490
- Salesforce CLI stores the setting in the org's local configuration file so that no source tracking operations are
491
- executed when working with the org.
492
-
493
- EXAMPLES
494
- Disable source tracking for an org with alias "myscratch":
495
-
496
- $ sf org disable tracking --target-org myscratch
497
-
498
- Disable source tracking for an org using a username:
499
-
500
- $ sf org disable tracking --target-org you@example.com
501
-
502
- Disable source tracking for your default org:
503
-
504
- $ sf org disable tracking
505
- ```
506
-
507
- _See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/disable/tracking.ts)_
508
-
509
- ## `sf org display`
510
-
511
- Display information about an org.
512
-
513
- ```
514
- USAGE
515
- $ sf org display -o <value> [--json] [--api-version <value>] [--verbose]
516
-
517
- FLAGS
518
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
519
- configuration variable is already set.
520
- --api-version=<value> Override the api version used for api requests made by this command
521
- --verbose Display the sfdxAuthUrl property.
522
-
523
- GLOBAL FLAGS
524
- --json Format output as json.
525
-
526
- DESCRIPTION
527
- Display information about an org.
528
-
529
- Output includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if
530
- applicable.
531
-
532
- Use --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a
533
- refresh token that can be used to access an org. Don't share or distribute this URL or token.
534
-
535
- Including --verbose displays the sfdxAuthUrl property only if you authenticated to the org using "org login web" (not
536
- "org login jwt").
537
-
538
- ALIASES
539
- $ sf force org display
540
-
541
- EXAMPLES
542
- Display information about your default org:
543
-
544
- $ sf org display
545
-
546
- Display information, including the sfdxAuthUrl property, about the org with alias TestOrg1:
547
-
548
- $ sf org display --target-org TestOrg1 --verbose
549
- ```
550
-
551
- _See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/display.ts)_
552
-
553
- ## `sf org enable tracking`
554
-
555
- Allow Salesforce CLI to track changes in your source files between your project and an org.
556
-
557
- ```
558
- USAGE
559
- $ sf org enable tracking -o <value> [--json]
560
-
561
- FLAGS
562
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
563
- configuration variable is already set.
564
-
565
- GLOBAL FLAGS
566
- --json Format output as json.
567
-
568
- DESCRIPTION
569
- Allow Salesforce CLI to track changes in your source files between your project and an org.
570
-
571
- Enabling source tracking has no direct effect on the org, it affects only your local environment. Specifically,
572
- Salesforce CLI stores the setting in the org's local configuration file so that source tracking operations are
573
- executed when working with the org.
574
-
575
- This command throws an error if the org doesn't support tracking. Examples of orgs that don't support source tracking
576
- include Developer Edition orgs, production orgs, Partial Copy sandboxes, and Full sandboxes.
577
-
578
- EXAMPLES
579
- Enable source tracking for an org with alias "myscratch":
580
-
581
- $ sf org enable tracking --target-org myscratch
582
-
583
- Enable source tracking for an org using a username:
584
-
585
- $ sf org enable tracking --target-org you@example.com
586
-
587
- Enable source tracking for your default org:
588
-
589
- $ sf org enable tracking
590
- ```
591
-
592
- _See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/enable/tracking.ts)_
593
-
594
- ## `sf org list`
595
-
596
- List all orgs you’ve created or authenticated to.
597
-
598
- ```
599
- USAGE
600
- $ sf org list [--json] [--verbose] [--all] [-p --clean] [--skip-connection-status]
601
-
602
- FLAGS
603
- -p, --no-prompt Don't prompt for confirmation.
604
- --all Include expired, deleted, and unknown-status scratch orgs.
605
- --clean Remove all local org authorizations for non-active scratch orgs. Use "org logout" to
606
- remove non-scratch orgs.
607
- --skip-connection-status Skip retrieving the connection status of non-scratch orgs.
608
- --verbose List more information about each org.
609
-
610
- GLOBAL FLAGS
611
- --json Format output as json.
612
-
613
- ALIASES
614
- $ sf force org list
615
-
616
- EXAMPLES
617
- List all orgs you've created or authenticated to:
618
-
619
- $ sf org list
620
-
621
- List all orgs, including expired, deleted, and unknown-status orgs; don't include the connection status:
622
-
623
- $ sf org list --skip-connection-status --all
624
-
625
- List orgs and remove local org authorization info about non-active scratch orgs:
626
-
627
- $ sf org list --clean
628
- ```
629
-
630
- _See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/list.ts)_
631
-
632
- ## `sf org list metadata`
633
-
634
- List the metadata components and properties of a specified type.
635
-
636
- ```
637
- USAGE
638
- $ sf org list metadata -o <value> -m <value> [--json] [--api-version <value>] [-f <value>] [--folder <value>]
639
-
640
- FLAGS
641
- -f, --output-file=<value> Pathname of the file in which to write the results.
642
- -m, --metadata-type=<value> (required) Metadata type to be retrieved, such as CustomObject; metadata type names are
643
- case-sensitive.
644
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
645
- configuration variable is already set.
646
- --api-version=<value> API version to use; default is the most recent API version.
647
- --folder=<value> Folder associated with the component; required for components that use folders; folder
648
- names are case-sensitive.
649
-
650
- GLOBAL FLAGS
651
- --json Format output as json.
652
-
653
- DESCRIPTION
654
- List the metadata components and properties of a specified type.
655
-
656
- Use this command to identify individual components in your manifest file or if you want a high-level view of
657
- particular metadata types in your org. For example, you can use this command to return a list of names of all the
658
- CustomObject or Layout components in your org, then use this information in a retrieve command that returns a subset
659
- of these components.
660
-
661
- The username that you use to connect to the org must have the Modify All Data or Modify Metadata Through Metadata API
662
- Functions permission.
663
-
664
- ALIASES
665
- $ sf force mdapi listmetadata
666
-
667
- EXAMPLES
668
- List the CustomObject components, and their properties, in the org with alias "my-dev-org":
669
-
670
- $ sf org list metadata --metadata-type CustomObject --target-org my-dev-org
671
-
672
- List the CustomObject components in your default org, write the output to the specified file, and use API version
673
- 57.0:
674
-
675
- $ sf org list metadata --metadata-type CustomObject --api-version 57.0 --output-file /path/to/outputfilename.txt
676
-
677
- List the Dashboard components in your default org that are contained in the "folderSales" folder, write the output
678
- to the specified file, and use API version 57.0:
679
-
680
- $ sf org list metadata --metadata-type Dashboard --folder folderSales --api-version 57.0 --output-file \
681
- /path/to/outputfilename.txt
682
-
683
- FLAG DESCRIPTIONS
684
- --api-version=<value> API version to use; default is the most recent API version.
685
-
686
- Override the api version used for api requests made by this command
687
-
688
- --folder=<value>
689
-
690
- Folder associated with the component; required for components that use folders; folder names are case-sensitive.
691
-
692
- Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
693
- ```
694
-
695
- _See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/list/metadata.ts)_
696
-
697
- ## `sf org list metadata-types`
698
-
699
- Display details about the metadata types that are enabled for your org.
700
-
701
- ```
702
- USAGE
703
- $ sf org list metadata-types -o <value> [--json] [--api-version <value>] [-f <value>]
704
-
705
- FLAGS
706
- -f, --output-file=<value> Pathname of the file in which to write the results.
707
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
708
- configuration variable is already set.
709
- --api-version=<value> API version to use; default is the most recent API version.
710
-
711
- GLOBAL FLAGS
712
- --json Format output as json.
713
-
714
- DESCRIPTION
715
- Display details about the metadata types that are enabled for your org.
716
-
717
- The information includes Apex classes and triggers, custom objects, custom fields on standard objects, tab sets that
718
- define an app, and many other metadata types. Use this information to identify the syntax needed for a <name> element
719
- in a manifest file (package.xml).
720
-
721
- The username that you use to connect to the org must have the Modify All Data or Modify Metadata Through Metadata API
722
- Functions permission.
723
-
724
- ALIASES
725
- $ sf force mdapi describemetadata
726
-
727
- EXAMPLES
728
- Display information about all known and enabled metadata types in the org with alias "my-dev-org" using API version
729
- 57.0:
730
-
731
- $ sf org list metadata-types --api-version 57.0 --target-org my-dev-org
732
-
733
- Display only the metadata types that aren't yet supported by Salesforce CLI in your default org and write the
734
- results to the specified file:
735
-
736
- $ sf org list metadata-types --output-file /path/to/outputfilename.txt --filter-known
737
-
738
- FLAG DESCRIPTIONS
739
- -f, --output-file=<value> Pathname of the file in which to write the results.
740
-
741
- Directing the output to a file makes it easier to extract relevant information for your package.xml manifest file.
742
- The default output destination is the terminal or command window console.
743
-
744
- --api-version=<value> API version to use; default is the most recent API version.
745
-
746
- Override the api version used for api requests made by this command
747
- ```
748
-
749
- _See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/list/metadata-types.ts)_
750
-
751
- ## `sf org open`
752
-
753
- Open your default scratch org, or another specified org, in a browser.
754
-
755
- ```
756
- USAGE
757
- $ sf org open -o <value> [--json] [--api-version <value>] [--private | -r | -b chrome|edge|firefox] [-p
758
- <value> | -f <value>]
759
-
760
- FLAGS
761
- -b, --browser=<option> Browser where the org opens.
762
- <options: chrome|edge|firefox>
763
- -f, --source-file=<value> Path to an ApexPage or FlexiPage to open in Lightning App Builder.
764
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
765
- configuration variable is already set.
766
- -p, --path=<value> Navigation URL path to open a specific page.
767
- -r, --url-only Display navigation URL, but don’t launch browser.
768
- --api-version=<value> Override the api version used for api requests made by this command
769
- --private Open the org in the default browser using private (incognito) mode.
770
-
771
- GLOBAL FLAGS
772
- --json Format output as json.
773
-
774
- DESCRIPTION
775
- Open your default scratch org, or another specified org, in a browser.
776
-
777
- To open a specific page, specify the portion of the URL after "https://mydomain.my.salesforce.com" as the value for
778
- the --path flag. For example, specify "--path lightning" to open Lightning Experience, or specify "--path
779
- /apex/YourPage" to open a Visualforce page.
780
-
781
- Use the --source-file to open a Lightning Page from your local project in Lightning App Builder. Lightning page files
782
- have the suffix .flexipage-meta.xml, and are stored in the "flexipages" directory.
783
-
784
- To generate a URL but not launch it in your browser, specify --url-only.
785
-
786
- To open in a specific browser, use the --browser flag. Supported browsers are "chrome", "edge", and "firefox". If you
787
- don't specify --browser, the org opens in your default browser.
788
-
789
- ALIASES
790
- $ sf force org open
791
- $ sf force source open
792
-
793
- EXAMPLES
794
- Open your default org in your default browser:
795
-
796
- $ sf org open
797
-
798
- Open your default org in an incognito window of your default browser:
799
-
800
- $ sf org open --private
801
-
802
- Open the org with alias MyTestOrg1 in the Firefox browser:
803
-
804
- $ sf org open --target-org MyTestOrg1 --browser firefox
805
-
806
- Display the navigation URL for the Lightning Experience page for your default org, but don't open the page in a
807
- browser:
808
-
809
- $ sf org open --url-only --path lightning
810
-
811
- Open a local Lightning page in your default org's Lightning App Builder:
812
-
813
- $ sf org open --source-file force-app/main/default/flexipages/Hello.flexipage-meta.xml
814
-
815
- Open a local Flow in Flow Builder:
816
-
817
- $ sf org open --source-file force-app/main/default/flows/Hello.flow-meta.xml
818
- ```
819
-
820
- _See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/open.ts)_
821
-
822
- ## `sf org refresh sandbox`
823
-
824
- Refresh a sandbox org using the sandbox name.
825
-
826
- ```
827
- USAGE
828
- $ sf org refresh sandbox -o <value> [--json] [--no-auto-activate] [-w <value> | --async] [-i <value> | ] [-n <value>]
829
- [-f <value>] [--no-prompt]
830
-
831
- FLAGS
832
- -f, --definition-file=<value> Path to a sandbox definition file for overriding its configuration when you refresh it.
833
- -i, --poll-interval=<seconds> [default: 30 seconds] Number of seconds to wait between status polling requests.
834
- -n, --name=<value> Name of the existing sandbox org in your production org that you want to refresh.
835
- -o, --target-org=<value> (required) Username or alias of the production org that contains the sandbox license.
836
- -w, --wait=<minutes> [default: 30 minutes] Number of minutes to poll for sandbox refresh status.
837
- --async Request the sandbox refresh, but don't wait for it to complete.
838
- --no-auto-activate Disable auto-activation of the sandbox after a successful refresh.
839
- --no-prompt Don't prompt for confirmation about the sandbox refresh.
840
-
841
- GLOBAL FLAGS
842
- --json Format output as json.
843
-
844
- DESCRIPTION
845
- Refresh a sandbox org using the sandbox name.
846
-
847
- Refreshing a sandbox copies the metadata, and optionally data, from your production org to the refreshed sandbox org.
848
- You can optionally specify a definition file if you want to change the configuration of the refreshed sandbox, such as
849
- its license type or template ID.
850
-
851
- You're not allowed to change the sandbox name when you refresh it with this command. If you want to change the sandbox
852
- name, first delete it with the "org delete sandbox" command. And then recreate it with the "org create sandbox"
853
- command and give it a new name.
854
-
855
- EXAMPLES
856
- Refresh the sandbox named "devSbx1". The production org that contains the sandbox license has the alias "prodOrg".
857
-
858
- $ sf org refresh sandbox --name devSbx1 --target-org prodOrg
859
-
860
- Refresh the sandbox named "devSbx2", and override the configuration of the refreshed sandbox with the properties in
861
- the specified defintion file. The default target org is the production org, so you don't need to specify the
862
- `--target-org` flag in this case.
863
-
864
- $ sf org refresh sandbox --name devSbx2 --definition-file devSbx2-config.json
865
-
866
- Refresh the sandbox using the name defined in the definition file. The production org that contains the sandbox
867
- license has the alias "prodOrg".
868
-
869
- $ sf org refresh sandbox --definition-file devSbx3-config.json --target-org prodOrg
870
-
871
- FLAG DESCRIPTIONS
872
- -f, --definition-file=<value> Path to a sandbox definition file for overriding its configuration when you refresh it.
873
-
874
- The sandbox definition file is a blueprint for the sandbox; use the file to change the sandbox configuration during
875
- a refresh. If you don't want to change the sandbox configuration when you refresh it, then simply use the --name
876
- flag to specify the sandbox and don't use this flag. See
877
- <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm> for all
878
- the options you can specify in the definition file.
879
-
880
- -w, --wait=<minutes> Number of minutes to poll for sandbox refresh status.
881
-
882
- If the command continues to run after the wait period, the CLI returns control of the terminal to you and displays
883
- the "sf org resume sandbox" command for you run to check the status of the refresh. The displayed command includes
884
- the job ID for the running sandbox refresh.
885
-
886
- --async Request the sandbox refresh, but don't wait for it to complete.
887
-
888
- The command immediately displays the job ID and returns control of the terminal to you. This way, you can continue
889
- to use the CLI. To check the status of the sandbox refresh, run "sf org resume sandbox".
890
-
891
- --no-auto-activate Disable auto-activation of the sandbox after a successful refresh.
892
-
893
- By default, a sandbox auto-activates after a refresh. Use this flag to control sandbox activation manually.
894
- ```
895
-
896
- _See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/refresh/sandbox.ts)_
897
-
898
- ## `sf org resume sandbox`
899
-
900
- Check the status of a sandbox creation, and log in to it if it's ready.
901
-
902
- ```
903
- USAGE
904
- $ sf org resume sandbox [--json] [-w <value>] [-n <value> | -i <value>] [-l] [-o <value>]
905
-
906
- FLAGS
907
- -i, --job-id=<value> Job ID of the incomplete sandbox creation that you want to check the status of.
908
- -l, --use-most-recent Use the most recent sandbox create request.
909
- -n, --name=<value> Name of the sandbox org.
910
- -o, --target-org=<value> Username or alias of the production org that contains the sandbox license.
911
- -w, --wait=<minutes> [default: 0 minutes] Number of minutes to wait for the sandbox org to be ready.
912
-
913
- GLOBAL FLAGS
914
- --json Format output as json.
915
-
916
- DESCRIPTION
917
- Check the status of a sandbox creation, and log in to it if it's ready.
918
-
919
- Sandbox creation can take a long time. If the original "sf org create sandbox" command either times out, or you
920
- specified the --async flag, the command displays a job ID. Use this job ID to check whether the sandbox creation is
921
- complete, and if it is, the command then logs into it.
922
-
923
- You can also use the sandbox name to check the status or the --use-most-recent flag to use the job ID of the most
924
- recent sandbox creation.
925
-
926
- ALIASES
927
- $ sf env resume sandbox
928
-
929
- EXAMPLES
930
- Check the status of a sandbox creation using its name and specify a production org with alias "prodOrg":
931
-
932
- $ sf org resume sandbox --name mysandbox --target-org prodOrg
933
-
934
- Check the status using the job ID:
935
-
936
- $ sf org resume sandbox --job-id 0GRxxxxxxxx
937
-
938
- Check the status of the most recent sandbox create request:
939
-
940
- $ sf org resume sandbox --use-most-recent
941
-
942
- FLAG DESCRIPTIONS
943
- -i, --job-id=<value> Job ID of the incomplete sandbox creation that you want to check the status of.
944
-
945
- The job ID is valid for 24 hours after you start the sandbox creation.
946
-
947
- -o, --target-org=<value> Username or alias of the production org that contains the sandbox license.
948
-
949
- When it creates the sandbox org, Salesforce copies the metadata, and optionally data, from your production org to
950
- the new sandbox org.
951
-
952
- -w, --wait=<minutes> Number of minutes to wait for the sandbox org to be ready.
953
-
954
- If the command continues to run after the wait period, the CLI returns control of the terminal window to you and
955
- returns the job ID. To resume checking the sandbox creation, rerun this command.
956
- ```
957
-
958
- _See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/resume/sandbox.ts)_
959
-
960
- ## `sf org resume scratch`
961
-
962
- Resume the creation of an incomplete scratch org.
963
-
964
- ```
965
- USAGE
966
- $ sf org resume scratch [--json] [-i <value>] [-r]
967
-
968
- FLAGS
969
- -i, --job-id=<value> Job ID of the incomplete scratch org create that you want to resume.
970
- -r, --use-most-recent Use the job ID of the most recent incomplete scratch org.
971
-
972
- GLOBAL FLAGS
973
- --json Format output as json.
974
-
975
- DESCRIPTION
976
- Resume the creation of an incomplete scratch org.
977
-
978
- When the original "sf org create scratch" command either times out or is run with the --async flag, it displays a job
979
- ID.
980
-
981
- Run this command by either passing it a job ID or using the --use-most-recent flag to specify the most recent
982
- incomplete scratch org.
983
-
984
- ALIASES
985
- $ sf env resume scratch
986
-
987
- EXAMPLES
988
- Resume a scratch org create with a job ID:
989
-
990
- $ sf org resume scratch --job-id 2SR3u0000008fBDGAY
991
-
992
- Resume your most recent incomplete scratch org:
993
-
994
- $ sf org resume scratch --use-most-recent
995
-
996
- FLAG DESCRIPTIONS
997
- -i, --job-id=<value> Job ID of the incomplete scratch org create that you want to resume.
998
-
999
- The job ID is the same as the record ID of the incomplete scratch org in the ScratchOrgInfo object of the Dev Hub.
1000
-
1001
- The job ID is valid for 24 hours after you start the scratch org creation.
1002
- ```
1003
-
1004
- _See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.5.0/src/commands/org/resume/scratch.ts)_
104
+ - [`sf org`](docs/org.md) - Commands to create and manage orgs and scratch org users.
1005
105
 
1006
106
  <!-- commandsstop -->
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-org",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/plugin-org",
9
- "version": "3.5.0",
9
+ "version": "3.5.1",
10
10
  "license": "BSD-3-Clause",
11
11
  "dependencies": {
12
12
  "@oclif/core": "^3.25.2",
13
13
  "@salesforce/core": "^6.6.0",
14
14
  "@salesforce/kit": "^3.0.15",
15
15
  "@salesforce/sf-plugins-core": "^7.1.15",
16
- "@salesforce/source-deploy-retrieve": "^10.5.2",
16
+ "@salesforce/source-deploy-retrieve": "^10.5.5",
17
17
  "chalk": "^5.3.0",
18
18
  "change-case": "^5.4.3",
19
19
  "is-wsl": "^3.1.0",
@@ -4831,9 +4831,9 @@
4831
4831
  }
4832
4832
  },
4833
4833
  "node_modules/@salesforce/source-deploy-retrieve": {
4834
- "version": "10.5.2",
4835
- "resolved": "https://registry.npmjs.org/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-10.5.2.tgz",
4836
- "integrity": "sha512-J82cNDJF7gA1/VQ/igfpR2Aa31htDvym5LnGJv2Yhd3BRaa7kTR8lJdzseN8m/EFrBfqYfRT14yzSewsR686EQ==",
4834
+ "version": "10.5.5",
4835
+ "resolved": "https://registry.npmjs.org/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-10.5.5.tgz",
4836
+ "integrity": "sha512-o+c/qD9QojXIPMOuteUSdrbx/GI9HS0jFv49NcVrZX1Rzm/ZUk5JHkLzJtiUVQOEnBg4VVnFh2rBarPh0x6dWg==",
4837
4837
  "license": "BSD-3-Clause",
4838
4838
  "dependencies": {
4839
4839
  "@salesforce/core": "^6.7.0",
package/oclif.lock CHANGED
@@ -2060,10 +2060,10 @@
2060
2060
  "@salesforce/ts-types" "^2.0.9"
2061
2061
  chalk "^5.3.0"
2062
2062
 
2063
- "@salesforce/source-deploy-retrieve@^10.5.2":
2064
- version "10.5.2"
2065
- resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-10.5.2.tgz#aecf7147f48c65286c92fdba20f8a2ed289fd58e"
2066
- integrity sha512-J82cNDJF7gA1/VQ/igfpR2Aa31htDvym5LnGJv2Yhd3BRaa7kTR8lJdzseN8m/EFrBfqYfRT14yzSewsR686EQ==
2063
+ "@salesforce/source-deploy-retrieve@^10.5.5":
2064
+ version "10.5.5"
2065
+ resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-10.5.5.tgz#c2680de777e4b392a5f02631ca1cd385cad72c93"
2066
+ integrity sha512-o+c/qD9QojXIPMOuteUSdrbx/GI9HS0jFv49NcVrZX1Rzm/ZUk5JHkLzJtiUVQOEnBg4VVnFh2rBarPh0x6dWg==
2067
2067
  dependencies:
2068
2068
  "@salesforce/core" "^6.7.0"
2069
2069
  "@salesforce/kit" "^3.0.15"
@@ -2141,5 +2141,5 @@
2141
2141
  ]
2142
2142
  }
2143
2143
  },
2144
- "version": "3.5.0"
2144
+ "version": "3.5.1"
2145
2145
  }
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": "3.5.0",
4
+ "version": "3.5.1",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
@@ -9,7 +9,7 @@
9
9
  "@salesforce/core": "^6.6.0",
10
10
  "@salesforce/kit": "^3.0.15",
11
11
  "@salesforce/sf-plugins-core": "^7.1.15",
12
- "@salesforce/source-deploy-retrieve": "^10.5.2",
12
+ "@salesforce/source-deploy-retrieve": "^10.5.5",
13
13
  "chalk": "^5.3.0",
14
14
  "change-case": "^5.4.3",
15
15
  "is-wsl": "^3.1.0",
@@ -237,7 +237,7 @@
237
237
  "exports": "./lib/index.js",
238
238
  "type": "module",
239
239
  "sfdx": {
240
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.5.0.crt",
241
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.5.0.sig"
240
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.5.1.crt",
241
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.5.1.sig"
242
242
  }
243
243
  }