@salesforce/plugin-org 3.3.16 → 3.4.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 +99 -16
- package/lib/commands/org/create/sandbox.js +1 -0
- package/lib/commands/org/create/sandbox.js.map +1 -1
- package/lib/commands/org/create/scratch.js.map +1 -1
- package/lib/commands/org/refresh/sandbox.d.ts +28 -0
- package/lib/commands/org/refresh/sandbox.js +233 -0
- package/lib/commands/org/refresh/sandbox.js.map +1 -0
- package/lib/commands/org/resume/sandbox.js +8 -2
- package/lib/commands/org/resume/sandbox.js.map +1 -1
- package/lib/shared/sandboxCommandBase.d.ts +2 -1
- package/lib/shared/sandboxCommandBase.js +12 -5
- package/lib/shared/sandboxCommandBase.js.map +1 -1
- package/lib/shared/sandboxProgress.d.ts +6 -1
- package/lib/shared/sandboxProgress.js +5 -3
- package/lib/shared/sandboxProgress.js.map +1 -1
- package/lib/shared/sandboxRequest.d.ts +3 -1
- package/lib/shared/sandboxRequest.js +8 -3
- package/lib/shared/sandboxRequest.js.map +1 -1
- package/lib/shared/timeUtils.js.map +1 -1
- package/messages/create.sandbox.md +9 -3
- package/messages/refresh.sandbox.md +104 -0
- package/messages/sandboxbase.md +3 -3
- package/npm-shrinkwrap.json +18246 -0
- package/oclif.lock +1766 -1720
- package/oclif.manifest.json +134 -6
- package/package.json +12 -13
package/README.md
CHANGED
|
@@ -110,6 +110,7 @@ the [SandboxNuts](https://github.com/salesforcecli/plugin-org/actions/workflows/
|
|
|
110
110
|
- [`sf org list metadata`](#sf-org-list-metadata)
|
|
111
111
|
- [`sf org list metadata-types`](#sf-org-list-metadata-types)
|
|
112
112
|
- [`sf org open`](#sf-org-open)
|
|
113
|
+
- [`sf org refresh sandbox`](#sf-org-refresh-sandbox)
|
|
113
114
|
- [`sf org resume sandbox`](#sf-org-resume-sandbox)
|
|
114
115
|
- [`sf org resume scratch`](#sf-org-resume-scratch)
|
|
115
116
|
|
|
@@ -147,6 +148,9 @@ DESCRIPTION
|
|
|
147
148
|
--name and --license-type flags to specify the two required options. If you want to set an option other than name or
|
|
148
149
|
license type, such as apexClassId, you must use a definition file.
|
|
149
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
|
+
|
|
150
154
|
ALIASES
|
|
151
155
|
$ sf env create sandbox
|
|
152
156
|
|
|
@@ -154,7 +158,7 @@ EXAMPLES
|
|
|
154
158
|
Create a sandbox org using a definition file and give it the alias "MyDevSandbox". The production org that contains
|
|
155
159
|
the sandbox license has the alias "prodOrg".
|
|
156
160
|
|
|
157
|
-
$ sf org create sandbox -
|
|
161
|
+
$ sf org create sandbox --definition-file config/dev-sandbox-def.json --alias MyDevSandbox --target-org prodOrg
|
|
158
162
|
|
|
159
163
|
Create a sandbox org by directly specifying its name and type of license (Developer) instead of using a definition
|
|
160
164
|
file. Set the sandbox org as your default.
|
|
@@ -162,6 +166,12 @@ EXAMPLES
|
|
|
162
166
|
$ sf org create sandbox --name mysandbox --license-type Developer --alias MyDevSandbox --target-org prodOrg \
|
|
163
167
|
--set-default
|
|
164
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
|
+
|
|
165
175
|
FLAG DESCRIPTIONS
|
|
166
176
|
-a, --alias=<value> Alias for the sandbox org.
|
|
167
177
|
|
|
@@ -173,14 +183,15 @@ FLAG DESCRIPTIONS
|
|
|
173
183
|
|
|
174
184
|
-c, --clone=<value> Name of the sandbox org to clone.
|
|
175
185
|
|
|
176
|
-
The value of clone must be an existing sandbox
|
|
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.
|
|
177
188
|
|
|
178
189
|
-f, --definition-file=<value> Path to a sandbox definition file.
|
|
179
190
|
|
|
180
191
|
The sandbox definition file is a blueprint for the sandbox. You can create different definition files for each
|
|
181
192
|
sandbox type that you use in the development process. See
|
|
182
193
|
<https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm> for all
|
|
183
|
-
the options you can specify in the
|
|
194
|
+
the options you can specify in the definition file.
|
|
184
195
|
|
|
185
196
|
-n, --name=<value> Name of the sandbox org.
|
|
186
197
|
|
|
@@ -216,7 +227,7 @@ FLAG DESCRIPTIONS
|
|
|
216
227
|
sandbox.
|
|
217
228
|
```
|
|
218
229
|
|
|
219
|
-
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
230
|
+
_See code: [src/commands/org/create/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/create/sandbox.ts)_
|
|
220
231
|
|
|
221
232
|
## `sf org create scratch`
|
|
222
233
|
|
|
@@ -369,7 +380,7 @@ FLAG DESCRIPTIONS
|
|
|
369
380
|
Omit this flag to have Salesforce generate a unique username for your org.
|
|
370
381
|
```
|
|
371
382
|
|
|
372
|
-
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
383
|
+
_See code: [src/commands/org/create/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/create/scratch.ts)_
|
|
373
384
|
|
|
374
385
|
## `sf org delete sandbox`
|
|
375
386
|
|
|
@@ -413,7 +424,7 @@ EXAMPLES
|
|
|
413
424
|
$ sf org delete sandbox --target-org my-sandbox --no-prompt
|
|
414
425
|
```
|
|
415
426
|
|
|
416
|
-
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
427
|
+
_See code: [src/commands/org/delete/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/delete/sandbox.ts)_
|
|
417
428
|
|
|
418
429
|
## `sf org delete scratch`
|
|
419
430
|
|
|
@@ -455,7 +466,7 @@ EXAMPLES
|
|
|
455
466
|
$ sf org delete scratch --target-org my-scratch-org --no-prompt
|
|
456
467
|
```
|
|
457
468
|
|
|
458
|
-
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
469
|
+
_See code: [src/commands/org/delete/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/delete/scratch.ts)_
|
|
459
470
|
|
|
460
471
|
## `sf org disable tracking`
|
|
461
472
|
|
|
@@ -493,7 +504,7 @@ EXAMPLES
|
|
|
493
504
|
$ sf org disable tracking
|
|
494
505
|
```
|
|
495
506
|
|
|
496
|
-
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
507
|
+
_See code: [src/commands/org/disable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/disable/tracking.ts)_
|
|
497
508
|
|
|
498
509
|
## `sf org display`
|
|
499
510
|
|
|
@@ -537,7 +548,7 @@ EXAMPLES
|
|
|
537
548
|
$ sf org display --target-org TestOrg1 --verbose
|
|
538
549
|
```
|
|
539
550
|
|
|
540
|
-
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
551
|
+
_See code: [src/commands/org/display.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/display.ts)_
|
|
541
552
|
|
|
542
553
|
## `sf org enable tracking`
|
|
543
554
|
|
|
@@ -578,7 +589,7 @@ EXAMPLES
|
|
|
578
589
|
$ sf org enable tracking
|
|
579
590
|
```
|
|
580
591
|
|
|
581
|
-
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
592
|
+
_See code: [src/commands/org/enable/tracking.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/enable/tracking.ts)_
|
|
582
593
|
|
|
583
594
|
## `sf org list`
|
|
584
595
|
|
|
@@ -616,7 +627,7 @@ EXAMPLES
|
|
|
616
627
|
$ sf org list --clean
|
|
617
628
|
```
|
|
618
629
|
|
|
619
|
-
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
630
|
+
_See code: [src/commands/org/list.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/list.ts)_
|
|
620
631
|
|
|
621
632
|
## `sf org list metadata`
|
|
622
633
|
|
|
@@ -681,7 +692,7 @@ FLAG DESCRIPTIONS
|
|
|
681
692
|
Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
|
|
682
693
|
```
|
|
683
694
|
|
|
684
|
-
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
695
|
+
_See code: [src/commands/org/list/metadata.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/list/metadata.ts)_
|
|
685
696
|
|
|
686
697
|
## `sf org list metadata-types`
|
|
687
698
|
|
|
@@ -735,7 +746,7 @@ FLAG DESCRIPTIONS
|
|
|
735
746
|
Override the api version used for api requests made by this command
|
|
736
747
|
```
|
|
737
748
|
|
|
738
|
-
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
749
|
+
_See code: [src/commands/org/list/metadata-types.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/list/metadata-types.ts)_
|
|
739
750
|
|
|
740
751
|
## `sf org open`
|
|
741
752
|
|
|
@@ -806,7 +817,79 @@ EXAMPLES
|
|
|
806
817
|
$ sf org open --source-file force-app/main/default/flows/Hello.flow-meta.xml
|
|
807
818
|
```
|
|
808
819
|
|
|
809
|
-
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
820
|
+
_See code: [src/commands/org/open.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.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] [--auto-activate] [-w <value> | --async] [-i <value> | ] [-n <value>] [-f
|
|
829
|
+
<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 Activates 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
|
+
|
|
892
|
+
_See code: [src/commands/org/refresh/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/refresh/sandbox.ts)_
|
|
810
893
|
|
|
811
894
|
## `sf org resume sandbox`
|
|
812
895
|
|
|
@@ -868,7 +951,7 @@ FLAG DESCRIPTIONS
|
|
|
868
951
|
returns the job ID. To resume checking the sandbox creation, rerun this command.
|
|
869
952
|
```
|
|
870
953
|
|
|
871
|
-
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
954
|
+
_See code: [src/commands/org/resume/sandbox.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/resume/sandbox.ts)_
|
|
872
955
|
|
|
873
956
|
## `sf org resume scratch`
|
|
874
957
|
|
|
@@ -914,6 +997,6 @@ FLAG DESCRIPTIONS
|
|
|
914
997
|
The job ID is valid for 24 hours after you start the scratch org creation.
|
|
915
998
|
```
|
|
916
999
|
|
|
917
|
-
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.
|
|
1000
|
+
_See code: [src/commands/org/resume/scratch.ts](https://github.com/salesforcecli/plugin-org/blob/3.4.0/src/commands/org/resume/scratch.ts)_
|
|
918
1001
|
|
|
919
1002
|
<!-- commandsstop -->
|
|
@@ -183,6 +183,7 @@ export default class CreateSandbox extends SandboxCommandBase {
|
|
|
183
183
|
alias: this.flags.alias,
|
|
184
184
|
setDefault: this.flags['set-default'],
|
|
185
185
|
prodOrgUsername: this.flags['target-org'].getUsername(),
|
|
186
|
+
action: 'Create',
|
|
186
187
|
sandboxProcessObject: {
|
|
187
188
|
SandboxName: sandboxReq.SandboxName,
|
|
188
189
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.js","sourceRoot":"","sources":["../../../../src/commands/org/create/sandbox.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;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AAK,4BAA4B,EAAE,CAAC;gBAC5E,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC9B,MAAM,gBAAgB,GAAI,KAAK,CAAC,IAAqC,CAAC,gBAAgB,CAAC;gBACvF,MAAM,aAAa,GAAG,QAAQ,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC,CAAC;gBAEhG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;gBACzB,IAAI,CAAC,KAAK,CAAC,wDAAwD,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YACjG,CAAC;iBAAM,CAAC;gBACN,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;IACH,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Duration } from '@salesforce/kit';
|
|
2
|
+
import { SandboxProcessObject } from '@salesforce/core';
|
|
3
|
+
import { Interfaces } from '@oclif/core';
|
|
4
|
+
import { SandboxCommandBase } from '../../../shared/sandboxCommandBase.js';
|
|
5
|
+
export default class RefreshSandbox extends SandboxCommandBase<SandboxProcessObject> {
|
|
6
|
+
static summary: string;
|
|
7
|
+
static description: string;
|
|
8
|
+
static examples: string[];
|
|
9
|
+
static flags: {
|
|
10
|
+
'auto-activate': Interfaces.BooleanFlag<boolean>;
|
|
11
|
+
wait: Interfaces.OptionFlag<Duration, Interfaces.CustomOptions>;
|
|
12
|
+
'poll-interval': Interfaces.OptionFlag<Duration, Interfaces.CustomOptions>;
|
|
13
|
+
async: Interfaces.BooleanFlag<boolean>;
|
|
14
|
+
name: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
15
|
+
'definition-file': Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
16
|
+
'target-org': Interfaces.OptionFlag<import("@salesforce/core").Org, Interfaces.CustomOptions>;
|
|
17
|
+
'no-prompt': Interfaces.BooleanFlag<boolean>;
|
|
18
|
+
};
|
|
19
|
+
private flags;
|
|
20
|
+
private sbxConfig;
|
|
21
|
+
run(): Promise<SandboxProcessObject>;
|
|
22
|
+
protected getCheckSandboxStatusParams(): string[];
|
|
23
|
+
private refreshSandbox;
|
|
24
|
+
private resolveConfig;
|
|
25
|
+
private validateFlags;
|
|
26
|
+
private initSandboxProcessData;
|
|
27
|
+
private confirmSandboxRefresh;
|
|
28
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022, salesforce.com, inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* Licensed under the BSD 3-Clause license.
|
|
5
|
+
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
import { Duration, omit } from '@salesforce/kit';
|
|
8
|
+
import { Flags } from '@salesforce/sf-plugins-core';
|
|
9
|
+
import { Lifecycle, Messages, SandboxEvents, SfError } from '@salesforce/core';
|
|
10
|
+
import requestFunctions from '../../../shared/sandboxRequest.js';
|
|
11
|
+
import { SandboxCommandBase } from '../../../shared/sandboxCommandBase.js';
|
|
12
|
+
// Fields of SandboxInfo
|
|
13
|
+
const uneditableFields = ['IsDeleted', 'CreatedDate', 'CreatedById', 'LastModifiedDate', 'LastModifiedById'];
|
|
14
|
+
const fields = [
|
|
15
|
+
'Id',
|
|
16
|
+
'SandboxName', // (string)
|
|
17
|
+
'LicenseType', // (string) DEVELOPER | DEVELOPER PRO | PARTIAL | FULL
|
|
18
|
+
'TemplateId', // (string) reference to PartitionLevelScheme
|
|
19
|
+
'HistoryDays', // (int)
|
|
20
|
+
'CopyChatter', // (boolean)
|
|
21
|
+
'AutoActivate', // (boolean)
|
|
22
|
+
'ApexClassId', // (string) apex class ID
|
|
23
|
+
'Description', // (string)
|
|
24
|
+
'SourceId', // (string) SandboxInfoId as the source org used for a clone
|
|
25
|
+
// 'ActivationUserGroupId', // Currently not supported but might be added in API v61.0
|
|
26
|
+
// 'CopyArchivedActivities', -- only for full sandboxes; depends if a license was purchased
|
|
27
|
+
...uneditableFields,
|
|
28
|
+
];
|
|
29
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
30
|
+
const messages = Messages.loadMessages('@salesforce/plugin-org', 'refresh.sandbox');
|
|
31
|
+
export default class RefreshSandbox extends SandboxCommandBase {
|
|
32
|
+
static summary = messages.getMessage('summary');
|
|
33
|
+
static description = messages.getMessage('description');
|
|
34
|
+
static examples = messages.getMessages('examples');
|
|
35
|
+
static flags = {
|
|
36
|
+
'auto-activate': Flags.boolean({
|
|
37
|
+
summary: messages.getMessage('flags.auto-activate.summary'),
|
|
38
|
+
default: true,
|
|
39
|
+
allowNo: true,
|
|
40
|
+
}),
|
|
41
|
+
wait: Flags.duration({
|
|
42
|
+
char: 'w',
|
|
43
|
+
summary: messages.getMessage('flags.wait.summary'),
|
|
44
|
+
description: messages.getMessage('flags.wait.description'),
|
|
45
|
+
min: 1,
|
|
46
|
+
unit: 'minutes',
|
|
47
|
+
default: Duration.minutes(30),
|
|
48
|
+
helpValue: '<minutes>',
|
|
49
|
+
exclusive: ['async'],
|
|
50
|
+
}),
|
|
51
|
+
'poll-interval': Flags.duration({
|
|
52
|
+
char: 'i',
|
|
53
|
+
summary: messages.getMessage('flags.poll-interval.summary'),
|
|
54
|
+
min: 15,
|
|
55
|
+
unit: 'seconds',
|
|
56
|
+
default: Duration.seconds(30),
|
|
57
|
+
helpValue: '<seconds>',
|
|
58
|
+
exclusive: ['async'],
|
|
59
|
+
}),
|
|
60
|
+
async: Flags.boolean({
|
|
61
|
+
summary: messages.getMessage('flags.async.summary'),
|
|
62
|
+
description: messages.getMessage('flags.async.description'),
|
|
63
|
+
exclusive: ['wait', 'poll-interval'],
|
|
64
|
+
}),
|
|
65
|
+
name: Flags.string({
|
|
66
|
+
char: 'n',
|
|
67
|
+
summary: messages.getMessage('flags.name.summary'),
|
|
68
|
+
parse: (name) => {
|
|
69
|
+
if (name.length > 10) {
|
|
70
|
+
throw messages.createError('error.SandboxNameLength', [name]);
|
|
71
|
+
}
|
|
72
|
+
return Promise.resolve(name);
|
|
73
|
+
},
|
|
74
|
+
}),
|
|
75
|
+
'definition-file': Flags.file({
|
|
76
|
+
exists: true,
|
|
77
|
+
char: 'f',
|
|
78
|
+
summary: messages.getMessage('flags.definitionFile.summary'),
|
|
79
|
+
description: messages.getMessage('flags.definitionFile.description'),
|
|
80
|
+
}),
|
|
81
|
+
'target-org': Flags.requiredOrg({
|
|
82
|
+
char: 'o',
|
|
83
|
+
summary: messages.getMessage('flags.targetOrg.summary'),
|
|
84
|
+
required: true,
|
|
85
|
+
}),
|
|
86
|
+
'no-prompt': Flags.boolean({
|
|
87
|
+
summary: messages.getMessage('flags.noPrompt.summary'),
|
|
88
|
+
}),
|
|
89
|
+
};
|
|
90
|
+
flags;
|
|
91
|
+
sbxConfig;
|
|
92
|
+
async run() {
|
|
93
|
+
this.sandboxRequestConfig = await this.getSandboxRequestConfig();
|
|
94
|
+
this.flags = (await this.parse(RefreshSandbox)).flags;
|
|
95
|
+
this.validateFlags();
|
|
96
|
+
this.sbxConfig = await this.resolveConfig();
|
|
97
|
+
this.debug('Refresh started with args %s ', this.flags);
|
|
98
|
+
return this.refreshSandbox();
|
|
99
|
+
}
|
|
100
|
+
getCheckSandboxStatusParams() {
|
|
101
|
+
return [
|
|
102
|
+
this.config.bin,
|
|
103
|
+
...(this.latestSandboxProgressObj ? [this.latestSandboxProgressObj.Id] : []),
|
|
104
|
+
this.flags['target-org'].getUsername(),
|
|
105
|
+
];
|
|
106
|
+
}
|
|
107
|
+
async refreshSandbox() {
|
|
108
|
+
const prodOrg = this.flags['target-org'];
|
|
109
|
+
await this.confirmSandboxRefresh(this.sbxConfig);
|
|
110
|
+
const lifecycle = Lifecycle.getInstance();
|
|
111
|
+
this.registerLifecycleListeners(lifecycle, { isAsync: this.flags['async'], prodOrg });
|
|
112
|
+
// remove uneditable fields before refresh
|
|
113
|
+
const updateableSandboxInfo = omit(this.sbxConfig, uneditableFields);
|
|
114
|
+
this.debug('Calling refresh with SandboxInfo: %s ', updateableSandboxInfo);
|
|
115
|
+
this.initSandboxProcessData(this.sbxConfig);
|
|
116
|
+
try {
|
|
117
|
+
if (!this.flags.async) {
|
|
118
|
+
this.spinner.start('Sandbox Refresh');
|
|
119
|
+
}
|
|
120
|
+
const sandboxProcessObject = await prodOrg.refreshSandbox(updateableSandboxInfo, {
|
|
121
|
+
wait: this.flags['wait'],
|
|
122
|
+
interval: this.flags['poll-interval'],
|
|
123
|
+
async: this.flags['async'],
|
|
124
|
+
});
|
|
125
|
+
this.latestSandboxProgressObj = sandboxProcessObject;
|
|
126
|
+
// persist sandbox refresh request in cache for resume
|
|
127
|
+
this.sandboxRequestData = {
|
|
128
|
+
prodOrgUsername: this.flags['target-org'].getUsername(),
|
|
129
|
+
action: 'Refresh',
|
|
130
|
+
sandboxProcessObject,
|
|
131
|
+
sandboxRequest: this.sbxConfig,
|
|
132
|
+
};
|
|
133
|
+
this.saveSandboxProgressConfig();
|
|
134
|
+
if (this.flags.async) {
|
|
135
|
+
process.exitCode = 68;
|
|
136
|
+
}
|
|
137
|
+
return sandboxProcessObject;
|
|
138
|
+
}
|
|
139
|
+
catch (err) {
|
|
140
|
+
this.spinner.stop();
|
|
141
|
+
if (this.pollingTimeOut && this.latestSandboxProgressObj) {
|
|
142
|
+
void lifecycle.emit(SandboxEvents.EVENT_ASYNC_RESULT, undefined);
|
|
143
|
+
process.exitCode = 68;
|
|
144
|
+
return this.latestSandboxProgressObj;
|
|
145
|
+
}
|
|
146
|
+
else if (err instanceof SfError &&
|
|
147
|
+
err.name === 'SandboxRefreshNotCompleteError' &&
|
|
148
|
+
this.latestSandboxProgressObj) {
|
|
149
|
+
void lifecycle.emit(SandboxEvents.EVENT_ASYNC_RESULT, undefined);
|
|
150
|
+
process.exitCode = 68;
|
|
151
|
+
return this.latestSandboxProgressObj;
|
|
152
|
+
}
|
|
153
|
+
throw err;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
async resolveConfig() {
|
|
157
|
+
const defFile = this.flags['definition-file'];
|
|
158
|
+
let sbxName = this.flags['name'];
|
|
159
|
+
const defFileContent = defFile ? requestFunctions.readSandboxDefFile(defFile) : {};
|
|
160
|
+
// Ensure we have a sandbox name.
|
|
161
|
+
if (!defFileContent?.SandboxName && !sbxName) {
|
|
162
|
+
throw messages.createError('error.NoSandboxName');
|
|
163
|
+
}
|
|
164
|
+
// Warn if sandbox name is in `--name` and `--definition-file` flags and they differ.
|
|
165
|
+
if (defFileContent?.SandboxName && sbxName && sbxName !== defFileContent?.SandboxName) {
|
|
166
|
+
this.warn(messages.createWarning('warning.ConflictingSandboxNames', [sbxName, defFileContent?.SandboxName]));
|
|
167
|
+
}
|
|
168
|
+
sbxName ??= defFileContent.SandboxName; // The code above ensures a value for sbxName
|
|
169
|
+
const prodOrg = this.flags['target-org'];
|
|
170
|
+
const prodOrgConnection = prodOrg.getConnection();
|
|
171
|
+
let sandboxInfo;
|
|
172
|
+
try {
|
|
173
|
+
const soql = `SELECT ${fields.join(',')} FROM SandboxInfo WHERE SandboxName='${sbxName}'`;
|
|
174
|
+
const sandboxInfoRecord = await prodOrgConnection.singleRecordQuery(soql, { tooling: true });
|
|
175
|
+
sandboxInfo = omit(sandboxInfoRecord, 'attributes');
|
|
176
|
+
}
|
|
177
|
+
catch (error) {
|
|
178
|
+
const err = error instanceof Error ? error : typeof error === 'string' ? SfError.wrap(error) : new SfError('unknown');
|
|
179
|
+
if (err.name === 'SingleRecordQuery_NoRecords') {
|
|
180
|
+
throw messages.createError('error.SandboxNotFound', [sbxName, prodOrg.getUsername()]);
|
|
181
|
+
}
|
|
182
|
+
throw err;
|
|
183
|
+
}
|
|
184
|
+
// assign overrides
|
|
185
|
+
sandboxInfo = Object.assign(sandboxInfo, defFileContent, {
|
|
186
|
+
SandboxName: sbxName,
|
|
187
|
+
AutoActivate: this.flags['auto-activate'],
|
|
188
|
+
});
|
|
189
|
+
return sandboxInfo;
|
|
190
|
+
}
|
|
191
|
+
// Ensure polling flags make sense
|
|
192
|
+
validateFlags() {
|
|
193
|
+
if (!this.flags['poll-interval'] || !this.flags.wait) {
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
if (this.flags['poll-interval'].seconds > this.flags.wait.seconds) {
|
|
197
|
+
throw messages.createError('error.pollIntervalGreaterThanWait', [
|
|
198
|
+
this.flags['poll-interval'].seconds,
|
|
199
|
+
this.flags.wait.seconds,
|
|
200
|
+
]);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
initSandboxProcessData(sandboxInfo) {
|
|
204
|
+
this.sandboxRequestData = {
|
|
205
|
+
...this.sandboxRequestData,
|
|
206
|
+
prodOrgUsername: this.flags['target-org'].getUsername(),
|
|
207
|
+
action: 'Refresh',
|
|
208
|
+
sandboxProcessObject: {
|
|
209
|
+
SandboxName: sandboxInfo.SandboxName,
|
|
210
|
+
},
|
|
211
|
+
sandboxRequest: sandboxInfo,
|
|
212
|
+
};
|
|
213
|
+
this.saveSandboxProgressConfig();
|
|
214
|
+
}
|
|
215
|
+
async confirmSandboxRefresh(sandboxInfo) {
|
|
216
|
+
if (this.flags['no-prompt'] || this.jsonEnabled())
|
|
217
|
+
return;
|
|
218
|
+
const columns = {
|
|
219
|
+
key: { header: 'Field' },
|
|
220
|
+
value: { header: 'Value' },
|
|
221
|
+
};
|
|
222
|
+
const data = Object.entries(sandboxInfo).map(([key, value]) => ({ key, value: value ?? 'null' }));
|
|
223
|
+
this.styledHeader('Config Sandbox Refresh');
|
|
224
|
+
this.table(data, columns, {});
|
|
225
|
+
if (!(await this.confirm({
|
|
226
|
+
message: messages.getMessage('isConfigurationOk'),
|
|
227
|
+
ms: 30000,
|
|
228
|
+
}))) {
|
|
229
|
+
throw messages.createError('error.UserNotSatisfiedWithSandboxConfig');
|
|
230
|
+
}
|
|
231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AAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,WAAW,EAAY;YACjE,MAAM,EAAE,SAAS;YACjB,oBAAoB,EAAE;gBACpB,WAAW,EAAE,WAAW,CAAC,WAAW;aACrC;YACD,cAAc,EAAE,WAAW;SAC5B,CAAC;QAEF,IAAI,CAAC,yBAAyB,EAAE,CAAC;IACnC,CAAC;IAEO,KAAK,CAAC,qBAAqB,CAAC,WAAwB;QAC1D,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE;YAAE,OAAO;QAE1D,MAAM,OAAO,GAAsD;YACjE,GAAG,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;YACxB,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;SAC3B,CAAC;QAEF,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC;QAClG,IAAI,CAAC,YAAY,CAAC,wBAAwB,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;QAE9B,IACE,CAAC,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC;YACnB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC;YACjD,EAAE,EAAE,KAAM;SACX,CAAC,CAAC,EACH,CAAC;YACD,MAAM,QAAQ,CAAC,WAAW,CAAC,yCAAyC,CAAC,CAAC;QACxE,CAAC;IACH,CAAC"}
|
|
@@ -113,9 +113,9 @@ export default class ResumeSandbox extends SandboxCommandBase {
|
|
|
113
113
|
}
|
|
114
114
|
const sandboxReq = this.createResumeSandboxRequest();
|
|
115
115
|
if (this.flags.wait?.seconds && this.flags.wait.seconds > 0) {
|
|
116
|
-
this.spinner.start(
|
|
116
|
+
this.spinner.start(`Resume ${this.sandboxRequestData.action ?? 'Create/Refresh'}`);
|
|
117
117
|
}
|
|
118
|
-
this.debug('Calling
|
|
118
|
+
this.debug('Calling resume with ResumeSandboxRequest: %s ', sandboxReq);
|
|
119
119
|
try {
|
|
120
120
|
return await this.prodOrg.resumeSandbox(sandboxReq, {
|
|
121
121
|
wait: this.flags.wait ?? Duration.seconds(0),
|
|
@@ -156,6 +156,11 @@ export default class ResumeSandbox extends SandboxCommandBase {
|
|
|
156
156
|
const sce = entries.find(([, e]) => e?.sandboxProcessObject?.Id === this.flags['job-id'])?.[1];
|
|
157
157
|
sandboxRequestCacheEntry = sce;
|
|
158
158
|
}
|
|
159
|
+
// If the action is in the cache entry, use it.
|
|
160
|
+
if (sandboxRequestCacheEntry?.action) {
|
|
161
|
+
this.action = sandboxRequestCacheEntry?.action;
|
|
162
|
+
this.sandboxProgress.action = sandboxRequestCacheEntry?.action;
|
|
163
|
+
}
|
|
159
164
|
return {
|
|
160
165
|
...(sandboxRequestCacheEntry ?? {
|
|
161
166
|
sandboxProcessObject: { SandboxName: this.flags.name },
|
|
@@ -163,6 +168,7 @@ export default class ResumeSandbox extends SandboxCommandBase {
|
|
|
163
168
|
setDefault: false,
|
|
164
169
|
}),
|
|
165
170
|
prodOrgUsername: sandboxRequestCacheEntry?.prodOrgUsername ?? this.flags['target-org']?.getUsername(),
|
|
171
|
+
action: sandboxRequestCacheEntry?.action ?? 'Create', // default to Create
|
|
166
172
|
};
|
|
167
173
|
}
|
|
168
174
|
async verifyIfAuthExists({ prodOrg, sandboxName, jobId, lifecycle, }) {
|