@salesforce/plugin-org 2.2.24 → 2.2.25
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 +4 -0
- package/lib/commands/force/org/clone.d.ts +21 -9
- package/lib/commands/force/org/clone.js +50 -82
- package/lib/commands/force/org/clone.js.map +1 -1
- package/lib/commands/force/org/create.d.ts +27 -12
- package/lib/commands/force/org/create.js +85 -105
- package/lib/commands/force/org/create.js.map +1 -1
- package/lib/commands/force/org/delete.d.ts +14 -7
- package/lib/commands/force/org/delete.js +26 -16
- package/lib/commands/force/org/delete.js.map +1 -1
- package/lib/commands/force/org/status.d.ts +18 -6
- package/lib/commands/force/org/status.js +43 -37
- package/lib/commands/force/org/status.js.map +1 -1
- package/lib/commands/org/create/sandbox.d.ts +40 -0
- package/lib/commands/org/create/sandbox.js +244 -0
- package/lib/commands/org/create/sandbox.js.map +1 -0
- package/lib/commands/org/create/scratch.d.ts +30 -0
- package/lib/commands/org/create/scratch.js +183 -0
- package/lib/commands/org/create/scratch.js.map +1 -0
- package/lib/commands/org/delete/sandbox.d.ts +18 -0
- package/lib/commands/org/delete/sandbox.js +59 -0
- package/lib/commands/org/delete/sandbox.js.map +1 -0
- package/lib/commands/org/delete/scratch.d.ts +18 -0
- package/lib/commands/org/delete/scratch.js +52 -0
- package/lib/commands/org/delete/scratch.js.map +1 -0
- package/lib/commands/org/display.d.ts +20 -0
- package/lib/commands/{force/org → org}/display.js +38 -27
- package/lib/commands/org/display.js.map +1 -0
- package/lib/commands/org/list.d.ts +26 -0
- package/lib/commands/org/list.js +192 -0
- package/lib/commands/org/list.js.map +1 -0
- package/lib/commands/org/open.d.ts +25 -0
- package/lib/commands/{force/org → org}/open.js +47 -33
- package/lib/commands/org/open.js.map +1 -0
- package/lib/commands/org/resume/sandbox.d.ts +26 -0
- package/lib/commands/org/resume/sandbox.js +199 -0
- package/lib/commands/org/resume/sandbox.js.map +1 -0
- package/lib/commands/org/resume/scratch.d.ts +14 -0
- package/lib/commands/org/resume/scratch.js +61 -0
- package/lib/commands/org/resume/scratch.js.map +1 -0
- package/lib/shared/orgHighlighter.d.ts +2 -2
- package/lib/shared/orgHighlighter.js +7 -5
- package/lib/shared/orgHighlighter.js.map +1 -1
- package/lib/shared/orgHooks.d.ts +24 -0
- package/lib/shared/orgHooks.js +9 -0
- package/lib/shared/orgHooks.js.map +1 -0
- package/lib/shared/orgListUtil.d.ts +15 -25
- package/lib/shared/orgListUtil.js +71 -81
- package/lib/shared/orgListUtil.js.map +1 -1
- package/lib/shared/orgTypes.d.ts +39 -11
- package/lib/shared/sandboxCommandBase.d.ts +33 -0
- package/lib/shared/sandboxCommandBase.js +168 -0
- package/lib/shared/sandboxCommandBase.js.map +1 -0
- package/lib/shared/sandboxProgress.d.ts +28 -0
- package/lib/shared/sandboxProgress.js +104 -0
- package/lib/shared/sandboxProgress.js.map +1 -0
- package/lib/shared/sandboxReporter.d.ts +1 -1
- package/lib/shared/sandboxRequest.d.ts +9 -0
- package/lib/shared/sandboxRequest.js +58 -0
- package/lib/shared/sandboxRequest.js.map +1 -0
- package/lib/shared/scratchOrgOutput.d.ts +9 -0
- package/lib/shared/scratchOrgOutput.js +47 -0
- package/lib/shared/scratchOrgOutput.js.map +1 -0
- package/lib/shared/stagedProgress.d.ts +33 -0
- package/lib/shared/stagedProgress.js +98 -0
- package/lib/shared/stagedProgress.js.map +1 -0
- package/lib/shared/timeUtils.d.ts +10 -0
- package/lib/shared/timeUtils.js +37 -0
- package/lib/shared/timeUtils.js.map +1 -0
- package/lib/shared/utils.d.ts +1 -1
- package/lib/shared/utils.js.map +1 -1
- package/messages/clone.md +67 -0
- package/messages/create.md +125 -0
- package/messages/create.sandbox.md +123 -0
- package/messages/create_scratch.md +109 -0
- package/messages/delete.md +47 -0
- package/messages/delete_sandbox.md +46 -0
- package/messages/delete_scratch.md +42 -0
- package/messages/display.md +33 -0
- package/messages/list.md +65 -0
- package/messages/messages.md +81 -0
- package/messages/open.md +63 -0
- package/messages/resume.sandbox.md +71 -0
- package/messages/resume_scratch.md +41 -0
- package/messages/sandboxbase.md +17 -0
- package/messages/status.md +33 -0
- package/oclif.manifest.json +1194 -1
- package/package.json +136 -26
- package/lib/commands/force/org/display.d.ts +0 -11
- package/lib/commands/force/org/display.js.map +0 -1
- package/lib/commands/force/org/list.d.ts +0 -15
- package/lib/commands/force/org/list.js +0 -191
- package/lib/commands/force/org/list.js.map +0 -1
- package/lib/commands/force/org/open.d.ts +0 -15
- package/lib/commands/force/org/open.js.map +0 -1
- package/messages/clone.json +0 -24
- package/messages/create.json +0 -37
- package/messages/delete.json +0 -13
- package/messages/display.json +0 -11
- package/messages/list.json +0 -19
- package/messages/messages.json +0 -24
- package/messages/open.json +0 -19
- package/messages/status.json +0 -13
package/package.json
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-org",
|
|
3
3
|
"description": "Commands to interact with Salesforce orgs",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.25",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@oclif/core": "^1.
|
|
10
|
-
"@salesforce/
|
|
11
|
-
"@salesforce/core": "^3.32.12",
|
|
9
|
+
"@oclif/core": "^1.26.1",
|
|
10
|
+
"@salesforce/core": "^3.33.1",
|
|
12
11
|
"@salesforce/kit": "^1.8.3",
|
|
12
|
+
"@salesforce/sf-plugins-core": "^1.22.1",
|
|
13
13
|
"open": "8.4.0",
|
|
14
14
|
"tslib": "^2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@oclif/plugin-command-snapshot": "^3.3.0",
|
|
18
|
-
"@
|
|
19
|
-
"@salesforce/cli-plugins-testkit": "^3.2.15",
|
|
18
|
+
"@salesforce/cli-plugins-testkit": "^3.2.18",
|
|
20
19
|
"@salesforce/dev-config": "^3.1.0",
|
|
21
|
-
"@salesforce/dev-scripts": "^
|
|
22
|
-
"@salesforce/plugin-command-reference": "^
|
|
20
|
+
"@salesforce/dev-scripts": "^4.0.0-beta.9",
|
|
21
|
+
"@salesforce/plugin-command-reference": "^2.2.9",
|
|
23
22
|
"@salesforce/prettier-config": "^0.0.2",
|
|
24
23
|
"@salesforce/ts-sinon": "1.4.4",
|
|
25
24
|
"@swc/core": "^1.3.24",
|
|
@@ -29,26 +28,28 @@
|
|
|
29
28
|
"@typescript-eslint/parser": "^5.46.0",
|
|
30
29
|
"chai": "^4.3.7",
|
|
31
30
|
"chai-as-promised": "^7.1.1",
|
|
32
|
-
"eslint": "^8.
|
|
33
|
-
"eslint-config-prettier": "^8.
|
|
34
|
-
"eslint-config-salesforce": "^1.1.
|
|
31
|
+
"eslint": "^8.33.0",
|
|
32
|
+
"eslint-config-prettier": "^8.6.0",
|
|
33
|
+
"eslint-config-salesforce": "^1.1.1",
|
|
35
34
|
"eslint-config-salesforce-license": "^0.1.6",
|
|
36
35
|
"eslint-config-salesforce-typescript": "^1.1.1",
|
|
37
36
|
"eslint-plugin-header": "^3.0.0",
|
|
38
37
|
"eslint-plugin-import": "2.27.4",
|
|
39
38
|
"eslint-plugin-jsdoc": "^39.6.7",
|
|
39
|
+
"eslint-plugin-sf-plugin": "^1.7.0",
|
|
40
40
|
"husky": "^7.0.4",
|
|
41
41
|
"mocha": "^9.1.3",
|
|
42
42
|
"moment": "^2.29.1",
|
|
43
43
|
"nyc": "^15.1.0",
|
|
44
|
-
"oclif": "^3.
|
|
44
|
+
"oclif": "^3.6.1",
|
|
45
45
|
"prettier": "^2.8.3",
|
|
46
46
|
"pretty-quick": "^3.1.0",
|
|
47
47
|
"shelljs": "^0.8.5",
|
|
48
48
|
"shx": "0.3.4",
|
|
49
49
|
"sinon": "10.0.0",
|
|
50
50
|
"ts-node": "^10.9.1",
|
|
51
|
-
"typescript": "^4.9.4"
|
|
51
|
+
"typescript": "^4.9.4",
|
|
52
|
+
"wireit": "^0.9.3"
|
|
52
53
|
},
|
|
53
54
|
"engines": {
|
|
54
55
|
"node": ">=14.0.0"
|
|
@@ -76,6 +77,21 @@
|
|
|
76
77
|
"@salesforce/plugin-command-reference"
|
|
77
78
|
],
|
|
78
79
|
"topics": {
|
|
80
|
+
"org": {
|
|
81
|
+
"description": "manage your orgs",
|
|
82
|
+
"longDescription": "Use the org commands to manage the orgs you use with Salesforce CLI. Create and delete scratch orgs, list your created and authorized orgs, and open orgs in your browser.",
|
|
83
|
+
"subtopics": {
|
|
84
|
+
"create": {
|
|
85
|
+
"description": "create scratch orgs, sandboxes, org shapes, and org snapshots"
|
|
86
|
+
},
|
|
87
|
+
"resume": {
|
|
88
|
+
"description": "resume an org creation that was started asynchronously, timed out, or was interrupted"
|
|
89
|
+
},
|
|
90
|
+
"delete": {
|
|
91
|
+
"description": "delete scratch orgs, sandboxes, org shapes, and org snapshots"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
79
95
|
"force": {
|
|
80
96
|
"external": true,
|
|
81
97
|
"subtopics": {
|
|
@@ -89,32 +105,126 @@
|
|
|
89
105
|
},
|
|
90
106
|
"repository": "salesforcecli/plugin-org",
|
|
91
107
|
"scripts": {
|
|
92
|
-
"build": "
|
|
108
|
+
"build": "wireit",
|
|
93
109
|
"clean": "sf-clean",
|
|
94
110
|
"clean-all": "sf-clean all",
|
|
95
111
|
"clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
|
|
96
|
-
"compile": "
|
|
112
|
+
"compile": "wireit",
|
|
97
113
|
"docs": "sf-docs",
|
|
98
|
-
"format": "
|
|
99
|
-
"lint": "
|
|
114
|
+
"format": "wireit",
|
|
115
|
+
"lint": "wireit",
|
|
100
116
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
101
|
-
"posttest": "yarn lint && yarn test:deprecation-policy && yarn test:command-reference",
|
|
102
117
|
"prepack": "sf-prepack",
|
|
103
118
|
"prepare": "sf-install",
|
|
104
|
-
"
|
|
105
|
-
"test": "
|
|
106
|
-
"test:
|
|
107
|
-
"test:deprecation-policy": "
|
|
108
|
-
"test:
|
|
109
|
-
"test:nuts
|
|
119
|
+
"test": "wireit",
|
|
120
|
+
"test:command-reference": "wireit",
|
|
121
|
+
"test:compile": "wireit",
|
|
122
|
+
"test:deprecation-policy": "wireit",
|
|
123
|
+
"test:json-schema": "wireit",
|
|
124
|
+
"test:nuts": "nyc mocha \"./test/nut/*.nut.ts\" --slow 4500 --timeout 1200000 --parallel",
|
|
125
|
+
"test:nuts:legacy": "nyc mocha \"./test/nut/legacy/*.nut.ts\" --slow 4500 --timeout 1200000 --parallel",
|
|
126
|
+
"test:nuts:sandbox": "nyc mocha \"./test/**/*.sandboxNut.ts\" --slow 450000 --timeout 7200000 --parallel",
|
|
127
|
+
"test:only": "wireit",
|
|
110
128
|
"test:watch": "mocha --watch \"./test/**/*.test.ts\"",
|
|
111
129
|
"version": "oclif readme"
|
|
112
130
|
},
|
|
113
131
|
"publishConfig": {
|
|
114
132
|
"access": "public"
|
|
115
133
|
},
|
|
134
|
+
"wireit": {
|
|
135
|
+
"build": {
|
|
136
|
+
"dependencies": [
|
|
137
|
+
"compile",
|
|
138
|
+
"lint"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"compile": {
|
|
142
|
+
"command": "tsc -p . --pretty --incremental",
|
|
143
|
+
"files": [
|
|
144
|
+
"src/**/*.ts",
|
|
145
|
+
"tsconfig.json",
|
|
146
|
+
"messages/**"
|
|
147
|
+
],
|
|
148
|
+
"output": [
|
|
149
|
+
"lib/**",
|
|
150
|
+
"*.tsbuildinfo"
|
|
151
|
+
],
|
|
152
|
+
"clean": "if-file-deleted"
|
|
153
|
+
},
|
|
154
|
+
"format": {
|
|
155
|
+
"command": "prettier --write \"+(src|test|schemas)/**/*.+(ts|js|json)|command-snapshot.json\""
|
|
156
|
+
},
|
|
157
|
+
"lint": {
|
|
158
|
+
"command": "eslint src test --color --cache --cache-location .eslintcache",
|
|
159
|
+
"files": [
|
|
160
|
+
"src/**/*.ts",
|
|
161
|
+
"test/**/*.ts",
|
|
162
|
+
"messages/**",
|
|
163
|
+
".eslintignore",
|
|
164
|
+
".eslintrc.js"
|
|
165
|
+
],
|
|
166
|
+
"output": []
|
|
167
|
+
},
|
|
168
|
+
"test": {
|
|
169
|
+
"dependencies": [
|
|
170
|
+
"test:compile",
|
|
171
|
+
"test:only",
|
|
172
|
+
"test:command-reference",
|
|
173
|
+
"test:deprecation-policy",
|
|
174
|
+
"lint",
|
|
175
|
+
"test:json-schema"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"test:command-reference": {
|
|
179
|
+
"command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
|
|
180
|
+
"files": [
|
|
181
|
+
"src/**/*.ts",
|
|
182
|
+
"messages/**"
|
|
183
|
+
],
|
|
184
|
+
"output": [
|
|
185
|
+
"tmp/root"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"test:deprecation-policy": {
|
|
189
|
+
"command": "\"./bin/dev\" snapshot:compare",
|
|
190
|
+
"files": [
|
|
191
|
+
"src/**/*.ts"
|
|
192
|
+
],
|
|
193
|
+
"output": [],
|
|
194
|
+
"dependencies": [
|
|
195
|
+
"compile"
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"test:json-schema": {
|
|
199
|
+
"command": "\"./bin/dev\" schema:compare",
|
|
200
|
+
"files": [
|
|
201
|
+
"src/**/*.ts",
|
|
202
|
+
"schemas"
|
|
203
|
+
],
|
|
204
|
+
"output": []
|
|
205
|
+
},
|
|
206
|
+
"test:compile": {
|
|
207
|
+
"command": "tsc -p \"./test\" --pretty",
|
|
208
|
+
"files": [
|
|
209
|
+
"test/**/*.ts",
|
|
210
|
+
"tsconfig.json",
|
|
211
|
+
"test/tsconfig.json"
|
|
212
|
+
],
|
|
213
|
+
"output": []
|
|
214
|
+
},
|
|
215
|
+
"test:only": {
|
|
216
|
+
"command": "nyc mocha \"test/**/*.test.ts\"",
|
|
217
|
+
"files": [
|
|
218
|
+
"test/**/*.ts",
|
|
219
|
+
"src/**/*.ts",
|
|
220
|
+
"tsconfig.json",
|
|
221
|
+
"test/tsconfig.json"
|
|
222
|
+
],
|
|
223
|
+
"output": []
|
|
224
|
+
}
|
|
225
|
+
},
|
|
116
226
|
"sfdx": {
|
|
117
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.2.
|
|
118
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.2.
|
|
227
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.2.25.crt",
|
|
228
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-org/2.2.25.sig"
|
|
119
229
|
}
|
|
120
230
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { OrgDisplayReturn } from '../../../shared/orgTypes';
|
|
3
|
-
export declare class OrgDisplayCommand extends SfdxCommand {
|
|
4
|
-
static readonly description: string;
|
|
5
|
-
static readonly examples: string[];
|
|
6
|
-
static readonly requiresUsername = true;
|
|
7
|
-
static readonly flagsConfig: FlagsConfig;
|
|
8
|
-
run(): Promise<OrgDisplayReturn>;
|
|
9
|
-
private print;
|
|
10
|
-
private getScratchOrgInformation;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../../../src/commands/force/org/display.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yBAAyB;AACzB,iDAAsE;AACtE,2CAAqE;AACrE,yCAAuD;AAEvD,iDAA2D;AAC3D,mEAAgE;AAChE,6DAA0D;AAE1D,eAAQ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,IAAI,CAAC;AACxB,6BAAW,GAAgB;IAChD,OAAO,EAAE,eAAK,CAAC,OAAO,EAAE;CACzB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
import { ExtendedAuthFields } from '../../../shared/orgTypes';
|
|
3
|
-
export declare class OrgListCommand extends SfdxCommand {
|
|
4
|
-
static readonly description: string;
|
|
5
|
-
static readonly examples: string[];
|
|
6
|
-
static readonly requiresProject = false;
|
|
7
|
-
static readonly flagsConfig: FlagsConfig;
|
|
8
|
-
run(): Promise<unknown>;
|
|
9
|
-
protected cleanScratchOrgs(scratchOrgs: ExtendedAuthFields[], prompt?: boolean): Promise<void>;
|
|
10
|
-
protected printOrgTable(nonScratchOrgs: ExtendedAuthFields[], skipconnectionstatus: boolean): void;
|
|
11
|
-
private printScratchOrgTable;
|
|
12
|
-
private extractDefaultOrgStatus;
|
|
13
|
-
private getScratchOrgColumnData;
|
|
14
|
-
private sortFunction;
|
|
15
|
-
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrgListCommand = void 0;
|
|
4
|
-
/*
|
|
5
|
-
* Copyright (c) 2020, salesforce.com, inc.
|
|
6
|
-
* All rights reserved.
|
|
7
|
-
* Licensed under the BSD 3-Clause license.
|
|
8
|
-
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
|
9
|
-
*/
|
|
10
|
-
const os_1 = require("os");
|
|
11
|
-
const command_1 = require("@salesforce/command");
|
|
12
|
-
const core_1 = require("@salesforce/core");
|
|
13
|
-
const kit_1 = require("@salesforce/kit");
|
|
14
|
-
const orgListUtil_1 = require("../../../shared/orgListUtil");
|
|
15
|
-
const orgHighlighter_1 = require("../../../shared/orgHighlighter");
|
|
16
|
-
core_1.Messages.importMessagesDirectory(__dirname);
|
|
17
|
-
const messages = core_1.Messages.loadMessages('@salesforce/plugin-org', 'list');
|
|
18
|
-
class OrgListCommand extends command_1.SfdxCommand {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.sortFunction = (orgDetails) => {
|
|
22
|
-
this.extractDefaultOrgStatus(orgDetails);
|
|
23
|
-
return [orgDetails.alias, orgDetails.username];
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
async run() {
|
|
27
|
-
let fileNames = [];
|
|
28
|
-
try {
|
|
29
|
-
fileNames = (await core_1.AuthInfo.listAllAuthorizations()).map((auth) => auth.username);
|
|
30
|
-
}
|
|
31
|
-
catch (err) {
|
|
32
|
-
const error = err;
|
|
33
|
-
if (error.name === 'NoAuthInfoFound') {
|
|
34
|
-
throw new core_1.SfError(messages.getMessage('noOrgsFound'), 'noOrgsFound', [
|
|
35
|
-
messages.getMessage('noOrgsFoundAction'),
|
|
36
|
-
]);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
throw error;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
const metaConfigs = await orgListUtil_1.OrgListUtil.readLocallyValidatedMetaConfigsGroupedByOrgType(fileNames, this.flags);
|
|
43
|
-
const groupedSortedOrgs = {
|
|
44
|
-
nonScratchOrgs: (0, kit_1.sortBy)(metaConfigs.nonScratchOrgs, this.sortFunction),
|
|
45
|
-
scratchOrgs: (0, kit_1.sortBy)(metaConfigs.scratchOrgs, this.sortFunction),
|
|
46
|
-
expiredScratchOrgs: metaConfigs.scratchOrgs.filter((org) => !(0, orgListUtil_1.identifyActiveOrgByStatus)(org)),
|
|
47
|
-
};
|
|
48
|
-
if (this.flags.clean && groupedSortedOrgs.expiredScratchOrgs.length > 0) {
|
|
49
|
-
await this.cleanScratchOrgs(groupedSortedOrgs.expiredScratchOrgs, !this.flags.noprompt);
|
|
50
|
-
}
|
|
51
|
-
if (groupedSortedOrgs.expiredScratchOrgs.length > 10 && !this.flags.clean) {
|
|
52
|
-
this.ux.warn(messages.getMessage('deleteOrgs', [groupedSortedOrgs.expiredScratchOrgs.length]));
|
|
53
|
-
}
|
|
54
|
-
const result = {
|
|
55
|
-
nonScratchOrgs: groupedSortedOrgs.nonScratchOrgs,
|
|
56
|
-
scratchOrgs: this.flags.all
|
|
57
|
-
? groupedSortedOrgs.scratchOrgs
|
|
58
|
-
: groupedSortedOrgs.scratchOrgs.filter(orgListUtil_1.identifyActiveOrgByStatus),
|
|
59
|
-
};
|
|
60
|
-
this.ux.styledHeader('Orgs');
|
|
61
|
-
this.printOrgTable(result.nonScratchOrgs, this.flags.skipconnectionstatus);
|
|
62
|
-
// separate the table by a blank line.
|
|
63
|
-
this.ux.log();
|
|
64
|
-
this.printScratchOrgTable(result.scratchOrgs);
|
|
65
|
-
return result;
|
|
66
|
-
}
|
|
67
|
-
async cleanScratchOrgs(scratchOrgs, prompt) {
|
|
68
|
-
if (prompt && (await this.ux.confirm(messages.getMessage('prompt', [scratchOrgs.length]))) === false) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
await Promise.all(scratchOrgs.map(async (fields) => {
|
|
72
|
-
try {
|
|
73
|
-
const authInfo = await core_1.AuthInfo.create({ username: fields.username });
|
|
74
|
-
const connection = await core_1.Connection.create({
|
|
75
|
-
authInfo,
|
|
76
|
-
configAggregator: {
|
|
77
|
-
// Force an api version to prevent connection check with the server for expired orgs.
|
|
78
|
-
getInfo: () => ({ value: '47.0' }),
|
|
79
|
-
},
|
|
80
|
-
});
|
|
81
|
-
const org = await core_1.Org.create({ aliasOrUsername: fields.username, connection });
|
|
82
|
-
await org.remove();
|
|
83
|
-
}
|
|
84
|
-
catch (e) {
|
|
85
|
-
const err = e;
|
|
86
|
-
this.logger.debug(`Error cleaning org ${fields.username}: ${err.message}`);
|
|
87
|
-
this.ux.warn(`Unable to clean org with username ${fields.username}. You can run "sfdx force:org:delete -u ${fields.username}" to remove it.`);
|
|
88
|
-
}
|
|
89
|
-
}));
|
|
90
|
-
}
|
|
91
|
-
printOrgTable(nonScratchOrgs, skipconnectionstatus) {
|
|
92
|
-
// default columns for the non-scratch org list
|
|
93
|
-
let nonScratchOrgColumns = {
|
|
94
|
-
defaultMarker: {
|
|
95
|
-
header: '',
|
|
96
|
-
get: (data) => data.defaultMarker ?? '',
|
|
97
|
-
},
|
|
98
|
-
alias: {
|
|
99
|
-
header: 'ALIAS',
|
|
100
|
-
get: (data) => data.alias ?? '',
|
|
101
|
-
},
|
|
102
|
-
username: { header: 'USERNAME' },
|
|
103
|
-
orgId: { header: 'ORG ID' },
|
|
104
|
-
};
|
|
105
|
-
if (!skipconnectionstatus) {
|
|
106
|
-
nonScratchOrgColumns = Object.assign(nonScratchOrgColumns, {
|
|
107
|
-
connectedStatus: { header: 'CONNECTED STATUS' },
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
if (nonScratchOrgs.length) {
|
|
111
|
-
this.ux.table(nonScratchOrgs.map((row) => (0, orgHighlighter_1.getStyledObject)(row)), nonScratchOrgColumns);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
this.ux.log(messages.getMessage('noResultsFound'));
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
printScratchOrgTable(scratchOrgs) {
|
|
118
|
-
if (scratchOrgs.length === 0) {
|
|
119
|
-
this.ux.log(messages.getMessage('noActiveScratchOrgs'));
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
// One or more rows are available.
|
|
123
|
-
this.ux.table(scratchOrgs.map((row) => (0, orgHighlighter_1.getStyledObject)(row)), this.getScratchOrgColumnData());
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
// eslint-disable-next-line class-methods-use-this
|
|
127
|
-
extractDefaultOrgStatus(val) {
|
|
128
|
-
if (val.isDefaultDevHubUsername) {
|
|
129
|
-
val.defaultMarker = '(D)';
|
|
130
|
-
}
|
|
131
|
-
else if (val.isDefaultUsername) {
|
|
132
|
-
val.defaultMarker = '(U)';
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
getScratchOrgColumnData() {
|
|
136
|
-
// default columns for the scratch org list
|
|
137
|
-
let scratchOrgColumns = {
|
|
138
|
-
defaultMarker: {
|
|
139
|
-
header: '',
|
|
140
|
-
get: (data) => data.defaultMarker ?? '',
|
|
141
|
-
},
|
|
142
|
-
alias: {
|
|
143
|
-
header: 'ALIAS',
|
|
144
|
-
get: (data) => data.alias ?? '',
|
|
145
|
-
},
|
|
146
|
-
username: { header: 'USERNAME' },
|
|
147
|
-
orgId: { header: 'ORG ID' },
|
|
148
|
-
};
|
|
149
|
-
if (this.flags.all || this.flags.verbose) {
|
|
150
|
-
scratchOrgColumns = Object.assign(scratchOrgColumns, {
|
|
151
|
-
status: { header: 'STATUS' },
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
// scratch org verbose columns
|
|
155
|
-
if (this.flags.verbose) {
|
|
156
|
-
scratchOrgColumns = Object.assign(scratchOrgColumns, {
|
|
157
|
-
devHubOrgId: { header: 'DEV HUB' },
|
|
158
|
-
createdDate: { header: 'CREATED DATE' },
|
|
159
|
-
instanceUrl: { header: 'INSTANCE URL' },
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
// scratch org expiration date should be on the end.
|
|
163
|
-
return Object.assign(scratchOrgColumns, {
|
|
164
|
-
expirationDate: { header: 'EXPIRATION DATE' },
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
exports.OrgListCommand = OrgListCommand;
|
|
169
|
-
OrgListCommand.description = messages.getMessage('description');
|
|
170
|
-
OrgListCommand.examples = messages.getMessage('examples').split(os_1.EOL);
|
|
171
|
-
OrgListCommand.requiresProject = false;
|
|
172
|
-
OrgListCommand.flagsConfig = {
|
|
173
|
-
verbose: command_1.flags.builtin({
|
|
174
|
-
description: messages.getMessage('verbose'),
|
|
175
|
-
}),
|
|
176
|
-
all: command_1.flags.boolean({
|
|
177
|
-
description: messages.getMessage('all'),
|
|
178
|
-
}),
|
|
179
|
-
clean: command_1.flags.boolean({
|
|
180
|
-
description: messages.getMessage('clean'),
|
|
181
|
-
}),
|
|
182
|
-
noprompt: command_1.flags.boolean({
|
|
183
|
-
char: 'p',
|
|
184
|
-
description: messages.getMessage('noPrompt'),
|
|
185
|
-
dependsOn: ['clean'],
|
|
186
|
-
}),
|
|
187
|
-
skipconnectionstatus: command_1.flags.boolean({
|
|
188
|
-
description: messages.getMessage('skipConnectionStatus'),
|
|
189
|
-
}),
|
|
190
|
-
};
|
|
191
|
-
//# sourceMappingURL=list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/force/org/list.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2BAAyB;AAEzB,iDAAsE;AACtE,2CAA8G;AAC9G,yCAAyC;AAEzC,6DAAqF;AACrF,mEAAiE;AAGjE,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;AAEzE,MAAa,cAAe,SAAQ,qBAAW;IAA/C;;QA4LU,iBAAY,GAAG,CAAC,UAA8B,EAAY,EAAE;YAClE,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;YACzC,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;QACjD,CAAC,CAAC;IACJ,CAAC;IAxKQ,KAAK,CAAC,GAAG;QACd,IAAI,SAAS,GAAa,EAAE,CAAC;QAC7B,IAAI;YACF,SAAS,GAAG,CAAC,MAAM,eAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACnF;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,KAAK,GAAG,GAAc,CAAC;YAC7B,IAAI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,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;QAC5C,SAAS,EAAE,CAAC,OAAO,CAAC;KACrB,CAAC;IACF,oBAAoB,EAAE,eAAK,CAAC,OAAO,CAAC;QAClC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;KACzD,CAAC;CACH,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
|
|
2
|
-
export declare class OrgOpenCommand extends SfdxCommand {
|
|
3
|
-
static readonly description: string;
|
|
4
|
-
static readonly examples: string[];
|
|
5
|
-
static readonly requiresUsername = true;
|
|
6
|
-
static readonly flagsConfig: FlagsConfig;
|
|
7
|
-
run(): Promise<OrgOpenOutput>;
|
|
8
|
-
private buildFrontdoorUrl;
|
|
9
|
-
}
|
|
10
|
-
interface OrgOpenOutput {
|
|
11
|
-
url: string;
|
|
12
|
-
username: string;
|
|
13
|
-
orgId: string;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"open.js","sourceRoot":"","sources":["../../../../src/commands/force/org/open.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2BAAyB;AAEzB,iDAAsE;AACtE,2CAAmE;AACnE,yCAAgD;AAChD,6BAA8B;AAC9B,iDAAgD;AAEhD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;AACzE,MAAM,cAAc,GAAG,eAAQ,CAAC,YAAY,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAC;AAEnF,MAAa,cAAe,SAAQ,qBAAW;IAuBtC,KAAK,CAAC,GAAG;QACd,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpD,MAAM,GAAG,GAAG,IAAI,CAAC,KA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AAC,KAAK,CAAC,CAAC,CAAC;KAC1G,CAAC;IACF,OAAO,EAAE,eAAK,CAAC,OAAO,CAAC;QACrB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC;KAC5C,CAAC;CACH,CAAC"}
|
package/messages/clone.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"success": "The sandbox org cloning process %s is in progress. Run \"sfdx 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.",
|
|
3
|
-
"description": "clone a sandbox org\nThere 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\".",
|
|
4
|
-
"examples": [
|
|
5
|
-
"$ sfdx force:org:clone -t sandbox -f config/dev-sandbox-def.json -u prodOrg -a MyDevSandbox",
|
|
6
|
-
"$ sfdx force:org:clone -t sandbox SandboxName=NewClonedSandbox SourceSandboxName=ExistingSandbox -u prodOrg -a MyDevSandbox"
|
|
7
|
-
],
|
|
8
|
-
"flags": {
|
|
9
|
-
"type": "type of org to create",
|
|
10
|
-
"wait": "number of minutes to wait while polling for status",
|
|
11
|
-
"setdefaultusername": "set the cloned org as your default",
|
|
12
|
-
"setalias": "alias for the cloned org",
|
|
13
|
-
"definitionfile": "path to the sandbox definition file"
|
|
14
|
-
},
|
|
15
|
-
"flagsLong": {
|
|
16
|
-
"wait": "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."
|
|
17
|
-
},
|
|
18
|
-
"commandSuccess": "The sandbox org cloning process %s is in progress. Run \"sfdx 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.",
|
|
19
|
-
"missingLicenseType": "The sandbox license type is required, but you didn't provide a value. Specify the license type in the sandbox definition file with the \"licenseType\" option, or specify the option as a name-value pair at the command-line. See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm for more information.",
|
|
20
|
-
"commandOrganizationTypeNotSupport": "The only supported org type is: %s",
|
|
21
|
-
"commandOrganizationTypeNotSupportAction": "force:org:clone -t %s",
|
|
22
|
-
"missingSourceSandboxName": "Specify a value for %s in a definition file or on the command line.",
|
|
23
|
-
"missingSourceSandboxNameAction": "To indicate which sandbox org you want to clone, specify %s in a definition file or as a command line argument."
|
|
24
|
-
}
|
package/messages/create.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "create a scratch or sandbox org \nCreates a scratch org or a sandbox org using the values specified in a configuration file or key=value pairs that you specify on the command line. Values specified on the command line override values in the configuration file. Specify a configuration file or provide key=value pairs while creating a scratch org or a sandbox. When creating scratch orgs, —targetdevhubusername (-v) must be a Dev Hub org. When creating sandboxes, the --targetusername (-u) must be a production org with sandbox licenses. The —type (-t) is required if creating a sandbox.\n\n",
|
|
3
|
-
"examples": [
|
|
4
|
-
"$ sfdx force:org:create -f config/enterprise-scratch-def.json -a MyScratchOrg",
|
|
5
|
-
"$ sfdx force:org:create edition=Developer -a MyScratchOrg -s -v devHub",
|
|
6
|
-
"$ sfdx force:org:create -f config/enterprise-scratch-def.json -a ScratchOrgWithOverrides username=testuser1@mycompany.org",
|
|
7
|
-
"$ sfdx force:org:create -t sandbox -f config/dev-sandbox-def.json -a MyDevSandbox -u prodOrg"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"clientId": "connected app consumer key; not supported for sandbox org creation",
|
|
11
|
-
"setDefaultUsername": "set the created org as the default username",
|
|
12
|
-
"setAlias": "alias for the created org",
|
|
13
|
-
"definitionFile": "path to an org definition file",
|
|
14
|
-
"definitionJson": "org definition in JSON format",
|
|
15
|
-
"noNamespace": "create the scratch org with no namespace",
|
|
16
|
-
"noAncestors": "do not include second-generation package ancestors in the scratch org",
|
|
17
|
-
"env": "environment where the scratch org is created: %s",
|
|
18
|
-
"type": "type of org to create",
|
|
19
|
-
"durationDays": "duration of the scratch org (in days) (default:7, min:1, max:30)",
|
|
20
|
-
"retry": "Number of scratch org auth retries after scratch org is successfully signed up.",
|
|
21
|
-
"wait": "the streaming client socket timeout (in minutes)"
|
|
22
|
-
},
|
|
23
|
-
"scratchOrgCreateSuccess": "Successfully created scratch org: %s, username: %s.",
|
|
24
|
-
"clientIdNotSupported": "-i | --clientid is not supported for the sandbox org create command. Its value, %s, has been ignored.",
|
|
25
|
-
"noNamespaceNotSupported": "-n | --nonamespace is not supported for the sandbox org create command. Its value, %s, has been ignored.",
|
|
26
|
-
"noAncestorsNotSupported": "-c | --noancestors is not supported for the sandbox org create command. Its value, %s, has been ignored.",
|
|
27
|
-
"durationDaysNotSupported": "-d | --durationdays is not supported for the sandbox org create command. Its value, %s, has been ignored.",
|
|
28
|
-
"retryIsNotValidForSandboxes": "One cannot use flag retry with Sandbox org create.",
|
|
29
|
-
"sandboxSuccess": "The sandbox org creation process %s is in progress. Run \"sfdx force:org:status -n %s -u %s\" to check for status. If the org is ready, checking the status also authorizes the org for use with Salesforce CLI.",
|
|
30
|
-
"requiresUsername": "This command requires a username. Specify it with the -u parameter or with the \"sfdx config:set defaultusername=<username>\" command.",
|
|
31
|
-
"missingLicenseType": "The sandbox license type is required, but you didn't provide a value. Specify the license type in the sandbox definition file with the \"licenseType\" option, or specify the option as a name-value pair at the command-line. See https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_sandbox_definition.htm for more information.",
|
|
32
|
-
"dnsTimeout": "The sandbox was successfully created and authenticated. However, the sandbox DNS records aren't ready yet and so the sandbox may not be available. Run \"force:org:list\" and check if the sandbox is listed correctly. If it isn't listed, run \"force:org:status\" to view its status and, if necessary, authenticate to it again. If this issue happens frequently, try setting the SFDX_DNS_TIMEOUT environment variable to a larger number; the default value is 3 seconds.",
|
|
33
|
-
"partialSuccess": "If you specified the -a or -s parameters, but the sandbox wasn't immediately available, the \"force:org:create\" command may not have finished setting the alias or defaultusername. If so, set the alias manually with \"sfdx alias:set\" and the defaultusername with \"sfdx config:set\".",
|
|
34
|
-
"noConfig": "Please specify an org configuration via file and/or key=value pairs.",
|
|
35
|
-
"RequiresDevhubUsernameError": "This command requires a dev hub org username set either with a flag or by default in the config.",
|
|
36
|
-
"secretPrompt": "OAuth client secret of personal connected app?"
|
|
37
|
-
}
|
package/messages/delete.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "mark a scratch or sandbox org for deletion \nTo mark the org for deletion without being prompted to confirm, specify --noprompt.",
|
|
3
|
-
"examples": ["$ sfdx force:org:delete -u me@my.org", "$ sfdx force:org:delete -u MyOrgAlias -p"],
|
|
4
|
-
"flags": {
|
|
5
|
-
"noprompt": "no prompt to confirm deletion"
|
|
6
|
-
},
|
|
7
|
-
"confirmDelete": "Enqueue %s org with name: %s for deletion? Are you sure (y/n)?",
|
|
8
|
-
"sandboxConfigOnlySuccess": "Successfully deleted sandbox org %s.",
|
|
9
|
-
"ScratchOrgNotFound": "Attempting to delete an expired or deleted org",
|
|
10
|
-
"deleteOrgConfigOnlyCommandSuccess": "Successfully deleted scratch org %s.'",
|
|
11
|
-
"deleteOrgCommandSuccess": "Successfully marked scratch org %s for deletion",
|
|
12
|
-
"commandSandboxSuccess": "The sandbox org %s has been successfully removed from your list of CLI authorized orgs. If you created the sandbox with one of the force:org commands, it has also been marked for deletion."
|
|
13
|
-
}
|
package/messages/display.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "get the description for the current or target org\nOutput includes your access token, client Id, connected status, org ID, instance URL, username, and alias, if applicable.\nUse --verbose to include the SFDX auth URL. WARNING: The SFDX auth URL contains sensitive information, such as a refresh token that can be used to access an org. Don't share or distribute this URL or token.\nIncluding --verbose displays the sfdxAuthUrl property only if you authenticated to the org using auth:web:login (not auth:jwt:grant)",
|
|
3
|
-
"examples": [
|
|
4
|
-
"$ sfdx force:org:display",
|
|
5
|
-
"$ sfdx force:org:display -u me@my.org",
|
|
6
|
-
"$ sfdx force:org:display -u TestOrg1 --json",
|
|
7
|
-
"$ sfdx force:org:display -u TestOrg1 --json > tmp/MyOrgDesc.json"
|
|
8
|
-
],
|
|
9
|
-
"noScratchOrgInfoError": "No information for scratch org with ID %s found in Dev Hub %s.",
|
|
10
|
-
"noScratchOrgInfoAction": "First check that you can access your Dev Hub. Then check that the ScratchOrgInfo standard object in your Dev Hub contains a record for your scratch org. In Setup, navigate to the Dev Hub page and click the Scratch Org Infos tab. If you find your scratch org, try again."
|
|
11
|
-
}
|
package/messages/list.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "list all orgs you’ve created or authenticated to",
|
|
3
|
-
"examples": [
|
|
4
|
-
"$ sfdx force:org:list",
|
|
5
|
-
"$ sfdx force:org:list --verbose --json",
|
|
6
|
-
"$ sfdx force:org:list --verbose --json > tmp/MyOrgList.json"
|
|
7
|
-
],
|
|
8
|
-
"verbose": "list more information about each org",
|
|
9
|
-
"all": "include expired, deleted, and unknown-status scratch orgs",
|
|
10
|
-
"clean": "remove all local org authorizations for non-active scratch orgs. Use auth:logout to remove non-scratch orgs",
|
|
11
|
-
"noPrompt": "do not prompt for confirmation",
|
|
12
|
-
"skipConnectionStatus": "skip retrieving the connection status of non-scratch orgs",
|
|
13
|
-
"prompt": "Found (%s) org configurations to delete. Are you sure (yes/no)?",
|
|
14
|
-
"noActiveScratchOrgs": "No active scratch orgs found. Specify --all to see all scratch orgs",
|
|
15
|
-
"deleteOrgs": "You have %s expired or deleted local scratch org authorizations. To remove authorizations for inactive orgs, run force:org:list --clean.",
|
|
16
|
-
"noOrgsFound": "No orgs can be found.",
|
|
17
|
-
"noOrgsFoundAction": "Use one of the auth commands or force:org:create to add or create a scratch org.",
|
|
18
|
-
"noResultsFound": "No non-scratch orgs found."
|
|
19
|
-
}
|
package/messages/messages.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"HelpDefaults": "If not supplied, the apiversion, template, and outputdir use default values.\n",
|
|
3
|
-
"HelpOutputDirRelative": "The outputdir can be an absolute path or relative to the current working directory.\n",
|
|
4
|
-
"HelpOutputDirRelativeLightning": "If you don’t specify an outputdir, we create a subfolder in your current working directory with the name of your bundle. For example, if the current working directory is force-app and your Lightning bundle is called myBundle, we create force-app/myBundle/ to store the files in the bundle.\n",
|
|
5
|
-
"HelpExamplesTitle": "\nExamples:\n",
|
|
6
|
-
"OutputDirFlagDescription": "folder for saving the created files",
|
|
7
|
-
"OutputDirFlagLongDescription": "The directory to store the newly created files. The location can be an absolute path or relative to the current working directory. The default is the current directory.",
|
|
8
|
-
"TemplateFlagDescription": "template to use for file creation",
|
|
9
|
-
"TemplateFlagLongDescription": "The template to use to create the file. Supplied parameter values or default values are filled into a copy of the template.",
|
|
10
|
-
"TargetDirOutput": "target dir = %s",
|
|
11
|
-
"App": "app",
|
|
12
|
-
"Event": "event",
|
|
13
|
-
"Interface": "interface",
|
|
14
|
-
"Test": "test",
|
|
15
|
-
"Component": "component",
|
|
16
|
-
"Page": "page",
|
|
17
|
-
|
|
18
|
-
"AlphaNumericNameError": "Name must contain only alphanumeric characters.",
|
|
19
|
-
"NameMustStartWithLetterError": "Name must start with a letter.",
|
|
20
|
-
"EndWithUnderscoreError": "Name can't end with an underscore.",
|
|
21
|
-
"DoubleUnderscoreError": "Name can't contain 2 consecutive underscores.",
|
|
22
|
-
|
|
23
|
-
"SecurityWarning": "This command will expose sensitive information that allows for subsequent activity using your current authenticated session.\nSharing this information is equivalent to logging someone in under the current credential, resulting in unintended access and escalation of privilege.\nFor additional information, please review the authorization section of the https://developer.salesforce.com/docs/atlas.en-us.234.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm"
|
|
24
|
-
}
|