@salesforce/plugin-org 3.6.3 → 4.0.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 +14 -14
- package/lib/commands/force/org/create.js +4 -6
- package/lib/commands/force/org/create.js.map +1 -1
- package/lib/commands/org/create/scratch.js +1 -1
- package/lib/commands/org/create/scratch.js.map +1 -1
- package/lib/commands/org/refresh/sandbox.js +1 -1
- package/lib/commands/org/refresh/sandbox.js.map +1 -1
- package/lib/shared/scratchOrgRequest.d.ts +1 -24
- package/lib/shared/timeUtils.js +2 -2
- package/lib/shared/timeUtils.js.map +1 -1
- package/lib/shared/utils.d.ts +1 -1
- package/messages/clone.md +0 -52
- package/npm-shrinkwrap.json +4448 -8487
- package/oclif.lock +1249 -3099
- package/oclif.manifest.json +1 -268
- package/package.json +8 -10
- package/lib/commands/force/org/clone.d.ts +0 -29
- package/lib/commands/force/org/clone.js +0 -106
- package/lib/commands/force/org/clone.js.map +0 -1
- package/lib/commands/force/org/status.d.ts +0 -23
- package/lib/commands/force/org/status.js +0 -90
- package/lib/commands/force/org/status.js.map +0 -1
- package/messages/status.md +0 -33
package/oclif.manifest.json
CHANGED
|
@@ -377,146 +377,6 @@
|
|
|
377
377
|
"open:org"
|
|
378
378
|
]
|
|
379
379
|
},
|
|
380
|
-
"force:org:clone": {
|
|
381
|
-
"aliases": [],
|
|
382
|
-
"args": {},
|
|
383
|
-
"deprecationOptions": {
|
|
384
|
-
"to": "org:create:sandbox",
|
|
385
|
-
"version": "60.0"
|
|
386
|
-
},
|
|
387
|
-
"description": "There are two ways to clone a sandbox: either specify a sandbox definition file or provide key=value pairs at the command line. Key-value pairs at the command-line override their equivalent sandbox definition file values. In either case, you must specify both the \"SandboxName\" and \"SourceSandboxName\" options to set the names of the new sandbox and the one being cloned, respectively.\n\nSet the --targetusername (-u) parameter to a production org with sandbox licenses. The --type (-t) parameter is required and must be set to \"sandbox\".",
|
|
388
|
-
"examples": [
|
|
389
|
-
"$ <%= config.bin %> <%= command.id %> -t sandbox -f config/dev-sandbox-def.json -u prodOrg -a MyDevSandbox",
|
|
390
|
-
"$ <%= config.bin %> <%= command.id %> -t sandbox SandboxName=NewClonedSandbox SourceSandboxName=ExistingSandbox -u prodOrg -a MyDevSandbox"
|
|
391
|
-
],
|
|
392
|
-
"flags": {
|
|
393
|
-
"json": {
|
|
394
|
-
"description": "Format output as json.",
|
|
395
|
-
"helpGroup": "GLOBAL",
|
|
396
|
-
"name": "json",
|
|
397
|
-
"allowNo": false,
|
|
398
|
-
"type": "boolean"
|
|
399
|
-
},
|
|
400
|
-
"flags-dir": {
|
|
401
|
-
"helpGroup": "GLOBAL",
|
|
402
|
-
"name": "flags-dir",
|
|
403
|
-
"summary": "Import flag values from a directory.",
|
|
404
|
-
"hasDynamicHelp": false,
|
|
405
|
-
"multiple": false,
|
|
406
|
-
"type": "option"
|
|
407
|
-
},
|
|
408
|
-
"target-org": {
|
|
409
|
-
"aliases": [
|
|
410
|
-
"targetusername",
|
|
411
|
-
"u"
|
|
412
|
-
],
|
|
413
|
-
"char": "o",
|
|
414
|
-
"deprecateAliases": true,
|
|
415
|
-
"name": "target-org",
|
|
416
|
-
"noCacheDefault": true,
|
|
417
|
-
"required": true,
|
|
418
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
419
|
-
"hasDynamicHelp": true,
|
|
420
|
-
"multiple": false,
|
|
421
|
-
"type": "option"
|
|
422
|
-
},
|
|
423
|
-
"api-version": {
|
|
424
|
-
"aliases": [
|
|
425
|
-
"apiversion"
|
|
426
|
-
],
|
|
427
|
-
"deprecateAliases": true,
|
|
428
|
-
"description": "Override the api version used for api requests made by this command",
|
|
429
|
-
"name": "api-version",
|
|
430
|
-
"hasDynamicHelp": false,
|
|
431
|
-
"multiple": false,
|
|
432
|
-
"type": "option"
|
|
433
|
-
},
|
|
434
|
-
"type": {
|
|
435
|
-
"char": "t",
|
|
436
|
-
"name": "type",
|
|
437
|
-
"required": true,
|
|
438
|
-
"summary": "Type of org to create.",
|
|
439
|
-
"hasDynamicHelp": false,
|
|
440
|
-
"multiple": false,
|
|
441
|
-
"options": [
|
|
442
|
-
"sandbox"
|
|
443
|
-
],
|
|
444
|
-
"type": "option"
|
|
445
|
-
},
|
|
446
|
-
"definitionfile": {
|
|
447
|
-
"char": "f",
|
|
448
|
-
"name": "definitionfile",
|
|
449
|
-
"summary": "Path to the sandbox definition file.",
|
|
450
|
-
"hasDynamicHelp": false,
|
|
451
|
-
"multiple": false,
|
|
452
|
-
"type": "option"
|
|
453
|
-
},
|
|
454
|
-
"setdefaultusername": {
|
|
455
|
-
"char": "s",
|
|
456
|
-
"name": "setdefaultusername",
|
|
457
|
-
"summary": "Set the cloned org as your default.",
|
|
458
|
-
"allowNo": false,
|
|
459
|
-
"type": "boolean"
|
|
460
|
-
},
|
|
461
|
-
"setalias": {
|
|
462
|
-
"char": "a",
|
|
463
|
-
"name": "setalias",
|
|
464
|
-
"summary": "Alias for the cloned org.",
|
|
465
|
-
"hasDynamicHelp": false,
|
|
466
|
-
"multiple": false,
|
|
467
|
-
"type": "option"
|
|
468
|
-
},
|
|
469
|
-
"wait": {
|
|
470
|
-
"char": "w",
|
|
471
|
-
"description": "Sets the streaming client socket timeout, in minutes. If the streaming client socket has no contact from the server for a number of minutes, the client exits. Specify a longer wait time if timeouts occur frequently.",
|
|
472
|
-
"name": "wait",
|
|
473
|
-
"summary": "Number of minutes to wait while polling for status.",
|
|
474
|
-
"default": "6 minutes",
|
|
475
|
-
"hasDynamicHelp": true,
|
|
476
|
-
"multiple": false,
|
|
477
|
-
"type": "option"
|
|
478
|
-
},
|
|
479
|
-
"loglevel": {
|
|
480
|
-
"deprecated": {
|
|
481
|
-
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
482
|
-
},
|
|
483
|
-
"hidden": true,
|
|
484
|
-
"name": "loglevel",
|
|
485
|
-
"hasDynamicHelp": false,
|
|
486
|
-
"multiple": false,
|
|
487
|
-
"type": "option"
|
|
488
|
-
}
|
|
489
|
-
},
|
|
490
|
-
"hasDynamicHelp": true,
|
|
491
|
-
"hidden": true,
|
|
492
|
-
"hiddenAliases": [],
|
|
493
|
-
"id": "force:org:clone",
|
|
494
|
-
"pluginAlias": "@salesforce/plugin-org",
|
|
495
|
-
"pluginName": "@salesforce/plugin-org",
|
|
496
|
-
"pluginType": "core",
|
|
497
|
-
"state": "deprecated",
|
|
498
|
-
"strict": false,
|
|
499
|
-
"summary": "Clone a sandbox org.",
|
|
500
|
-
"enableJsonFlag": true,
|
|
501
|
-
"SANDBOXDEF_SRC_SANDBOXNAME": "SourceSandboxName",
|
|
502
|
-
"isESM": true,
|
|
503
|
-
"relativePath": [
|
|
504
|
-
"lib",
|
|
505
|
-
"commands",
|
|
506
|
-
"force",
|
|
507
|
-
"org",
|
|
508
|
-
"clone.js"
|
|
509
|
-
],
|
|
510
|
-
"aliasPermutations": [],
|
|
511
|
-
"permutations": [
|
|
512
|
-
"force:org:clone",
|
|
513
|
-
"org:force:clone",
|
|
514
|
-
"org:clone:force",
|
|
515
|
-
"force:clone:org",
|
|
516
|
-
"clone:force:org",
|
|
517
|
-
"clone:org:force"
|
|
518
|
-
]
|
|
519
|
-
},
|
|
520
380
|
"force:org:create": {
|
|
521
381
|
"aliases": [],
|
|
522
382
|
"args": {},
|
|
@@ -826,133 +686,6 @@
|
|
|
826
686
|
"delete:org:force"
|
|
827
687
|
]
|
|
828
688
|
},
|
|
829
|
-
"force:org:status": {
|
|
830
|
-
"aliases": [],
|
|
831
|
-
"args": {},
|
|
832
|
-
"deprecationOptions": {
|
|
833
|
-
"to": "org:resume:sandbox",
|
|
834
|
-
"version": "60.0"
|
|
835
|
-
},
|
|
836
|
-
"description": "Use this command to check the status of your sandbox creation or clone and, if the sandbox is ready, authenticate to it.\n\nUse the --wait (-w) parameter to specify the number of minutes that the command waits for the sandbox creation or clone to complete before returning control of the terminal to you.\n\nSet the --target-org (-o) parameter to the username or alias of the production org that contains the sandbox license.",
|
|
837
|
-
"examples": [
|
|
838
|
-
"$ <%= config.bin %> <%= command.id %> --sandboxname DevSbx1 --setalias MySandbox -u prodOrg",
|
|
839
|
-
"$ <%= config.bin %> <%= command.id %> --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg"
|
|
840
|
-
],
|
|
841
|
-
"flags": {
|
|
842
|
-
"json": {
|
|
843
|
-
"description": "Format output as json.",
|
|
844
|
-
"helpGroup": "GLOBAL",
|
|
845
|
-
"name": "json",
|
|
846
|
-
"allowNo": false,
|
|
847
|
-
"type": "boolean"
|
|
848
|
-
},
|
|
849
|
-
"flags-dir": {
|
|
850
|
-
"helpGroup": "GLOBAL",
|
|
851
|
-
"name": "flags-dir",
|
|
852
|
-
"summary": "Import flag values from a directory.",
|
|
853
|
-
"hasDynamicHelp": false,
|
|
854
|
-
"multiple": false,
|
|
855
|
-
"type": "option"
|
|
856
|
-
},
|
|
857
|
-
"target-org": {
|
|
858
|
-
"aliases": [
|
|
859
|
-
"targetusername",
|
|
860
|
-
"u"
|
|
861
|
-
],
|
|
862
|
-
"char": "o",
|
|
863
|
-
"deprecateAliases": true,
|
|
864
|
-
"name": "target-org",
|
|
865
|
-
"noCacheDefault": true,
|
|
866
|
-
"required": true,
|
|
867
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
868
|
-
"hasDynamicHelp": true,
|
|
869
|
-
"multiple": false,
|
|
870
|
-
"type": "option"
|
|
871
|
-
},
|
|
872
|
-
"api-version": {
|
|
873
|
-
"aliases": [
|
|
874
|
-
"apiversion"
|
|
875
|
-
],
|
|
876
|
-
"deprecateAliases": true,
|
|
877
|
-
"description": "Override the api version used for api requests made by this command",
|
|
878
|
-
"name": "api-version",
|
|
879
|
-
"hasDynamicHelp": false,
|
|
880
|
-
"multiple": false,
|
|
881
|
-
"type": "option"
|
|
882
|
-
},
|
|
883
|
-
"sandboxname": {
|
|
884
|
-
"char": "n",
|
|
885
|
-
"name": "sandboxname",
|
|
886
|
-
"required": true,
|
|
887
|
-
"summary": "Name of the sandbox org to check status for.",
|
|
888
|
-
"hasDynamicHelp": false,
|
|
889
|
-
"multiple": false,
|
|
890
|
-
"type": "option"
|
|
891
|
-
},
|
|
892
|
-
"setdefaultusername": {
|
|
893
|
-
"char": "s",
|
|
894
|
-
"name": "setdefaultusername",
|
|
895
|
-
"summary": "Set the created or cloned org as your default.",
|
|
896
|
-
"allowNo": false,
|
|
897
|
-
"type": "boolean"
|
|
898
|
-
},
|
|
899
|
-
"setalias": {
|
|
900
|
-
"char": "a",
|
|
901
|
-
"name": "setalias",
|
|
902
|
-
"summary": "Alias for the created or cloned org.",
|
|
903
|
-
"hasDynamicHelp": false,
|
|
904
|
-
"multiple": false,
|
|
905
|
-
"type": "option"
|
|
906
|
-
},
|
|
907
|
-
"wait": {
|
|
908
|
-
"char": "w",
|
|
909
|
-
"name": "wait",
|
|
910
|
-
"summary": "Number of minutes to wait while polling for status.",
|
|
911
|
-
"default": "6 minutes",
|
|
912
|
-
"hasDynamicHelp": true,
|
|
913
|
-
"multiple": false,
|
|
914
|
-
"type": "option"
|
|
915
|
-
},
|
|
916
|
-
"loglevel": {
|
|
917
|
-
"deprecated": {
|
|
918
|
-
"message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
|
|
919
|
-
},
|
|
920
|
-
"hidden": true,
|
|
921
|
-
"name": "loglevel",
|
|
922
|
-
"hasDynamicHelp": false,
|
|
923
|
-
"multiple": false,
|
|
924
|
-
"type": "option"
|
|
925
|
-
}
|
|
926
|
-
},
|
|
927
|
-
"hasDynamicHelp": true,
|
|
928
|
-
"hidden": true,
|
|
929
|
-
"hiddenAliases": [],
|
|
930
|
-
"id": "force:org:status",
|
|
931
|
-
"pluginAlias": "@salesforce/plugin-org",
|
|
932
|
-
"pluginName": "@salesforce/plugin-org",
|
|
933
|
-
"pluginType": "core",
|
|
934
|
-
"state": "deprecated",
|
|
935
|
-
"strict": true,
|
|
936
|
-
"summary": "Check the status of a sandbox, and if complete, authenticate to it.",
|
|
937
|
-
"enableJsonFlag": true,
|
|
938
|
-
"isESM": true,
|
|
939
|
-
"relativePath": [
|
|
940
|
-
"lib",
|
|
941
|
-
"commands",
|
|
942
|
-
"force",
|
|
943
|
-
"org",
|
|
944
|
-
"status.js"
|
|
945
|
-
],
|
|
946
|
-
"aliasPermutations": [],
|
|
947
|
-
"permutations": [
|
|
948
|
-
"force:org:status",
|
|
949
|
-
"org:force:status",
|
|
950
|
-
"org:status:force",
|
|
951
|
-
"force:status:org",
|
|
952
|
-
"status:force:org",
|
|
953
|
-
"status:org:force"
|
|
954
|
-
]
|
|
955
|
-
},
|
|
956
689
|
"org:create:sandbox": {
|
|
957
690
|
"aliases": [
|
|
958
691
|
"env:create:sandbox"
|
|
@@ -2249,5 +1982,5 @@
|
|
|
2249
1982
|
]
|
|
2250
1983
|
}
|
|
2251
1984
|
},
|
|
2252
|
-
"version": "
|
|
1985
|
+
"version": "4.0.1"
|
|
2253
1986
|
}
|
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": "
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -11,23 +11,21 @@
|
|
|
11
11
|
"@salesforce/sf-plugins-core": "^8.0.1",
|
|
12
12
|
"@salesforce/source-deploy-retrieve": "^10.5.5",
|
|
13
13
|
"chalk": "^5.3.0",
|
|
14
|
-
"change-case": "^5.4.
|
|
14
|
+
"change-case": "^5.4.4",
|
|
15
15
|
"is-wsl": "^3.1.0",
|
|
16
16
|
"open": "^10.1.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@oclif/plugin-command-snapshot": "^5.1.2",
|
|
20
|
-
"@salesforce/cli-plugins-testkit": "^5.1.
|
|
21
|
-
"@salesforce/dev-scripts": "^8.4.
|
|
20
|
+
"@salesforce/cli-plugins-testkit": "^5.1.14",
|
|
21
|
+
"@salesforce/dev-scripts": "^8.4.4",
|
|
22
22
|
"@salesforce/plugin-command-reference": "^3.0.70",
|
|
23
23
|
"@salesforce/ts-sinon": "1.4.19",
|
|
24
|
-
"@types/shelljs": "^0.8.14",
|
|
25
24
|
"eslint-plugin-sf-plugin": "^1.17.4",
|
|
26
25
|
"moment": "^2.30.1",
|
|
27
|
-
"oclif": "^4.5
|
|
28
|
-
"shelljs": "^0.8.5",
|
|
26
|
+
"oclif": "^4.7.5",
|
|
29
27
|
"ts-node": "^10.9.2",
|
|
30
|
-
"typescript": "^5.
|
|
28
|
+
"typescript": "^5.4.3"
|
|
31
29
|
},
|
|
32
30
|
"engines": {
|
|
33
31
|
"node": ">=18.0.0"
|
|
@@ -237,7 +235,7 @@
|
|
|
237
235
|
"exports": "./lib/index.js",
|
|
238
236
|
"type": "module",
|
|
239
237
|
"sfdx": {
|
|
240
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/
|
|
241
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/
|
|
238
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/4.0.1.crt",
|
|
239
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/4.0.1.sig"
|
|
242
240
|
}
|
|
243
241
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { SandboxProcessObject } from '@salesforce/core';
|
|
3
|
-
export declare class OrgCloneCommand extends SfCommand<SandboxProcessObject> {
|
|
4
|
-
static readonly examples: string[];
|
|
5
|
-
static readonly summary: string;
|
|
6
|
-
static readonly description: string;
|
|
7
|
-
static readonly strict = false;
|
|
8
|
-
static state: string;
|
|
9
|
-
static readonly hidden = true;
|
|
10
|
-
static deprecationOptions: {
|
|
11
|
-
to: string;
|
|
12
|
-
version: string;
|
|
13
|
-
};
|
|
14
|
-
static readonly SANDBOXDEF_SRC_SANDBOXNAME = "SourceSandboxName";
|
|
15
|
-
static readonly flags: {
|
|
16
|
-
'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
17
|
-
'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
18
|
-
type: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<"sandbox", import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
19
|
-
definitionfile: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
20
|
-
setdefaultusername: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
21
|
-
setalias: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
22
|
-
wait: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/kit").Duration, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
23
|
-
loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
24
|
-
};
|
|
25
|
-
private logger;
|
|
26
|
-
run(): Promise<SandboxProcessObject>;
|
|
27
|
-
setAlias(alias: string, username: string): Promise<void>;
|
|
28
|
-
setDefaultUsername(username: string): Promise<void>;
|
|
29
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2021, 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 { Flags, SfCommand, requiredOrgFlagWithDeprecations, parseVarArgs, orgApiVersionFlagWithDeprecations, loglevel, } from '@salesforce/sf-plugins-core';
|
|
8
|
-
import { SfError, Lifecycle, Messages, OrgTypes, OrgConfigProperties, StateAggregator, SandboxEvents, Logger, } from '@salesforce/core';
|
|
9
|
-
import requestFunctions from '../../../shared/sandboxRequest.js';
|
|
10
|
-
import { SandboxReporter } from '../../../shared/sandboxReporter.js';
|
|
11
|
-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
12
|
-
const messages = Messages.loadMessages('@salesforce/plugin-org', 'clone');
|
|
13
|
-
export class OrgCloneCommand extends SfCommand {
|
|
14
|
-
static examples = messages.getMessages('examples');
|
|
15
|
-
static summary = messages.getMessage('summary');
|
|
16
|
-
static description = messages.getMessage('description');
|
|
17
|
-
static strict = false;
|
|
18
|
-
static state = 'deprecated';
|
|
19
|
-
static hidden = true;
|
|
20
|
-
static deprecationOptions = {
|
|
21
|
-
to: 'org:create:sandbox',
|
|
22
|
-
version: '60.0',
|
|
23
|
-
};
|
|
24
|
-
static SANDBOXDEF_SRC_SANDBOXNAME = 'SourceSandboxName';
|
|
25
|
-
static flags = {
|
|
26
|
-
'target-org': requiredOrgFlagWithDeprecations,
|
|
27
|
-
'api-version': orgApiVersionFlagWithDeprecations,
|
|
28
|
-
type: Flags.custom({
|
|
29
|
-
options: ['sandbox'],
|
|
30
|
-
})({
|
|
31
|
-
char: 't',
|
|
32
|
-
summary: messages.getMessage('flags.type.summary'),
|
|
33
|
-
required: true,
|
|
34
|
-
}),
|
|
35
|
-
definitionfile: Flags.file({
|
|
36
|
-
char: 'f',
|
|
37
|
-
exists: true,
|
|
38
|
-
summary: messages.getMessage('flags.definitionfile.summary'),
|
|
39
|
-
}),
|
|
40
|
-
setdefaultusername: Flags.boolean({
|
|
41
|
-
char: 's',
|
|
42
|
-
summary: messages.getMessage('flags.setdefaultusername.summary'),
|
|
43
|
-
}),
|
|
44
|
-
setalias: Flags.string({
|
|
45
|
-
char: 'a',
|
|
46
|
-
summary: messages.getMessage('flags.setalias.summary'),
|
|
47
|
-
}),
|
|
48
|
-
wait: Flags.duration({
|
|
49
|
-
unit: 'minutes',
|
|
50
|
-
char: 'w',
|
|
51
|
-
summary: messages.getMessage('flags.wait.summary'),
|
|
52
|
-
description: messages.getMessage('flags.wait.description'),
|
|
53
|
-
min: 2,
|
|
54
|
-
defaultValue: 6,
|
|
55
|
-
}),
|
|
56
|
-
loglevel,
|
|
57
|
-
};
|
|
58
|
-
logger;
|
|
59
|
-
async run() {
|
|
60
|
-
const { flags, args, argv } = await this.parse(OrgCloneCommand);
|
|
61
|
-
this.logger = await Logger.child(this.constructor.name);
|
|
62
|
-
const varargs = parseVarArgs(args, argv);
|
|
63
|
-
const lifecycle = Lifecycle.getInstance();
|
|
64
|
-
if (flags.type === OrgTypes.Sandbox.toString()) {
|
|
65
|
-
lifecycle.on(SandboxEvents.EVENT_ASYNC_RESULT, async (results) =>
|
|
66
|
-
// Keep all console output in the command
|
|
67
|
-
Promise.resolve(this.log(messages.getMessage('commandSuccess', [results.Id, this.config.bin, results.SandboxName]))));
|
|
68
|
-
lifecycle.on(SandboxEvents.EVENT_STATUS, async (results) => Promise.resolve(this.log(SandboxReporter.sandboxProgress(results))));
|
|
69
|
-
lifecycle.on(SandboxEvents.EVENT_RESULT, async (results) => {
|
|
70
|
-
const { sandboxReadyForUse, data } = SandboxReporter.logSandboxProcessResult(results);
|
|
71
|
-
this.log(sandboxReadyForUse);
|
|
72
|
-
this.styledHeader('Sandbox Org Cloning Status');
|
|
73
|
-
this.table(data, {
|
|
74
|
-
key: { header: 'Name' },
|
|
75
|
-
value: { header: 'Value' },
|
|
76
|
-
});
|
|
77
|
-
if (results?.sandboxRes?.authUserName) {
|
|
78
|
-
if (flags.setalias)
|
|
79
|
-
await this.setAlias(flags.setalias, results.sandboxRes.authUserName);
|
|
80
|
-
if (flags.setdefaultusername)
|
|
81
|
-
await this.setDefaultUsername(results.sandboxRes.authUserName);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
const { sandboxReq, srcSandboxName } = await requestFunctions.createSandboxRequest(true, flags.definitionfile, this.logger, varargs);
|
|
85
|
-
this.logger.debug('Calling clone with SandboxRequest: %s and SandboxName: %s ', sandboxReq, srcSandboxName);
|
|
86
|
-
flags['target-org'].getConnection(flags['api-version']);
|
|
87
|
-
return flags['target-org'].cloneSandbox(sandboxReq, srcSandboxName, { wait: flags.wait });
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
throw new SfError(messages.getMessage('commandOrganizationTypeNotSupport', [OrgTypes.Sandbox]), messages.getMessage('commandOrganizationTypeNotSupportAction', [OrgTypes.Sandbox]));
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
async setAlias(alias, username) {
|
|
94
|
-
const stateAggregator = await StateAggregator.getInstance();
|
|
95
|
-
stateAggregator.aliases.set(alias, username);
|
|
96
|
-
const result = stateAggregator.aliases.getAll();
|
|
97
|
-
this.logger.debug('Set Alias: %s result: %s', alias, result);
|
|
98
|
-
}
|
|
99
|
-
async setDefaultUsername(username) {
|
|
100
|
-
const globalConfig = this.configAggregator.getGlobalConfig();
|
|
101
|
-
globalConfig.set(OrgConfigProperties.TARGET_ORG, username);
|
|
102
|
-
const result = await globalConfig.write();
|
|
103
|
-
this.logger.debug('Set defaultUsername: %s result: %s', username, result);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
//# sourceMappingURL=clone.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clone.js","sourceRoot":"","sources":["../../../../src/commands/force/org/clone.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K,CAAC,kBAAkB,CAAC,QAAgB;QAC9C,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,CAAC;QAC7D,YAAY,CAAC,GAAG,CAAC,mBAAmB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC3D,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;QAC1C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oCAAoC,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC5E,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
-
import { SandboxProcessObject } from '@salesforce/core';
|
|
3
|
-
export declare class OrgStatusCommand extends SfCommand<SandboxProcessObject> {
|
|
4
|
-
static readonly summary: string;
|
|
5
|
-
static readonly description: string;
|
|
6
|
-
static readonly examples: string[];
|
|
7
|
-
static state: string;
|
|
8
|
-
static readonly hidden = true;
|
|
9
|
-
static deprecationOptions: {
|
|
10
|
-
to: string;
|
|
11
|
-
version: string;
|
|
12
|
-
};
|
|
13
|
-
static readonly flags: {
|
|
14
|
-
'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
15
|
-
'api-version': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
16
|
-
sandboxname: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
17
|
-
setdefaultusername: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
|
|
18
|
-
setalias: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
19
|
-
wait: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/kit").Duration, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
20
|
-
loglevel: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
|
|
21
|
-
};
|
|
22
|
-
run(): Promise<SandboxProcessObject>;
|
|
23
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2021, 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 { Flags, SfCommand, requiredOrgFlagWithDeprecations, orgApiVersionFlagWithDeprecations, loglevel, } from '@salesforce/sf-plugins-core';
|
|
8
|
-
import { Lifecycle, Messages, StateAggregator, SandboxEvents, OrgConfigProperties, Logger, } from '@salesforce/core';
|
|
9
|
-
import { SandboxReporter } from '../../../shared/sandboxReporter.js';
|
|
10
|
-
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
11
|
-
const messages = Messages.loadMessages('@salesforce/plugin-org', 'status');
|
|
12
|
-
export class OrgStatusCommand extends SfCommand {
|
|
13
|
-
static summary = messages.getMessage('summary');
|
|
14
|
-
static description = messages.getMessage('description');
|
|
15
|
-
static examples = messages.getMessages('examples');
|
|
16
|
-
static state = 'deprecated';
|
|
17
|
-
static hidden = true;
|
|
18
|
-
static deprecationOptions = {
|
|
19
|
-
to: 'org:resume:sandbox',
|
|
20
|
-
version: '60.0',
|
|
21
|
-
};
|
|
22
|
-
static flags = {
|
|
23
|
-
'target-org': requiredOrgFlagWithDeprecations,
|
|
24
|
-
'api-version': orgApiVersionFlagWithDeprecations,
|
|
25
|
-
sandboxname: Flags.string({
|
|
26
|
-
char: 'n',
|
|
27
|
-
summary: messages.getMessage('flags.sandboxname.summary'),
|
|
28
|
-
required: true,
|
|
29
|
-
}),
|
|
30
|
-
setdefaultusername: Flags.boolean({
|
|
31
|
-
char: 's',
|
|
32
|
-
summary: messages.getMessage('flags.setdefaultusername.summary'),
|
|
33
|
-
}),
|
|
34
|
-
setalias: Flags.string({
|
|
35
|
-
char: 'a',
|
|
36
|
-
summary: messages.getMessage('flags.setalias.summary'),
|
|
37
|
-
}),
|
|
38
|
-
wait: Flags.duration({
|
|
39
|
-
unit: 'minutes',
|
|
40
|
-
char: 'w',
|
|
41
|
-
summary: messages.getMessage('flags.wait.summary'),
|
|
42
|
-
min: 2,
|
|
43
|
-
defaultValue: 6,
|
|
44
|
-
}),
|
|
45
|
-
loglevel,
|
|
46
|
-
};
|
|
47
|
-
async run() {
|
|
48
|
-
const { flags } = await this.parse(OrgStatusCommand);
|
|
49
|
-
flags['target-org'].getConnection(flags['api-version']);
|
|
50
|
-
const logger = await Logger.child(this.constructor.name);
|
|
51
|
-
logger.debug('Status started with args %s ', flags);
|
|
52
|
-
const lifecycle = Lifecycle.getInstance();
|
|
53
|
-
lifecycle.on(SandboxEvents.EVENT_STATUS, async (results) => Promise.resolve(this.log(SandboxReporter.sandboxProgress(results))));
|
|
54
|
-
lifecycle.on(SandboxEvents.EVENT_RESULT, async (results) => {
|
|
55
|
-
const resultMsg = `Sandbox ${results.sandboxProcessObj.SandboxName}(${results.sandboxProcessObj.Id}) is ready for use.`;
|
|
56
|
-
this.log(resultMsg);
|
|
57
|
-
const { data } = SandboxReporter.logSandboxProcessResult(results);
|
|
58
|
-
this.styledHeader('Sandbox Org Status');
|
|
59
|
-
this.table(data, {
|
|
60
|
-
key: { header: 'Name' },
|
|
61
|
-
value: { header: 'Value' },
|
|
62
|
-
});
|
|
63
|
-
if (results.sandboxRes?.authUserName) {
|
|
64
|
-
if (flags.setalias) {
|
|
65
|
-
const stateAggregator = await StateAggregator.getInstance();
|
|
66
|
-
stateAggregator.aliases.set(flags.setalias, results.sandboxRes.authUserName);
|
|
67
|
-
await stateAggregator.aliases.write();
|
|
68
|
-
logger.debug('Set Alias: %s result: %s', flags.setalias, results.sandboxRes.authUserName);
|
|
69
|
-
}
|
|
70
|
-
if (flags.setdefaultusername) {
|
|
71
|
-
const globalConfig = this.configAggregator.getGlobalConfig();
|
|
72
|
-
globalConfig.set(OrgConfigProperties.TARGET_ORG, results.sandboxRes.authUserName);
|
|
73
|
-
const result = await globalConfig.write();
|
|
74
|
-
logger.debug('Set defaultUsername: %s result: %s', flags.setdefaultusername, result);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
logger.debug('Calling auth for SandboxName args: %s ', flags.sandboxname);
|
|
79
|
-
const results = await flags['target-org'].sandboxStatus(flags.sandboxname, {
|
|
80
|
-
wait: flags.wait,
|
|
81
|
-
});
|
|
82
|
-
logger.debug('Results for auth call: %s ', results);
|
|
83
|
-
if (!results) {
|
|
84
|
-
this.styledHeader('Sandbox Org Creation Status');
|
|
85
|
-
this.log('No SandboxProcess Result Found');
|
|
86
|
-
}
|
|
87
|
-
return results;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../../../src/commands/force/org/status.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,KAAK,EACL,SAAS,EACT,+BAA+B,EAC/B,iCAAiC,EACjC,QAAQ,GACT,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,SAAS,EACT,QAAQ,EACR,eAAe,EACf,aAAa,EACb,mBAAmB,EAInB,MAAM,GACP,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,QAAQ,CAAC,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.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# summary
|
|
2
|
-
|
|
3
|
-
Check the status of a sandbox, and if complete, authenticate to it.
|
|
4
|
-
|
|
5
|
-
# examples
|
|
6
|
-
|
|
7
|
-
- $ <%= config.bin %> <%= command.id %> --sandboxname DevSbx1 --setalias MySandbox -u prodOrg
|
|
8
|
-
|
|
9
|
-
- $ <%= config.bin %> <%= command.id %> --sandboxname DevSbx1 --wait 45 --setdefaultusername -u prodOrg
|
|
10
|
-
|
|
11
|
-
# description
|
|
12
|
-
|
|
13
|
-
Use this command to check the status of your sandbox creation or clone and, if the sandbox is ready, authenticate to it.
|
|
14
|
-
|
|
15
|
-
Use the --wait (-w) parameter to specify the number of minutes that the command waits for the sandbox creation or clone to complete before returning control of the terminal to you.
|
|
16
|
-
|
|
17
|
-
Set the --target-org (-o) parameter to the username or alias of the production org that contains the sandbox license.
|
|
18
|
-
|
|
19
|
-
# flags.sandboxname.summary
|
|
20
|
-
|
|
21
|
-
Name of the sandbox org to check status for.
|
|
22
|
-
|
|
23
|
-
# flags.wait.summary
|
|
24
|
-
|
|
25
|
-
Number of minutes to wait while polling for status.
|
|
26
|
-
|
|
27
|
-
# flags.setdefaultusername.summary
|
|
28
|
-
|
|
29
|
-
Set the created or cloned org as your default.
|
|
30
|
-
|
|
31
|
-
# flags.setalias.summary
|
|
32
|
-
|
|
33
|
-
Alias for the created or cloned org.
|