@salesforce/cli 2.31.6 → 2.32.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/README.md CHANGED
@@ -24,7 +24,7 @@ $ npm install -g @salesforce/cli
24
24
  $ sf COMMAND
25
25
  running command...
26
26
  $ sf (--version|-v)
27
- @salesforce/cli/2.31.6 linux-x64 node-v20.11.1
27
+ @salesforce/cli/2.32.0 linux-x64 node-v20.11.1
28
28
  $ sf --help [COMMAND]
29
29
  USAGE
30
30
  $ sf COMMAND
@@ -111,6 +111,7 @@ See [architecture page](ARCHITECTURE.md) for diagrams of the Salesforce CLI.
111
111
  - [`sf org login web`](#sf-org-login-web)
112
112
  - [`sf org logout`](#sf-org-logout)
113
113
  - [`sf org open`](#sf-org-open)
114
+ - [`sf org refresh sandbox`](#sf-org-refresh-sandbox)
114
115
  - [`sf org resume sandbox`](#sf-org-resume-sandbox)
115
116
  - [`sf org resume scratch`](#sf-org-resume-scratch)
116
117
  - [`sf package1 version create`](#sf-package1-version-create)
@@ -2453,6 +2454,9 @@ DESCRIPTION
2453
2454
  --name and --license-type flags to specify the two required options. If you want to set an option other than name or
2454
2455
  license type, such as apexClassId, you must use a definition file.
2455
2456
 
2457
+ You can also use this command to clone an existing sandbox. Use the --clone flag to specify the existing sandbox name
2458
+ and the --name flag to the name of the new sandbox.
2459
+
2456
2460
  ALIASES
2457
2461
  $ sf env create sandbox
2458
2462
 
@@ -2460,7 +2464,7 @@ EXAMPLES
2460
2464
  Create a sandbox org using a definition file and give it the alias "MyDevSandbox". The production org that contains
2461
2465
  the sandbox license has the alias "prodOrg".
2462
2466
 
2463
- $ sf org create sandbox -f config/dev-sandbox-def.json --alias MyDevSandbox --target-org prodOrg
2467
+ $ sf org create sandbox --definition-file config/dev-sandbox-def.json --alias MyDevSandbox --target-org prodOrg
2464
2468
 
2465
2469
  Create a sandbox org by directly specifying its name and type of license (Developer) instead of using a definition
2466
2470
  file. Set the sandbox org as your default.
@@ -2468,6 +2472,12 @@ EXAMPLES
2468
2472
  $ sf org create sandbox --name mysandbox --license-type Developer --alias MyDevSandbox --target-org prodOrg \
2469
2473
  --set-default
2470
2474
 
2475
+ Clone the existing sandbox with name "ExistingSandbox" and name the new sandbox "NewClonedSandbox". Set the new
2476
+ sandbox as your default org. Wait for 30 minutes for the sandbox creation to complete.
2477
+
2478
+ $ sf org create sandbox --clone ExistingSandbox --name NewClonedSandbox --target-org prodOrg --alias \
2479
+ MyDevSandbox --set-default --wait 30
2480
+
2471
2481
  FLAG DESCRIPTIONS
2472
2482
  -a, --alias=<value> Alias for the sandbox org.
2473
2483
 
@@ -2479,14 +2489,15 @@ FLAG DESCRIPTIONS
2479
2489
 
2480
2490
  -c, --clone=<value> Name of the sandbox org to clone.
2481
2491
 
2482
- The value of clone must be an existing sandbox in the same target-org.
2492
+ The value of --clone must be an existing sandbox. The existing sandbox, and the new sandbox specified with the
2493
+ --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.
2483
2494
 
2484
2495
  -f, --definition-file=<value> Path to a sandbox definition file.
2485
2496
 
2486
2497
  The sandbox definition file is a blueprint for the sandbox. You can create different definition files for each
2487
2498
  sandbox type that you use in the development process. See
2488
2499
  <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm> for all
2489
- the options you can specify in the defintion file.
2500
+ the options you can specify in the definition file.
2490
2501
 
2491
2502
  -n, --name=<value> Name of the sandbox org.
2492
2503
 
@@ -2522,7 +2533,7 @@ FLAG DESCRIPTIONS
2522
2533
  sandbox.
2523
2534
  ```
2524
2535
 
2525
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/create/sandbox.ts)_
2536
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/create/sandbox.ts)_
2526
2537
 
2527
2538
  ## `sf org create scratch`
2528
2539
 
@@ -2675,7 +2686,7 @@ FLAG DESCRIPTIONS
2675
2686
  Omit this flag to have Salesforce generate a unique username for your org.
2676
2687
  ```
2677
2688
 
2678
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/create/scratch.ts)_
2689
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/create/scratch.ts)_
2679
2690
 
2680
2691
  ## `sf org create user`
2681
2692
 
@@ -2825,7 +2836,7 @@ EXAMPLES
2825
2836
  $ sf org delete sandbox --target-org my-sandbox --no-prompt
2826
2837
  ```
2827
2838
 
2828
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/delete/sandbox.ts)_
2839
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/delete/sandbox.ts)_
2829
2840
 
2830
2841
  ## `sf org delete scratch`
2831
2842
 
@@ -2867,7 +2878,7 @@ EXAMPLES
2867
2878
  $ sf org delete scratch --target-org my-scratch-org --no-prompt
2868
2879
  ```
2869
2880
 
2870
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/delete/scratch.ts)_
2881
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/delete/scratch.ts)_
2871
2882
 
2872
2883
  ## `sf org disable tracking`
2873
2884
 
@@ -2905,7 +2916,7 @@ EXAMPLES
2905
2916
  $ sf org disable tracking
2906
2917
  ```
2907
2918
 
2908
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/disable/tracking.ts)_
2919
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/disable/tracking.ts)_
2909
2920
 
2910
2921
  ## `sf org display`
2911
2922
 
@@ -2949,7 +2960,7 @@ EXAMPLES
2949
2960
  $ sf org display --target-org TestOrg1 --verbose
2950
2961
  ```
2951
2962
 
2952
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/display.ts)_
2963
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/display.ts)_
2953
2964
 
2954
2965
  ## `sf org display user`
2955
2966
 
@@ -3028,7 +3039,7 @@ EXAMPLES
3028
3039
  $ sf org enable tracking
3029
3040
  ```
3030
3041
 
3031
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/enable/tracking.ts)_
3042
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/enable/tracking.ts)_
3032
3043
 
3033
3044
  ## `sf org generate password`
3034
3045
 
@@ -3131,7 +3142,7 @@ EXAMPLES
3131
3142
  $ sf org list --clean
3132
3143
  ```
3133
3144
 
3134
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/list.ts)_
3145
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/list.ts)_
3135
3146
 
