@salesforce/plugin-settings 2.2.6 → 2.3.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 +8 -8
- package/lib/commands/alias/set.js +3 -0
- package/lib/commands/alias/set.js.map +1 -1
- package/messages/alias.set.md +7 -1
- package/oclif.manifest.json +2 -2
- package/package.json +12 -14
- package/npm-shrinkwrap.json +0 -17156
- package/oclif.lock +0 -8477
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ EXAMPLES
|
|
|
108
108
|
$ sf alias list
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
_See code: [src/commands/alias/list.ts](https://github.com/salesforcecli/plugin-settings/blob/2.
|
|
111
|
+
_See code: [src/commands/alias/list.ts](https://github.com/salesforcecli/plugin-settings/blob/2.3.0/src/commands/alias/list.ts)_
|
|
112
112
|
|
|
113
113
|
## `sf alias set`
|
|
114
114
|
|
|
@@ -126,7 +126,7 @@ DESCRIPTION
|
|
|
126
126
|
Set one or more aliases on your local computer.
|
|
127
127
|
|
|
128
128
|
Aliases are user-defined short names that make it easier to use the CLI. For example, users often set an alias for a
|
|
129
|
-
scratch org usernames because they're long and unintuitive.
|
|
129
|
+
scratch org usernames because they're long and unintuitive. Check the --help of a CLI command to determine where you
|
|
130
130
|
can use an alias.
|
|
131
131
|
|
|
132
132
|
You can associate an alias with only one value at a time. If you set an alias multiple times, the alias points to the
|
|
@@ -157,7 +157,7 @@ EXAMPLES
|
|
|
157
157
|
$ sf alias set my-scratch-org test-ss0xut7txzxf@example.com
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
-
_See code: [src/commands/alias/set.ts](https://github.com/salesforcecli/plugin-settings/blob/2.
|
|
160
|
+
_See code: [src/commands/alias/set.ts](https://github.com/salesforcecli/plugin-settings/blob/2.3.0/src/commands/alias/set.ts)_
|
|
161
161
|
|
|
162
162
|
## `sf alias unset`
|
|
163
163
|
|
|
@@ -197,7 +197,7 @@ EXAMPLES
|
|
|
197
197
|
$ sf alias unset --all [--no-prompt]
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
_See code: [src/commands/alias/unset.ts](https://github.com/salesforcecli/plugin-settings/blob/2.
|
|
200
|
+
_See code: [src/commands/alias/unset.ts](https://github.com/salesforcecli/plugin-settings/blob/2.3.0/src/commands/alias/unset.ts)_
|
|
201
201
|
|
|
202
202
|
## `sf config get`
|
|
203
203
|
|
|
@@ -235,7 +235,7 @@ EXAMPLES
|
|
|
235
235
|
$ sf config get target-org api-version --verbose
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
_See code: [src/commands/config/get.ts](https://github.com/salesforcecli/plugin-settings/blob/2.
|
|
238
|
+
_See code: [src/commands/config/get.ts](https://github.com/salesforcecli/plugin-settings/blob/2.3.0/src/commands/config/get.ts)_
|
|
239
239
|
|
|
240
240
|
## `sf config list`
|
|
241
241
|
|
|
@@ -275,7 +275,7 @@ EXAMPLES
|
|
|
275
275
|
$ sf config list
|
|
276
276
|
```
|
|
277
277
|
|
|
278
|
-
_See code: [src/commands/config/list.ts](https://github.com/salesforcecli/plugin-settings/blob/2.
|
|
278
|
+
_See code: [src/commands/config/list.ts](https://github.com/salesforcecli/plugin-settings/blob/2.3.0/src/commands/config/list.ts)_
|
|
279
279
|
|
|
280
280
|
## `sf config set`
|
|
281
281
|
|
|
@@ -333,7 +333,7 @@ EXAMPLES
|
|
|
333
333
|
$ sf config set --global target-org=my-scratch-org target-dev-hub=my-dev-hub
|
|
334
334
|
```
|
|
335
335
|
|
|
336
|
-
_See code: [src/commands/config/set.ts](https://github.com/salesforcecli/plugin-settings/blob/2.
|
|
336
|
+
_See code: [src/commands/config/set.ts](https://github.com/salesforcecli/plugin-settings/blob/2.3.0/src/commands/config/set.ts)_
|
|
337
337
|
|
|
338
338
|
## `sf config unset`
|
|
339
339
|
|
|
@@ -372,6 +372,6 @@ EXAMPLES
|
|
|
372
372
|
$ sf config unset target-org api-version --global
|
|
373
373
|
```
|
|
374
374
|
|
|
375
|
-
_See code: [src/commands/config/unset.ts](https://github.com/salesforcecli/plugin-settings/blob/2.
|
|
375
|
+
_See code: [src/commands/config/unset.ts](https://github.com/salesforcecli/plugin-settings/blob/2.3.0/src/commands/config/unset.ts)_
|
|
376
376
|
|
|
377
377
|
<!-- commandsstop -->
|
|
@@ -26,6 +26,9 @@ export default class AliasSet extends AliasCommand {
|
|
|
26
26
|
const parsed = parseVarArgs(args, argv);
|
|
27
27
|
const results = await Promise.all(Object.entries(parsed).map(async ([alias, value]) => {
|
|
28
28
|
try {
|
|
29
|
+
if (alias.includes(' ')) {
|
|
30
|
+
this.warn(messages.getMessage('warning.spaceAlias', [alias, alias]));
|
|
31
|
+
}
|
|
29
32
|
// to support plugin-settings in sfdx, which allowed setting an alias to undefined, when that happens we'll unset the alias
|
|
30
33
|
// which is what the user wants
|
|
31
34
|
if (!value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../../src/commands/alias/set.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,6BAA6B,EAAE,WAAW,CAAC,CAAC;AAEnF,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,YAA0B;IACvD,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAChD,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACxD,MAAM,CA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,OAAO,CAAC;IACjB,CAAC"}
|
package/messages/alias.set.md
CHANGED
|
@@ -4,7 +4,7 @@ Set one or more aliases on your local computer.
|
|
|
4
4
|
|
|
5
5
|
# description
|
|
6
6
|
|
|
7
|
-
Aliases are user-defined short names that make it easier to use the CLI. For example, users often set an alias for a scratch org usernames because they're long and unintuitive.
|
|
7
|
+
Aliases are user-defined short names that make it easier to use the CLI. For example, users often set an alias for a scratch org usernames because they're long and unintuitive. Check the --help of a CLI command to determine where you can use an alias.
|
|
8
8
|
|
|
9
9
|
You can associate an alias with only one value at a time. If you set an alias multiple times, the alias points to the most recent value. Aliases are global; after you set an alias, you can use it in any Salesforce DX project on your computer.
|
|
10
10
|
|
|
@@ -35,3 +35,9 @@ You must provide one or more aliases to set. Use the --help flag to see examples
|
|
|
35
35
|
# error.ValueRequired
|
|
36
36
|
|
|
37
37
|
You must provide a value when setting an alias. Use `sf alias unset my-alias-name` to remove existing aliases.
|
|
38
|
+
|
|
39
|
+
# warning.spaceAlias
|
|
40
|
+
|
|
41
|
+
The alias "%s" includes a space. We recommend aliases without spaces.
|
|
42
|
+
|
|
43
|
+
If you decide to keep "%s", you must wrap it in double quotes when using it in any CLI command. For example: sf project deploy start --target-org "my scratch".
|
package/oclif.manifest.json
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
],
|
|
72
72
|
"args": {},
|
|
73
73
|
"deprecateAliases": true,
|
|
74
|
-
"description": "Aliases are user-defined short names that make it easier to use the CLI. For example, users often set an alias for a scratch org usernames because they're long and unintuitive.
|
|
74
|
+
"description": "Aliases are user-defined short names that make it easier to use the CLI. For example, users often set an alias for a scratch org usernames because they're long and unintuitive. Check the --help of a CLI command to determine where you can use an alias.\n\nYou can associate an alias with only one value at a time. If you set an alias multiple times, the alias points to the most recent value. Aliases are global; after you set an alias, you can use it in any Salesforce DX project on your computer.\n\nUse quotes to specify an alias value that contains spaces. You typically use an equal sign to set your alias, although you don't need it if you're setting a single alias in a command.",
|
|
75
75
|
"examples": [
|
|
76
76
|
"Set an alias for a scratch org username:\n<%= config.bin %> <%= command.id %> my-scratch-org=test-sadbiytjsupn@example.com",
|
|
77
77
|
"Set multiple aliases with a single command:\n<%= config.bin %> <%= command.id %> my-scratch-org=test-sadbiytjsupn@example.com my-other-scratch-org=test-ss0xut7txzxf@example.com",
|
|
@@ -626,5 +626,5 @@
|
|
|
626
626
|
]
|
|
627
627
|
}
|
|
628
628
|
},
|
|
629
|
-
"version": "2.
|
|
629
|
+
"version": "2.3.0"
|
|
630
630
|
}
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-settings",
|
|
3
3
|
"description": "configure the Salesforce CLI",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@oclif/core": "^3.26.5",
|
|
9
|
-
"@salesforce/core": "^7.3.
|
|
9
|
+
"@salesforce/core": "^7.3.9",
|
|
10
10
|
"@salesforce/sf-plugins-core": "^9.0.7",
|
|
11
11
|
"fast-levenshtein": "^3.0.0"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@oclif/plugin-command-snapshot": "^5.
|
|
15
|
-
"@oclif/test": "^3.2.
|
|
16
|
-
"@salesforce/cli-plugins-testkit": "^5.
|
|
17
|
-
"@salesforce/dev-scripts": "^9.
|
|
18
|
-
"@salesforce/plugin-command-reference": "^3.0.
|
|
19
|
-
"@salesforce/plugin-deploy-retrieve": "^3.
|
|
14
|
+
"@oclif/plugin-command-snapshot": "^5.2.0",
|
|
15
|
+
"@oclif/test": "^3.2.15",
|
|
16
|
+
"@salesforce/cli-plugins-testkit": "^5.3.6",
|
|
17
|
+
"@salesforce/dev-scripts": "^9.1.2",
|
|
18
|
+
"@salesforce/plugin-command-reference": "^3.0.85",
|
|
19
|
+
"@salesforce/plugin-deploy-retrieve": "^3.8.3",
|
|
20
20
|
"@salesforce/ts-sinon": "^1.4.17",
|
|
21
21
|
"@types/fast-levenshtein": "^0.0.4",
|
|
22
|
-
"eslint-plugin-sf-plugin": "^1.18.
|
|
23
|
-
"oclif": "^4.
|
|
22
|
+
"eslint-plugin-sf-plugin": "^1.18.5",
|
|
23
|
+
"oclif": "^4.12.0",
|
|
24
24
|
"ts-node": "^10.9.2",
|
|
25
25
|
"typescript": "^5.4.5"
|
|
26
26
|
},
|
|
@@ -31,8 +31,6 @@
|
|
|
31
31
|
"files": [
|
|
32
32
|
"/lib",
|
|
33
33
|
"/messages",
|
|
34
|
-
"/npm-shrinkwrap.json",
|
|
35
|
-
"/oclif.lock",
|
|
36
34
|
"/oclif.manifest.json",
|
|
37
35
|
"/schemas"
|
|
38
36
|
],
|
|
@@ -213,7 +211,7 @@
|
|
|
213
211
|
"exports": "./lib/index.js",
|
|
214
212
|
"type": "module",
|
|
215
213
|
"sfdx": {
|
|
216
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/2.
|
|
217
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/2.
|
|
214
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/2.3.0.crt",
|
|
215
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/2.3.0.sig"
|
|
218
216
|
}
|
|
219
217
|
}
|