@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/oclif.manifest.json
CHANGED
|
@@ -912,10 +912,11 @@
|
|
|
912
912
|
],
|
|
913
913
|
"args": {},
|
|
914
914
|
"deprecateAliases": true,
|
|
915
|
-
"description": "There are two ways to create a sandbox org: specify a definition file that contains the sandbox options or use the --name and --license-type flags to specify the two required options. If you want to set an option other than name or license type, such as apexClassId, you must use a definition file.",
|
|
915
|
+
"description": "There are two ways to create a sandbox org: specify a definition file that contains the sandbox options or use the --name and --license-type flags to specify the two required options. If you want to set an option other than name or license type, such as apexClassId, you must use a definition file.\n\nYou can also use this command to clone an existing sandbox. Use the --clone flag to specify the existing sandbox name and the --name flag to the name of the new sandbox.",
|
|
916
916
|
"examples": [
|
|
917
|
-
"Create a sandbox org using a definition file and give it the alias \"MyDevSandbox\". The production org that contains the sandbox license has the alias \"prodOrg\".\n<%= config.bin %> <%= command.id %> -
|
|
918
|
-
"Create a sandbox org by directly specifying its name and type of license (Developer) instead of using a definition file. Set the sandbox org as your default.\n<%= config.bin %> <%= command.id %> --name mysandbox --license-type Developer --alias MyDevSandbox --target-org prodOrg --set-default"
|
|
917
|
+
"Create a sandbox org using a definition file and give it the alias \"MyDevSandbox\". The production org that contains the sandbox license has the alias \"prodOrg\".\n<%= config.bin %> <%= command.id %> --definition-file config/dev-sandbox-def.json --alias MyDevSandbox --target-org prodOrg",
|
|
918
|
+
"Create a sandbox org by directly specifying its name and type of license (Developer) instead of using a definition file. Set the sandbox org as your default.\n<%= config.bin %> <%= command.id %> --name mysandbox --license-type Developer --alias MyDevSandbox --target-org prodOrg --set-default",
|
|
919
|
+
"Clone the existing sandbox with name \"ExistingSandbox\" and name the new sandbox \"NewClonedSandbox\". Set the new sandbox as your default org. Wait for 30 minutes for the sandbox creation to complete.\n<%= config.bin %> <%= command.id %> --clone ExistingSandbox --name NewClonedSandbox --target-org prodOrg --alias MyDevSandbox --set-default --wait 30"
|
|
919
920
|
],
|
|
920
921
|
"flags": {
|
|
921
922
|
"json": {
|
|
@@ -927,7 +928,7 @@
|
|
|
927
928
|
},
|
|
928
929
|
"definition-file": {
|
|
929
930
|
"char": "f",
|
|
930
|
-
"description": "The sandbox definition file is a blueprint for the sandbox. You can create different definition files for each sandbox type that you use in the development process. See <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm> for all the options you can specify in the
|
|
931
|
+
"description": "The sandbox definition file is a blueprint for the sandbox. You can create different definition files for each sandbox type that you use in the development process. See <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm> for all the options you can specify in the definition file.",
|
|
931
932
|
"exclusive": [
|
|
932
933
|
"name",
|
|
933
934
|
"license-type"
|
|
@@ -1012,7 +1013,7 @@
|
|
|
1012
1013
|
},
|
|
1013
1014
|
"clone": {
|
|
1014
1015
|
"char": "c",
|
|
1015
|
-
"description": "The value of clone must be an existing sandbox
|
|
1016
|
+
"description": "The value of --clone must be an existing sandbox. The existing sandbox, and the new sandbox specified with the --name flag, must both be associated with the production org (--target-org) that contains the sandbox licenses.",
|
|
1016
1017
|
"exclusive": [
|
|
1017
1018
|
"license-type"
|
|
1018
1019
|
],
|
|
@@ -1841,6 +1842,133 @@
|
|
|
1841
1842
|
"metadata:list:org"
|
|
1842
1843
|
]
|
|
1843
1844
|
},
|
|
1845
|
+
"org:refresh:sandbox": {
|
|
1846
|
+
"aliases": [],
|
|
1847
|
+
"args": {},
|
|
1848
|
+
"description": "Refreshing a sandbox copies the metadata, and optionally data, from your production org to the refreshed sandbox org. You can optionally specify a definition file if you want to change the configuration of the refreshed sandbox, such as its license type or template ID.\n\nYou're not allowed to change the sandbox name when you refresh it with this command. If you want to change the sandbox name, first delete it with the \"org delete sandbox\" command. And then recreate it with the \"org create sandbox\" command and give it a new name.",
|
|
1849
|
+
"examples": [
|
|
1850
|
+
"Refresh the sandbox named \"devSbx1\". The production org that contains the sandbox license has the alias \"prodOrg\".\n<%= config.bin %> <%= command.id %> --name devSbx1 --target-org prodOrg",
|
|
1851
|
+
"Refresh the sandbox named \"devSbx2\", and override the configuration of the refreshed sandbox with the properties in the specified defintion file. The default target org is the production org, so you don't need to specify the `--target-org` flag in this case.\n<%= config.bin %> <%= command.id %> --name devSbx2 --definition-file devSbx2-config.json",
|
|
1852
|
+
"Refresh the sandbox using the name defined in the definition file. The production org that contains the sandbox license has the alias \"prodOrg\".\n<%= config.bin %> <%= command.id %> --definition-file devSbx3-config.json --target-org prodOrg"
|
|
1853
|
+
],
|
|
1854
|
+
"flags": {
|
|
1855
|
+
"json": {
|
|
1856
|
+
"description": "Format output as json.",
|
|
1857
|
+
"helpGroup": "GLOBAL",
|
|
1858
|
+
"name": "json",
|
|
1859
|
+
"allowNo": false,
|
|
1860
|
+
"type": "boolean"
|
|
1861
|
+
},
|
|
1862
|
+
"auto-activate": {
|
|
1863
|
+
"name": "auto-activate",
|
|
1864
|
+
"summary": "Activates the sandbox after a successful refresh.",
|
|
1865
|
+
"allowNo": true,
|
|
1866
|
+
"type": "boolean"
|
|
1867
|
+
},
|
|
1868
|
+
"wait": {
|
|
1869
|
+
"char": "w",
|
|
1870
|
+
"description": "If the command continues to run after the wait period, the CLI returns control of the terminal to you and displays the \"<%= config.bin %> org resume sandbox\" command for you run to check the status of the refresh. The displayed command includes the job ID for the running sandbox refresh.",
|
|
1871
|
+
"exclusive": [
|
|
1872
|
+
"async"
|
|
1873
|
+
],
|
|
1874
|
+
"name": "wait",
|
|
1875
|
+
"summary": "Number of minutes to poll for sandbox refresh status.",
|
|
1876
|
+
"default": {
|
|
1877
|
+
"quantity": 30,
|
|
1878
|
+
"unit": 0
|
|
1879
|
+
},
|
|
1880
|
+
"hasDynamicHelp": false,
|
|
1881
|
+
"helpValue": "<minutes>",
|
|
1882
|
+
"multiple": false,
|
|
1883
|
+
"type": "option"
|
|
1884
|
+
},
|
|
1885
|
+
"poll-interval": {
|
|
1886
|
+
"char": "i",
|
|
1887
|
+
"exclusive": [
|
|
1888
|
+
"async"
|
|
1889
|
+
],
|
|
1890
|
+
"name": "poll-interval",
|
|
1891
|
+
"summary": "Number of seconds to wait between status polling requests.",
|
|
1892
|
+
"default": {
|
|
1893
|
+
"quantity": 30,
|
|
1894
|
+
"unit": 2
|
|
1895
|
+
},
|
|
1896
|
+
"hasDynamicHelp": false,
|
|
1897
|
+
"helpValue": "<seconds>",
|
|
1898
|
+
"multiple": false,
|
|
1899
|
+
"type": "option"
|
|
1900
|
+
},
|
|
1901
|
+
"async": {
|
|
1902
|
+
"description": "The command immediately displays the job ID and returns control of the terminal to you. This way, you can continue to use the CLI. To check the status of the sandbox refresh, run \"<%= config.bin %> org resume sandbox\".",
|
|
1903
|
+
"exclusive": [
|
|
1904
|
+
"wait",
|
|
1905
|
+
"poll-interval"
|
|
1906
|
+
],
|
|
1907
|
+
"name": "async",
|
|
1908
|
+
"summary": "Request the sandbox refresh, but don't wait for it to complete.",
|
|
1909
|
+
"allowNo": false,
|
|
1910
|
+
"type": "boolean"
|
|
1911
|
+
},
|
|
1912
|
+
"name": {
|
|
1913
|
+
"char": "n",
|
|
1914
|
+
"name": "name",
|
|
1915
|
+
"summary": "Name of the existing sandbox org in your production org that you want to refresh.",
|
|
1916
|
+
"hasDynamicHelp": false,
|
|
1917
|
+
"multiple": false,
|
|
1918
|
+
"type": "option"
|
|
1919
|
+
},
|
|
1920
|
+
"definition-file": {
|
|
1921
|
+
"char": "f",
|
|
1922
|
+
"description": "The sandbox definition file is a blueprint for the sandbox; use the file to change the sandbox configuration during a refresh. If you don't want to change the sandbox configuration when you refresh it, then simply use the --name flag to specify the sandbox and don't use this flag. See <https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm> for all the options you can specify in the definition file.",
|
|
1923
|
+
"name": "definition-file",
|
|
1924
|
+
"summary": "Path to a sandbox definition file for overriding its configuration when you refresh it.",
|
|
1925
|
+
"hasDynamicHelp": false,
|
|
1926
|
+
"multiple": false,
|
|
1927
|
+
"type": "option"
|
|
1928
|
+
},
|
|
1929
|
+
"target-org": {
|
|
1930
|
+
"char": "o",
|
|
1931
|
+
"name": "target-org",
|
|
1932
|
+
"noCacheDefault": true,
|
|
1933
|
+
"required": true,
|
|
1934
|
+
"summary": "Username or alias of the production org that contains the sandbox license.",
|
|
1935
|
+
"hasDynamicHelp": true,
|
|
1936
|
+
"multiple": false,
|
|
1937
|
+
"type": "option"
|
|
1938
|
+
},
|
|
1939
|
+
"no-prompt": {
|
|
1940
|
+
"name": "no-prompt",
|
|
1941
|
+
"summary": "Don't prompt for confirmation about the sandbox refresh.",
|
|
1942
|
+
"allowNo": false,
|
|
1943
|
+
"type": "boolean"
|
|
1944
|
+
}
|
|
1945
|
+
},
|
|
1946
|
+
"hasDynamicHelp": true,
|
|
1947
|
+
"hiddenAliases": [],
|
|
1948
|
+
"id": "org:refresh:sandbox",
|
|
1949
|
+
"pluginAlias": "@salesforce/plugin-org",
|
|
1950
|
+
"pluginName": "@salesforce/plugin-org",
|
|
1951
|
+
"pluginType": "core",
|
|
1952
|
+
"strict": true,
|
|
1953
|
+
"summary": "Refresh a sandbox org using the sandbox name.",
|
|
1954
|
+
"isESM": true,
|
|
1955
|
+
"relativePath": [
|
|
1956
|
+
"lib",
|
|
1957
|
+
"commands",
|
|
1958
|
+
"org",
|
|
1959
|
+
"refresh",
|
|
1960
|
+
"sandbox.js"
|
|
1961
|
+
],
|
|
1962
|
+
"aliasPermutations": [],
|
|
1963
|
+
"permutations": [
|
|
1964
|
+
"org:refresh:sandbox",
|
|
1965
|
+
"refresh:org:sandbox",
|
|
1966
|
+
"refresh:sandbox:org",
|
|
1967
|
+
"org:sandbox:refresh",
|
|
1968
|
+
"sandbox:org:refresh",
|
|
1969
|
+
"sandbox:refresh:org"
|
|
1970
|
+
]
|
|
1971
|
+
},
|
|
1844
1972
|
"org:resume:sandbox": {
|
|
1845
1973
|
"aliases": [
|
|
1846
1974
|
"env:resume:sandbox"
|
|
@@ -2020,5 +2148,5 @@
|
|
|
2020
2148
|
]
|
|
2021
2149
|
}
|
|
2022
2150
|
},
|
|
2023
|
-
"version": "3.
|
|
2151
|
+
"version": "3.4.0"
|
|
2024
2152
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-org",
|
|
3
3
|
"description": "Commands to interact with Salesforce orgs",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@oclif/core": "^3.18.1",
|
|
9
|
-
"@salesforce/core": "^6.
|
|
9
|
+
"@salesforce/core": "^6.6.0",
|
|
10
10
|
"@salesforce/kit": "^3.0.15",
|
|
11
|
-
"@salesforce/sf-plugins-core": "^7.1.
|
|
11
|
+
"@salesforce/sf-plugins-core": "^7.1.14",
|
|
12
12
|
"@salesforce/source-deploy-retrieve": "^10.3.8",
|
|
13
13
|
"chalk": "^5.3.0",
|
|
14
14
|
"change-case": "^5.4.3",
|
|
@@ -16,17 +16,16 @@
|
|
|
16
16
|
"open": "^10.0.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@oclif/plugin-command-snapshot": "^5.0.
|
|
19
|
+
"@oclif/plugin-command-snapshot": "^5.0.9",
|
|
20
20
|
"@salesforce/cli-plugins-testkit": "^5.1.9",
|
|
21
|
-
"@salesforce/dev-scripts": "^8.
|
|
22
|
-
"@salesforce/plugin-command-reference": "^3.0.
|
|
21
|
+
"@salesforce/dev-scripts": "^8.4.1",
|
|
22
|
+
"@salesforce/plugin-command-reference": "^3.0.69",
|
|
23
23
|
"@salesforce/ts-sinon": "1.4.19",
|
|
24
24
|
"@types/shelljs": "^0.8.14",
|
|
25
25
|
"eslint-plugin-sf-plugin": "^1.17.3",
|
|
26
26
|
"moment": "^2.30.1",
|
|
27
27
|
"oclif": "^4.4.12",
|
|
28
28
|
"shelljs": "^0.8.5",
|
|
29
|
-
"shx": "0.3.4",
|
|
30
29
|
"ts-node": "^10.9.2",
|
|
31
30
|
"typescript": "^5.3.3"
|
|
32
31
|
},
|
|
@@ -36,8 +35,9 @@
|
|
|
36
35
|
"files": [
|
|
37
36
|
"/lib",
|
|
38
37
|
"/messages",
|
|
39
|
-
"/
|
|
40
|
-
"/oclif.lock"
|
|
38
|
+
"/npm-shrinkwrap.json",
|
|
39
|
+
"/oclif.lock",
|
|
40
|
+
"/oclif.manifest.json"
|
|
41
41
|
],
|
|
42
42
|
"homepage": "https://github.com/salesforcecli/plugin-org",
|
|
43
43
|
"keywords": [
|
|
@@ -100,13 +100,12 @@
|
|
|
100
100
|
"build": "wireit",
|
|
101
101
|
"clean": "sf-clean",
|
|
102
102
|
"clean-all": "sf-clean all",
|
|
103
|
-
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json oclif.lock",
|
|
104
103
|
"compile": "wireit",
|
|
105
104
|
"docs": "sf-docs",
|
|
106
105
|
"format": "wireit",
|
|
107
106
|
"link-check": "wireit",
|
|
108
107
|
"lint": "wireit",
|
|
109
|
-
"postpack": "
|
|
108
|
+
"postpack": "sf-clean --ignore-signing-artifacts",
|
|
110
109
|
"prepack": "sf-prepack",
|
|
111
110
|
"prepare": "sf-install",
|
|
112
111
|
"test": "wireit",
|
|
@@ -238,7 +237,7 @@
|
|
|
238
237
|
"exports": "./lib/index.js",
|
|
239
238
|
"type": "module",
|
|
240
239
|
"sfdx": {
|
|
241
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.
|
|
242
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.
|
|
240
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.4.0.crt",
|
|
241
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/3.4.0.sig"
|
|
243
242
|
}
|
|
244
243
|
}
|