3136
3147
  ## `sf org list auth`
3137
3148
 
@@ -3266,7 +3277,7 @@ FLAG DESCRIPTIONS
3266
3277
  Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
3267
3278
  ```
3268
3279
 
3269
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/list/metadata.ts)_
3280
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/list/metadata.ts)_
3270
3281
 
3271
3282
  ## `sf org list metadata-types`
3272
3283
 
@@ -3320,7 +3331,7 @@ FLAG DESCRIPTIONS
3320
3331
  Override the api version used for api requests made by this command
3321
3332
  ```
3322
3333
 
3323
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/list/metadata-types.ts)_
3334
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/list/metadata-types.ts)_
3324
3335
 
3325
3336
  ## `sf org list sobject record-counts`
3326
3337
 
@@ -3884,7 +3895,79 @@ EXAMPLES
3884
3895
  $ sf org open --source-file force-app/main/default/flows/Hello.flow-meta.xml
3885
3896
  ```
3886
3897
 
3887
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/open.ts)_
3898
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/open.ts)_
3899
+
3900
+ ## `sf org refresh sandbox`
3901
+
3902
+ Refresh a sandbox org using the sandbox name.
3903
+
3904
+ ```
3905
+ USAGE
3906
+ $ sf org refresh sandbox -o <value> [--json] [--auto-activate] [-w <value> | --async] [-i <value> | ] [-n <value>] [-f
3907
+ <value>] [--no-prompt]
3908
+
3909
+ FLAGS
3910
+ -f, --definition-file=<value> Path to a sandbox definition file for overriding its configuration when you refresh it.
3911
+ -i, --poll-interval=<seconds> [default: [object Object]] Number of seconds to wait between status polling requests.
3912
+ -n, --name=<value> Name of the existing sandbox org in your production org that you want to refresh.
3913
+ -o, --target-org=<value> (required) Username or alias of the production org that contains the sandbox license.
3914
+ -w, --wait=<minutes> [default: [object Object]] Number of minutes to poll for sandbox refresh status.
3915
+ --async Request the sandbox refresh, but don't wait for it to complete.
3916
+ --[no-]auto-activate Activates the sandbox after a successful refresh.
3917
+ --no-prompt Don't prompt for confirmation about the sandbox refresh.
3918
+
3919
+ GLOBAL FLAGS
3920
+ --json Format output as json.
3921
+
3922
+ DESCRIPTION
3923
+ Refresh a sandbox org using the sandbox name.
3924
+
3925
+ Refreshing a sandbox copies the metadata, and optionally data, from your production org to the refreshed sandbox org.
3926
+ You can optionally specify a definition file if you want to change the configuration of the refreshed sandbox, such as
3927
+ its license type or template ID.
3928
+
3929
+ You're not allowed to change the sandbox name when you refresh it with this command. If you want to change the sandbox
3930
+ name, first delete it with the "org delete sandbox" command. And then recreate it with the "org create sandbox"
3931
+ command and give it a new name.
3932
+
3933
+ EXAMPLES
3934
+ Refresh the sandbox named "devSbx1". The production org that contains the sandbox license has the alias "prodOrg".
3935
+
3936
+ $ sf org refresh sandbox --name devSbx1 --target-org prodOrg
3937
+
3938
+ Refresh the sandbox named "devSbx2", and override the configuration of the refreshed sandbox with the properties in
3939
+ the specified defintion file. The default target org is the production org, so you don't need to specify the
3940
+ `--target-org` flag in this case.
3941
+
3942
+ $ sf org refresh sandbox --name devSbx2 --definition-file devSbx2-config.json
3943
+
3944
+ Refresh the sandbox using the name defined in the definition file. The production org that contains the sandbox
3945
+ license has the alias "prodOrg".
3946
+
3947
+ $ sf org refresh sandbox --definition-file devSbx3-config.json --target-org prodOrg
3948
+
3949
+ FLAG DESCRIPTIONS
3950
+ -f, --definition-file=<value> Path to a sandbox definition file for overriding its configuration when you refresh it.
3951
+
3952
+ The sandbox definition file is a blueprint for the sandbox; use the file to change the sandbox configuration during
3953
+ a refresh. If you don't want to change the sandbox configuration when you refresh it, then simply use the --name
3954
+ flag to specify the sandbox and don't use this flag. See
3955
+ <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm> for all
3956
+ the options you can specify in the definition file.
3957
+
3958
+ -w, --wait=<minutes> Number of minutes to poll for sandbox refresh status.
3959
+
3960
+ If the command continues to run after the wait period, the CLI returns control of the terminal to you and displays
3961
+ the "sf org resume sandbox" command for you run to check the status of the refresh. The displayed command includes
3962
+ the job ID for the running sandbox refresh.
3963
+
3964
+ --async Request the sandbox refresh, but don't wait for it to complete.
3965
+
3966
+ The command immediately displays the job ID and returns control of the terminal to you. This way, you can continue
3967
+ to use the CLI. To check the status of the sandbox refresh, run "sf org resume sandbox".
3968
+ ```
3969
+
3970
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/refresh/sandbox.ts)_
3888
3971
 
3889
3972
  ## `sf org resume sandbox`
3890
3973
 
@@ -3946,7 +4029,7 @@ FLAG DESCRIPTIONS
3946
4029
  returns the job ID. To resume checking the sandbox creation, rerun this command.
3947
4030
  ```
3948
4031
 
3949
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/resume/sandbox.ts)_
4032
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/resume/sandbox.ts)_
3950
4033
 
3951
4034
  ## `sf org resume scratch`
3952
4035
 
@@ -3992,7 +4075,7 @@ FLAG DESCRIPTIONS
3992
4075
  The job ID is valid for 24 hours after you start the scratch org creation.
3993
4076
  ```
3994
4077
 
3995
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.3.16/src/commands/org/resume/scratch.ts)_
4078
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/3.4.1/src/commands/org/resume/scratch.ts)_
3996
4079
 
3997
4080
  ## `sf package1 version create`
3998
4081