@salesforce/cli 1.25.0 → 1.26.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/CHANGELOG.md +18 -0
- package/README.md +355 -21
- package/npm-shrinkwrap.json +1953 -658
- package/oclif.manifest.json +1 -1
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.26.0](https://github.com/salesforcecli/cli/compare/v1.25.2...v1.26.0) (2022-04-28)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- add schemas to yarn resolutions ([1548d95](https://github.com/salesforcecli/cli/commit/1548d95202e1c43b99f5831a92a47762b84c2e43))
|
|
10
|
+
|
|
11
|
+
### [1.25.2](https://github.com/salesforcecli/cli/compare/v1.25.1...v1.25.2) (2022-04-25)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- revert plugin-functions ([3783a83](https://github.com/salesforcecli/cli/commit/3783a83a2d58193f6ba0a0186094cdceebd23994))
|
|
16
|
+
|
|
17
|
+
### [1.25.1](https://github.com/salesforcecli/cli/compare/v1.25.0...v1.25.1) (2022-04-21)
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- add cli-release context to windows package job for signing key ([301762d](https://github.com/salesforcecli/cli/commit/301762d039a91dc36aa4ae223c56848425b4d959))
|
|
22
|
+
|
|
5
23
|
## [1.25.0](https://github.com/salesforcecli/cli/compare/v1.24.0...v1.25.0) (2022-04-21)
|
|
6
24
|
|
|
7
25
|
## [1.24.0](https://github.com/salesforcecli/cli/compare/v1.23.0...v1.24.0) (2022-04-13)
|
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ $ npm install -g @salesforce/cli
|
|
|
31
31
|
$ sf COMMAND
|
|
32
32
|
running command...
|
|
33
33
|
$ sf (--version|-v)
|
|
34
|
-
@salesforce/cli/1.
|
|
34
|
+
@salesforce/cli/1.26.0 linux-x64 node-v14.19.1
|
|
35
35
|
$ sf --help [COMMAND]
|
|
36
36
|
USAGE
|
|
37
37
|
$ sf COMMAND
|
|
@@ -54,15 +54,20 @@ USAGE
|
|
|
54
54
|
- [`sf deploy metadata`](#sf-deploy-metadata)
|
|
55
55
|
- [`sf env compute collaborator add`](#sf-env-compute-collaborator-add)
|
|
56
56
|
- [`sf env create compute`](#sf-env-create-compute)
|
|
57
|
+
- [`sf env create sandbox`](#sf-env-create-sandbox)
|
|
58
|
+
- [`sf env create scratch`](#sf-env-create-scratch)
|
|
57
59
|
- [`sf env delete`](#sf-env-delete)
|
|
60
|
+
- [`sf env delete sandbox`](#sf-env-delete-sandbox)
|
|
61
|
+
- [`sf env delete scratch`](#sf-env-delete-scratch)
|
|
58
62
|
- [`sf env display`](#sf-env-display)
|
|
59
63
|
- [`sf env list`](#sf-env-list)
|
|
60
|
-
- [`sf env log`](#sf-env-log)
|
|
61
64
|
- [`sf env log tail`](#sf-env-log-tail)
|
|
62
65
|
- [`sf env logdrain add`](#sf-env-logdrain-add)
|
|
63
66
|
- [`sf env logdrain list`](#sf-env-logdrain-list)
|
|
64
67
|
- [`sf env logdrain remove`](#sf-env-logdrain-remove)
|
|
65
68
|
- [`sf env open`](#sf-env-open)
|
|
69
|
+
- [`sf env resume sandbox`](#sf-env-resume-sandbox)
|
|
70
|
+
- [`sf env resume scratch`](#sf-env-resume-scratch)
|
|
66
71
|
- [`sf env var get KEY`](#sf-env-var-get-key)
|
|
67
72
|
- [`sf env var list`](#sf-env-var-list)
|
|
68
73
|
- [`sf env var set`](#sf-env-var-set)
|
|
@@ -517,7 +522,7 @@ Create a compute environment for use with Salesforce Functions.
|
|
|
517
522
|
|
|
518
523
|
```
|
|
519
524
|
USAGE
|
|
520
|
-
$ sf env create compute [-o <value>] [-a <value>]
|
|
525
|
+
$ sf env create compute [-o <value>] [-a <value> | ]
|
|
521
526
|
|
|
522
527
|
FLAGS
|
|
523
528
|
-a, --alias=<value> Alias for the created environment.
|
|
@@ -544,6 +549,184 @@ EXAMPLES
|
|
|
544
549
|
$ sf env create compute --alias environment-alias
|
|
545
550
|
```
|
|
546
551
|
|
|
552
|
+
## `sf env create sandbox`
|
|
553
|
+
|
|
554
|
+
Create a sandbox org.
|
|
555
|
+
|
|
556
|
+
```
|
|
557
|
+
USAGE
|
|
558
|
+
$ sf env create sandbox [--json] [-f <value> | -n <value> | -l Developer|Developer_Pro|Partial|Full] [-s] [-a <value>]
|
|
559
|
+
[-w <value> | --async] [-i <value> | ] [-c <value> | ] [-o <value>] [--no-prompt]
|
|
560
|
+
|
|
561
|
+
FLAGS
|
|
562
|
+
-a, --alias=<value> Alias for the sandbox org.
|
|
563
|
+
-c, --clone=<value> Name of the sandbox org to clone.
|
|
564
|
+
-f, --definition-file=<value> Path to a sandbox definition file.
|
|
565
|
+
-i, --poll-interval=<seconds> [default: [object Object]] Number of seconds to wait
|
|
566
|
+
between retries.
|
|
567
|
+
-l, --license-type=(Developer|Developer_Pro|Partial|Full) [default: Developer] Type of sandbox license.
|
|
568
|
+
-n, --name=<value> Name of the sandbox org.
|
|
569
|
+
-o, --target-org=<value> Username or alias of the production org that contains the
|
|
570
|
+
sandbox license.
|
|
571
|
+
-s, --set-default Set the sandbox org as your default org.
|
|
572
|
+
-w, --wait=<minutes> [default: [object Object]] Number of minutes to wait for
|
|
573
|
+
the sandbox org to be ready.
|
|
574
|
+
--async Request the sandbox creation, but don't wait for it to
|
|
575
|
+
complete.
|
|
576
|
+
--no-prompt Don't prompt for confirmation about the sandbox
|
|
577
|
+
configuration.
|
|
578
|
+
|
|
579
|
+
GLOBAL FLAGS
|
|
580
|
+
--json Format output as json.
|
|
581
|
+
|
|
582
|
+
DESCRIPTION
|
|
583
|
+
Create a sandbox org.
|
|
584
|
+
|
|
585
|
+
There are two ways to create a sandbox org: specify a definition file that contains the sandbox options or use the
|
|
586
|
+
--name and --license-type flags to specify the two required options. If you want to set an option other than name or
|
|
587
|
+
license type, such as apexClassId, you must use a definition file.
|
|
588
|
+
|
|
589
|
+
EXAMPLES
|
|
590
|
+
Create a sandbox org using a definition file and give it the alias "MyDevSandbox". The production org that contains
|
|
591
|
+
the sandbox license has the alias "prodOrg".
|
|
592
|
+
|
|
593
|
+
$ sf env create sandbox -f config/dev-sandbox-def.json --alias MyDevSandbox --target-org prodOrg
|
|
594
|
+
|
|
595
|
+
Create a sandbox org by directly specifying its name and type of license (Developer) instead of using a definition
|
|
596
|
+
file. Set the sandbox org as your default.
|
|
597
|
+
|
|
598
|
+
$ sf env create sandbox --name mysandbox --license-type Developer --alias MyDevSandbox --target-org prodOrg \
|
|
599
|
+
--set-default
|
|
600
|
+
|
|
601
|
+
FLAG DESCRIPTIONS
|
|
602
|
+
-a, --alias=<value> Alias for the sandbox org.
|
|
603
|
+
|
|
604
|
+
When you create a sandbox, the generated usernames are based on the usernames present in the production org. To
|
|
605
|
+
ensure uniqueness, the new usernames are appended with the name of the sandbox. For example, the username
|
|
606
|
+
"user@example.com" in the production org results in the username "user@example.com.mysandbox" in a sandbox named
|
|
607
|
+
"mysandbox". When you set an alias for a sandbox org, it's assigned to the resulting username of the user running
|
|
608
|
+
this command.
|
|
609
|
+
|
|
610
|
+
-c, --clone=<value> Name of the sandbox org to clone.
|
|
611
|
+
|
|
612
|
+
The value of clone must be an existing sandbox in the same target-org.
|
|
613
|
+
|
|
614
|
+
-f, --definition-file=<value> Path to a sandbox definition file.
|
|
615
|
+
|
|
616
|
+
The sandbox definition file is a blueprint for the sandbox. You can create different definition files for each
|
|
617
|
+
sandbox type that you use in the development process. See
|
|
618
|
+
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm for all the
|
|
619
|
+
options you can specify in the defintion file.
|
|
620
|
+
|
|
621
|
+
-n, --name=<value> Name of the sandbox org.
|
|
622
|
+
|
|
623
|
+
The name must be a unique alphanumeric string (10 or fewer characters) to identify the sandbox. You can’t reuse a
|
|
624
|
+
name while a sandbox is in the process of being deleted.
|
|
625
|
+
|
|
626
|
+
-o, --target-org=<value> Username or alias of the production org that contains the sandbox license.
|
|
627
|
+
|
|
628
|
+
When it creates the sandbox org, Salesforce copies the metadata, and optionally data, from your production org to
|
|
629
|
+
the new sandbox org.
|
|
630
|
+
|
|
631
|
+
-w, --wait=<minutes> Number of minutes to wait for the sandbox org to be ready.
|
|
632
|
+
|
|
633
|
+
If the command continues to run after the wait period, the CLI returns control of the terminal to you and displays
|
|
634
|
+
the "sf env resume sandbox" command you run to check the status of the create. The displayed command includes the
|
|
635
|
+
job ID for the running sandbox creation.
|
|
636
|
+
|
|
637
|
+
--async Request the sandbox creation, but don't wait for it to complete.
|
|
638
|
+
|
|
639
|
+
The command immediately displays the job ID and returns control of the terminal to you. This way, you can continue
|
|
640
|
+
to use the CLI. To check the status of the sandbox creation, run "sf env resume sandbox".
|
|
641
|
+
```
|
|
642
|
+
|
|
643
|
+
## `sf env create scratch`
|
|
644
|
+
|
|
645
|
+
Create a scratch org.
|
|
646
|
+
|
|
647
|
+
```
|
|
648
|
+
USAGE
|
|
649
|
+
$ sf env create scratch [--json] [-a <value>] [--async] [-d] [-f <value>] [-v <value>] [-c] [-e
|
|
650
|
+
developer|enterprise|group|professional|partner-developer|partner-enterprise|partner-group|partner-professional]
|
|
651
|
+
[-m] [-y <value>] [-w <value>] [--api-version <value>] [-i <value>]
|
|
652
|
+
|
|
653
|
+
FLAGS
|
|
654
|
+
-a, --alias=<value> Alias for the scratch org.
|
|
655
|
+
-d, --set-default Set the scratch org as your default org
|
|
656
|
+
-e, --edition=<option> Salesforce edition of the scratch org.
|
|
657
|
+
<options: developer|enterprise|group|professional|partner-developer|partner-enterprise|
|
|
658
|
+
partner-group|partner-professional>
|
|
659
|
+
-f, --definition-file=<value> Path to a scratch org definition file.
|
|
660
|
+
-i, --client-id=<value> Consumer key of the Dev Hub connected app.
|
|
661
|
+
-v, --target-dev-hub=<value> Username or alias of the Dev Hub org.
|
|
662
|
+
-w, --wait=<minutes> [default: [object Object]] Number of minutes to wait for the scratch org to be ready.
|
|
663
|
+
-y, --duration-days=<days> [default: [object Object]] Number of days before the org expires.
|
|
664
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
665
|
+
--async Request the org, but don't wait for it to complete.
|
|
666
|
+
|
|
667
|
+
PACKAGING FLAGS
|
|
668
|
+
-c, --no-ancestors Don't include second-generation managed package (2GP) ancestors in the scratch org.
|
|
669
|
+
-m, --no-namespace Create the scratch org with no namespace, even if the Dev Hub has a namespace.
|
|
670
|
+
|
|
671
|
+
GLOBAL FLAGS
|
|
672
|
+
--json Format output as json.
|
|
673
|
+
|
|
674
|
+
DESCRIPTION
|
|
675
|
+
Create a scratch org.
|
|
676
|
+
|
|
677
|
+
There are two ways to create a scratch org: specify a definition file that contains the options or use the --edition
|
|
678
|
+
flag to specify the one required option. If you want to set options other than the edition, such as org features or
|
|
679
|
+
settings, you must use a definition file.
|
|
680
|
+
|
|
681
|
+
You must specify a Dev Hub to create a scratch org, either with the --target-dev-hub flag or by setting your default
|
|
682
|
+
Dev Hub with the target-dev-hub configuration variable.
|
|
683
|
+
|
|
684
|
+
EXAMPLES
|
|
685
|
+
Create a Developer edition scratch org using your default Dev Hub and give the scratch org an alias:
|
|
686
|
+
|
|
687
|
+
$ sf env create scratch --edition=developer --alias my-scratch-org
|
|
688
|
+
|
|
689
|
+
Specify the Dev Hub using its alias and a scratch org definition file. Set the scratch org as your default and
|
|
690
|
+
specify that it expires in 3 days:
|
|
691
|
+
|
|
692
|
+
$ sf env create scratch --target-dev-hub=MyHub --definition-file config/project-scratch-def.json --set-default \
|
|
693
|
+
--duration-days 3
|
|
694
|
+
|
|
695
|
+
FLAG DESCRIPTIONS
|
|
696
|
+
-a, --alias=<value> Alias for the scratch org.
|
|
697
|
+
|
|
698
|
+
New scratch orgs include one administrator by default. The admin user's username is auto-generated and looks
|
|
699
|
+
something like test-wvkpnfm5z113@example.com. When you set an alias for a new scratch org, it's assigned this
|
|
700
|
+
username.
|
|
701
|
+
|
|
702
|
+
-e, --edition=developer|enterprise|group|professional|partner-developer|partner-enterprise|partner-group|partner-professional
|
|
703
|
+
|
|
704
|
+
Salesforce edition of the scratch org.
|
|
705
|
+
|
|
706
|
+
The editions that begin with "partner-" are available only if the Dev Hub org is a Partner Business Org.
|
|
707
|
+
|
|
708
|
+
-f, --definition-file=<value> Path to a scratch org definition file.
|
|
709
|
+
|
|
710
|
+
The scratch org definition file is a blueprint for the scratch org. It mimics the shape of an org that you use in
|
|
711
|
+
the development life cycle, such as acceptance testing, packaging, or production. See
|
|
712
|
+
<https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file.htm> for
|
|
713
|
+
all the option you can specify in the definition file.
|
|
714
|
+
|
|
715
|
+
-v, --target-dev-hub=<value> Username or alias of the Dev Hub org.
|
|
716
|
+
|
|
717
|
+
Overrides the value of the target-dev-hub configuration variable, if set.
|
|
718
|
+
|
|
719
|
+
-w, --wait=<minutes> Number of minutes to wait for the scratch org to be ready.
|
|
720
|
+
|
|
721
|
+
If the command continues to run after the wait period, the CLI returns control of the terminal to you and displays
|
|
722
|
+
the job ID. To resume the scratch org creation, run the env resume scratch command and pass it the job ID.
|
|
723
|
+
|
|
724
|
+
--async Request the org, but don't wait for it to complete.
|
|
725
|
+
|
|
726
|
+
The command immediately displays the job ID and returns control of the terminal to you. This way, you can continue
|
|
727
|
+
to use the CLI. To resume the scratch org creation, run "sf env resume scratch".
|
|
728
|
+
```
|
|
729
|
+
|
|
547
730
|
## `sf env delete`
|
|
548
731
|
|
|
549
732
|
Delete an environment.
|
|
@@ -575,6 +758,77 @@ EXAMPLES
|
|
|
575
758
|
$ sf env delete --target-compute environment-alias --confirm environment-alias
|
|
576
759
|
```
|
|
577
760
|
|
|
761
|
+
## `sf env delete sandbox`
|
|
762
|
+
|
|
763
|
+
Delete a sandbox.
|
|
764
|
+
|
|
765
|
+
```
|
|
766
|
+
USAGE
|
|
767
|
+
$ sf env delete sandbox [--json] [-o <value>] [-p]
|
|
768
|
+
|
|
769
|
+
FLAGS
|
|
770
|
+
-o, --target-org=<value> Sandbox alias or login user.
|
|
771
|
+
-p, --no-prompt Don't prompt the user to confirm the deletion.
|
|
772
|
+
|
|
773
|
+
GLOBAL FLAGS
|
|
774
|
+
--json Format output as json.
|
|
775
|
+
|
|
776
|
+
DESCRIPTION
|
|
777
|
+
Delete a sandbox.
|
|
778
|
+
|
|
779
|
+
Specify a sandbox with either the username you used when you logged into it with "sf login", or the alias you gave the
|
|
780
|
+
sandbox when you created it. Run "sf env list" to view all your environments, including sandboxes, and their aliases.
|
|
781
|
+
|
|
782
|
+
EXAMPLES
|
|
783
|
+
Delete a sandbox with alias my-sandbox:
|
|
784
|
+
|
|
785
|
+
$ sf env delete sandbox --target-org=my-sandbox
|
|
786
|
+
|
|
787
|
+
Specify a username instead of an alias:
|
|
788
|
+
|
|
789
|
+
$ sf env delete sandbox --target-org=myusername@example.com.qa
|
|
790
|
+
|
|
791
|
+
Delete the sandbox without prompting to confirm :
|
|
792
|
+
|
|
793
|
+
$ sf env delete sandbox --target-org=my-sandbox --no-prompt
|
|
794
|
+
```
|
|
795
|
+
|
|
796
|
+
## `sf env delete scratch`
|
|
797
|
+
|
|
798
|
+
Delete a scratch org.
|
|
799
|
+
|
|
800
|
+
```
|
|
801
|
+
USAGE
|
|
802
|
+
$ sf env delete scratch [--json] [-o <value>] [-p]
|
|
803
|
+
|
|
804
|
+
FLAGS
|
|
805
|
+
-o, --target-org=<value> Scratch org alias or login user.
|
|
806
|
+
-p, --no-prompt Don't prompt the user to confirm the deletion.
|
|
807
|
+
|
|
808
|
+
GLOBAL FLAGS
|
|
809
|
+
--json Format output as json.
|
|
810
|
+
|
|
811
|
+
DESCRIPTION
|
|
812
|
+
Delete a scratch org.
|
|
813
|
+
|
|
814
|
+
Specify a scratch org with either the username you used when you logged into it with "sf login", or the alias you gave
|
|
815
|
+
the scratch org when you created it. Run "sf env list" to view all your environments, including scratch orgs, and
|
|
816
|
+
their aliases.
|
|
817
|
+
|
|
818
|
+
EXAMPLES
|
|
819
|
+
Delete a scratch org with alias my-scratch-org:
|
|
820
|
+
|
|
821
|
+
$ sf env delete scratch --target-org=my-scratch-org
|
|
822
|
+
|
|
823
|
+
Specify a username instead of an alias:
|
|
824
|
+
|
|
825
|
+
$ sf env delete scratch --target-org=test-123456-abcdefg@example.com
|
|
826
|
+
|
|
827
|
+
Delete the scratch org without prompting to confirm :
|
|
828
|
+
|
|
829
|
+
$ sf env delete scratch --target-org=my-scratch-org --no-prompt
|
|
830
|
+
```
|
|
831
|
+
|
|
578
832
|
## `sf env display`
|
|
579
833
|
|
|
580
834
|
Display details about an environment.
|
|
@@ -684,24 +938,6 @@ EXAMPLES
|
|
|
684
938
|
$ sf env list --csv --no-header
|
|
685
939
|
```
|
|
686
940
|
|
|
687
|
-
## `sf env log`
|
|
688
|
-
|
|
689
|
-
Stream log output for an environment.
|
|
690
|
-
|
|
691
|
-
```
|
|
692
|
-
USAGE
|
|
693
|
-
$ sf env log [-e <value> | ] [-n <value>]
|
|
694
|
-
|
|
695
|
-
FLAGS
|
|
696
|
-
-e, --target-compute=<value> Compute environment name to retrieve logs.
|
|
697
|
-
-n, --num=<value> Number of lines to display.
|
|
698
|
-
|
|
699
|
-
EXAMPLES
|
|
700
|
-
Stream log output:
|
|
701
|
-
|
|
702
|
-
$ sf env log --target-compute environment-alias
|
|
703
|
-
```
|
|
704
|
-
|
|
705
941
|
## `sf env log tail`
|
|
706
942
|
|
|
707
943
|
Stream log output for an environment.
|
|
@@ -845,6 +1081,104 @@ FLAG DESCRIPTIONS
|
|
|
845
1081
|
browser applications differ depending on the operating system you're on; check your documentation for details.
|
|
846
1082
|
```
|
|
847
1083
|
|
|
1084
|
+
## `sf env resume sandbox`
|
|
1085
|
+
|
|
1086
|
+
Check the status of a sandbox creation, and log in to it if it's ready.
|
|
1087
|
+
|
|
1088
|
+
```
|
|
1089
|
+
USAGE
|
|
1090
|
+
$ sf env resume sandbox [--json] [-w <value>] [-n <value> | -i <value>] [-l] [-o <value>]
|
|
1091
|
+
|
|
1092
|
+
FLAGS
|
|
1093
|
+
-i, --job-id=<value> Job ID of the incomplete sandbox creation that you want to check the status of.
|
|
1094
|
+
-l, --use-most-recent Use the most recent sandbox create request.
|
|
1095
|
+
-n, --name=<value> Name of the sandbox org.
|
|
1096
|
+
-o, --target-org=<value> Username or alias of the production org that contains the sandbox license.
|
|
1097
|
+
-w, --wait=<minutes> Number of minutes to wait for the sandbox org to be ready.
|
|
1098
|
+
|
|
1099
|
+
GLOBAL FLAGS
|
|
1100
|
+
--json Format output as json.
|
|
1101
|
+
|
|
1102
|
+
DESCRIPTION
|
|
1103
|
+
Check the status of a sandbox creation, and log in to it if it's ready.
|
|
1104
|
+
|
|
1105
|
+
Sandbox creation can take a long time. If the original "sf env create sandbox" command either times out, or you
|
|
1106
|
+
specified the --async flag, the command displays a job ID. Use this job ID to check whether the sandbox creation is
|
|
1107
|
+
complete, and if it is, the command then logs into it.
|
|
1108
|
+
|
|
1109
|
+
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
|
|
1110
|
+
recent sandbox creation.
|
|
1111
|
+
|
|
1112
|
+
EXAMPLES
|
|
1113
|
+
Check the status of a sandbox creation using its name and specify a production org with alias "prodOrg":
|
|
1114
|
+
|
|
1115
|
+
$ sf env resume sandbox --name mysandbox --target-org prodOrg
|
|
1116
|
+
|
|
1117
|
+
Check the status using the job ID:
|
|
1118
|
+
|
|
1119
|
+
$ sf env resume sandbox --job-id 0GRxxxxxxxx
|
|
1120
|
+
|
|
1121
|
+
Check the status of the most recent sandbox create request:
|
|
1122
|
+
|
|
1123
|
+
$ sf env resume sandbox --use-most-recent
|
|
1124
|
+
|
|
1125
|
+
FLAG DESCRIPTIONS
|
|
1126
|
+
-i, --job-id=<value> Job ID of the incomplete sandbox creation that you want to check the status of.
|
|
1127
|
+
|
|
1128
|
+
The job ID is valid for 24 hours after you start the sandbox creation.
|
|
1129
|
+
|
|
1130
|
+
-o, --target-org=<value> Username or alias of the production org that contains the sandbox license.
|
|
1131
|
+
|
|
1132
|
+
When it creates the sandbox org, Salesforce copies the metadata, and optionally data, from your production org to
|
|
1133
|
+
the new sandbox org.
|
|
1134
|
+
|
|
1135
|
+
-w, --wait=<minutes> Number of minutes to wait for the sandbox org to be ready.
|
|
1136
|
+
|
|
1137
|
+
If the command continues to run after the wait period, the CLI returns control of the terminal window to you and
|
|
1138
|
+
returns the job ID. To resume checking the sandbox creation, rerun this command.
|
|
1139
|
+
```
|
|
1140
|
+
|
|
1141
|
+
## `sf env resume scratch`
|
|
1142
|
+
|
|
1143
|
+
Resume the creation of an incomplete scratch org.
|
|
1144
|
+
|
|
1145
|
+
```
|
|
1146
|
+
USAGE
|
|
1147
|
+
$ sf env resume scratch [--json] [-i <value>] [-r]
|
|
1148
|
+
|
|
1149
|
+
FLAGS
|
|
1150
|
+
-i, --job-id=<value> Job ID of the incomplete scratch org create that you want to resume.
|
|
1151
|
+
-r, --use-most-recent Use the job ID of the most recent incomplete scratch org.
|
|
1152
|
+
|
|
1153
|
+
GLOBAL FLAGS
|
|
1154
|
+
--json Format output as json.
|
|
1155
|
+
|
|
1156
|
+
DESCRIPTION
|
|
1157
|
+
Resume the creation of an incomplete scratch org.
|
|
1158
|
+
|
|
1159
|
+
When the original "sf env create scratch" command either times out or is run with the --async flag, it displays a job
|
|
1160
|
+
ID.
|
|
1161
|
+
|
|
1162
|
+
Run this command by either passing it a job ID or using the --use-most-recent flag to specify the most recent
|
|
1163
|
+
incomplete scratch org.
|
|
1164
|
+
|
|
1165
|
+
EXAMPLES
|
|
1166
|
+
Resume a scratch org create with a job ID:
|
|
1167
|
+
|
|
1168
|
+
$ sf env resume scratch --job-id 2SR3u0000008fBDGAY
|
|
1169
|
+
|
|
1170
|
+
Resume your most recent incomplete scratch org:
|
|
1171
|
+
|
|
1172
|
+
$ sf env resume scratch --use-most-recent
|
|
1173
|
+
|
|
1174
|
+
FLAG DESCRIPTIONS
|
|
1175
|
+
-i, --job-id=<value> Job ID of the incomplete scratch org create that you want to resume.
|
|
1176
|
+
|
|
1177
|
+
The job ID is the same as the record ID of the incomplete scratch org in the ScratchOrgInfo object of the Dev Hub.
|
|
1178
|
+
|
|
1179
|
+
The job ID is valid for 24 hours after you start the scratch org creation.
|
|
1180
|
+
```
|
|
1181
|
+
|
|
848
1182
|
## `sf env var get KEY`
|
|
849
1183
|
|
|
850
1184
|
Display a single config variable for an environment.
|