Skip to content

Commit d882aac

Browse files
authored
feat!: core7 prep (#1009)
* feat!: remove org status and org clone BREAKING CHANGE: remove force:org:status and force:org:clone commands * refactor: remove deprecated AliasAccessor references * chore: remove shelljs dependency * chore: fix message from PR
1 parent f6c332a commit d882aac

File tree

13 files changed

+11
-985
lines changed

13 files changed

+11
-985
lines changed

command-snapshot.json

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
11
[
2-
{
3-
"alias": [],
4-
"command": "force:org:clone",
5-
"flagAliases": ["apiversion", "targetusername", "u"],
6-
"flagChars": ["a", "f", "o", "s", "t", "w"],
7-
"flags": [
8-
"api-version",
9-
"definitionfile",
10-
"flags-dir",
11-
"json",
12-
"loglevel",
13-
"setalias",
14-
"setdefaultusername",
15-
"target-org",
16-
"type",
17-
"wait"
18-
],
19-
"plugin": "@salesforce/plugin-org"
20-
},
212
{
223
"alias": [],
234
"command": "force:org:create",
@@ -51,24 +32,6 @@
5132
"flags": ["api-version", "flags-dir", "json", "loglevel", "no-prompt", "target-org", "targetdevhubusername"],
5233
"plugin": "@salesforce/plugin-org"
5334
},
54-
{
55-
"alias": [],
56-
"command": "force:org:status",
57-
"flagAliases": ["apiversion", "targetusername", "u"],
58-
"flagChars": ["a", "n", "o", "s", "w"],
59-
"flags": [
60-
"api-version",
61-
"flags-dir",
62-
"json",
63-
"loglevel",
64-
"sandboxname",
65-
"setalias",
66-
"setdefaultusername",
67-
"target-org",
68-
"wait"
69-
],
70-
"plugin": "@salesforce/plugin-org"
71-
},
7235
{
7336
"alias": ["env:create:sandbox"],
7437
"command": "org:create:sandbox",

messages/clone.md

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,3 @@
1-
# summary
2-
3-
Clone a sandbox org.
4-
5-
# description
6-
7-
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.
8-
9-
Set the --targetusername (-u) parameter to a production org with sandbox licenses. The --type (-t) parameter is required and must be set to "sandbox".
10-
11-
# examples
12-
13-
- $ <%= config.bin %> <%= command.id %> -t sandbox -f config/dev-sandbox-def.json -u prodOrg -a MyDevSandbox
14-
15-
- $ <%= config.bin %> <%= command.id %> -t sandbox SandboxName=NewClonedSandbox SourceSandboxName=ExistingSandbox -u prodOrg -a MyDevSandbox
16-
17-
# flags.type.summary
18-
19-
Type of org to create.
20-
21-
# flags.wait.summary
22-
23-
Number of minutes to wait while polling for status.
24-
25-
# flags.setdefaultusername.summary
26-
27-
Set the cloned org as your default.
28-
29-
# flags.setalias.summary
30-
31-
Alias for the cloned org.
32-
33-
# flags.definitionfile.summary
34-
35-
Path to the sandbox definition file.
36-
37-
# flags.wait.description
38-
39-
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.
40-
41-
# commandSuccess
42-
43-
The sandbox org cloning process %s is in progress. Run "%s force:org:status -n %s" to check for status. If the org is ready, checking the status also logs the requesting user in to the sandbox org and authorizes the org for use with Salesforce CLI.
44-
45-
# commandOrganizationTypeNotSupport
46-
47-
The only supported org type is: %s
48-
49-
# commandOrganizationTypeNotSupportAction
50-
51-
force:org:clone -t %s
52-
531
# missingSourceSandboxName
542

553
Specify a value for %s in a definition file or on the command line.

messages/status.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@
2121
"@salesforce/dev-scripts": "^8.4.2",
2222
"@salesforce/plugin-command-reference": "^3.0.70",
2323
"@salesforce/ts-sinon": "1.4.19",
24-
"@types/shelljs": "^0.8.14",
2524
"eslint-plugin-sf-plugin": "^1.17.4",
2625
"moment": "^2.30.1",
2726
"oclif": "^4.7.5",
28-
"shelljs": "^0.8.5",
2927
"ts-node": "^10.9.2",
3028
"typescript": "^5.3.3"
3129
},

schemas/force-org-clone.json

Lines changed: 0 additions & 49 deletions
This file was deleted.

schemas/force-org-status.json

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/commands/force/org/clone.ts

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)