Skip to content

Commit c67955d

Browse files
committed
chore(release): 5.3.0 [skip ci]
1 parent 03adf2a commit c67955d

File tree

3 files changed

+70
-28
lines changed

3 files changed

+70
-28
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# [5.3.0](https://github.com/salesforcecli/plugin-org/compare/5.2.42...5.3.0) (2025-03-11)
2+
3+
### Bug Fixes
4+
5+
- add the exclusive flag to edition and source-org ([7f58889](https://github.com/salesforcecli/plugin-org/commit/7f58889e11f09fe4d35e5a8a5919d18dc62cdd9e))
6+
- more help updates ([cd921c6](https://github.com/salesforcecli/plugin-org/commit/cd921c6b9af16b3a4b2d312ceb9e6e9ebdb29b66))
7+
- update help with info about new --snapshot flag ([b01a47a](https://github.com/salesforcecli/plugin-org/commit/b01a47a242922b8ed22651e8dd7c7d7f246d10ea))
8+
- update the changes ([4678a9a](https://github.com/salesforcecli/plugin-org/commit/4678a9abfa496c5fab254c6e3663c2806010ffe5))
9+
10+
### Features
11+
12+
- add a --snapshot flag for creating scratch org ([4566d6d](https://github.com/salesforcecli/plugin-org/commit/4566d6d9ddfa7fc0fec81b801e424c207ff187fd))
13+
- add test for snapshot ([e8baad1](https://github.com/salesforcecli/plugin-org/commit/e8baad127e92be1a0b59fba6c840617bb48d4829))
14+
115
## [5.2.42](https://github.com/salesforcecli/plugin-org/compare/5.2.41...5.2.42) (2025-03-09)
216

317
### Bug Fixes

README.md

Lines changed: 55 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ FLAG DESCRIPTIONS
242242
You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
243243
```
244244

245-
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/create/sandbox.ts)_
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)_
246246

247247
## `sf org create scratch`
248248

@@ -251,9 +251,9 @@ Create a scratch org.
251251
```
252252
USAGE
253253
$ 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] [--username <value>] [--description
256-
<value>] [--name <value>] [--release preview|previous] [--admin-email <value>] [--source-org <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>]
257257
258258
FLAGS
259259
-a, --alias=<value> Alias for the scratch org.
@@ -277,6 +277,8 @@ DEFINITION FILE OVERRIDE FLAGS
277277
definition file, if set.
278278
<options: developer|enterprise|group|professional|partner-developer|partner-enterprise|part
279279
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.
280282
--admin-email=<value> Email address that will be applied to the org's admin user. Overrides the value of the
281283
"adminEmail" option in the definition file, if set.
282284
--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
285287
definition file, if set.
286288
--release=<option> Release of the scratch org as compared to the Dev Hub release.
287289
<options: preview|previous>
288-
--source-org=<value> 15-character ID of the org whose shape the new scratch org will be based on. Overrides the
289-
value of the "sourceOrg" option in the definition file, if set.
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.
290292
--username=<value> Username of the scratch org admin user. Overrides the value of the "username" option in the
291293
definition file, if set.
292294
@@ -297,22 +299,28 @@ GLOBAL FLAGS
297299
DESCRIPTION
298300
Create a scratch org.
299301
300-
There are two ways to create a scratch org: either specify a definition file that contains the options or use the
301-
--edition flag to specify the one required option.
302+
There are four ways to create a scratch org:
302303
303-
For either method, you can also use these flags; if you use them with --definition-file, they override their
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
304315
equivalent option in the scratch org definition file:
305316
306317
* --description
307318
* --name (equivalent to the "orgName" option)
308319
* --username
309320
* --release
310-
* --edition
311321
* --admin-email (equivalent to the "adminEmail" option)
312-
* --source-org (equivalent to the "sourceOrg" option)
313322
314-
If you want to set options other than the preceding ones, such as org features or settings, you must use a definition
315-
file.
323+
If you want to set options such as org features or settings, you must use a definition file.
316324
317325
You must specify a Dev Hub to create a scratch org, either with the --target-dev-hub flag or by setting your default
318326
Dev Hub with the target-dev-hub configuration variable.
@@ -335,6 +343,12 @@ EXAMPLES
335343
336344
$ sf org create scratch --edition enterprise --alias my-scratch-org --target-dev-hub MyHub --release preview
337345
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+
338352
FLAG DESCRIPTIONS
339353
-a, --alias=<value> Alias for the scratch org.
340354
@@ -355,6 +369,13 @@ FLAG DESCRIPTIONS
355369
<https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file.htm> for
356370
all the option you can specify in the definition file.
357371
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+
358379
-t, --[no-]track-source Use source tracking for this scratch org. Set --no-track-source to disable source tracking.
359380
360381
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
386407
By default, scratch orgs are on the same release as the Dev Hub. During Salesforce release transition periods, you
387408
can override this default behavior and opt in or out of the new release.
388409
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+
389417
--username=<value>
390418
391419
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
396424
Omit this flag to have Salesforce generate a unique username for your org.
397425
```
398426

399-
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/create/scratch.ts)_
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)_
400428

401429
## `sf org delete sandbox`
402430

@@ -442,7 +470,7 @@ EXAMPLES
442470
$ sf org delete sandbox --target-org my-sandbox --no-prompt
443471
```
444472

445-
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/delete/sandbox.ts)_
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)_
446474

447475
## `sf org delete scratch`
448476

@@ -486,7 +514,7 @@ EXAMPLES
486514
$ sf org delete scratch --target-org my-scratch-org --no-prompt
487515
```
488516

489-
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/delete/scratch.ts)_
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)_
490518

491519
## `sf org disable tracking`
492520

@@ -525,7 +553,7 @@ EXAMPLES
525553
$ sf org disable tracking
526554
```
527555

528-
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/disable/tracking.ts)_
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)_
529557

530558
## `sf org display`
531559

@@ -570,7 +598,7 @@ EXAMPLES
570598
$ sf org display --target-org TestOrg1 --verbose
571599
```
572600

573-
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/display.ts)_
601+
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/display.ts)_
574602

575603
## `sf org enable tracking`
576604

@@ -612,7 +640,7 @@ EXAMPLES
612640
$ sf org enable tracking
613641
```
614642

615-
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/enable/tracking.ts)_
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)_
616644

617645
## `sf org list`
618646

@@ -651,7 +679,7 @@ EXAMPLES
651679
$ sf org list --clean
652680
```
653681

654-
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/list.ts)_
682+
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/list.ts)_
655683

656684
## `sf org list metadata`
657685

@@ -718,7 +746,7 @@ FLAG DESCRIPTIONS
718746
Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
719747
```
720748

721-
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/list/metadata.ts)_
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)_
722750

723751
## `sf org list metadata-types`
724752

@@ -773,7 +801,7 @@ FLAG DESCRIPTIONS
773801
Override the api version used for api requests made by this command
774802
```
775803

776-
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/list/metadata-types.ts)_
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)_
777805

778806
## `sf org open`
779807

@@ -849,7 +877,7 @@ EXAMPLES
849877
$ sf org open --source-file force-app/main/default/bots/Coral_Cloud_Agent/Coral_Cloud_Agent.bot-meta.xml
850878
```
851879

852-
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/open.ts)_
880+
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/5.3.0/src/commands/org/open.ts)_
853881

854882
## `sf org open agent`
855883

@@ -900,7 +928,7 @@ EXAMPLES
900928
$ sf org open agent --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent
901929
```
902930

903-
_See code: [src/commands/org/open/agent.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/open/agent.ts)_
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)_
904932

905933
## `sf org refresh sandbox`
906934

@@ -977,7 +1005,7 @@ FLAG DESCRIPTIONS
9771005
By default, a sandbox auto-activates after a refresh. Use this flag to control sandbox activation manually.
9781006
```
9791007

980-
_See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/refresh/sandbox.ts)_
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)_
9811009

9821010
## `sf org resume sandbox`
9831011

@@ -1040,7 +1068,7 @@ FLAG DESCRIPTIONS
10401068
returns the job ID. To resume checking the sandbox creation, rerun this command.
10411069
```
10421070

1043-
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/resume/sandbox.ts)_
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)_
10441072

10451073
## `sf org resume scratch`
10461074

@@ -1087,6 +1115,6 @@ FLAG DESCRIPTIONS
10871115
The job ID is valid for 24 hours after you start the scratch org creation.
10881116
```
10891117

1090-
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/5.2.42/src/commands/org/resume/scratch.ts)_
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)_
10911119

10921120
<!-- commandsstop -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-org",
33
"description": "Commands to interact with Salesforce orgs",
4-
"version": "5.2.42",
4+
"version": "5.3.0",
55
"author": "Salesforce",
66
"bugs": "https://github.com/forcedotcom/cli/issues",
77
"dependencies": {

0 commit comments

Comments
 (0)