@salesforce/plugin-settings 2.0.33 → 2.1.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 CHANGED
@@ -74,9 +74,304 @@ sf plugins
74
74
 
75
75
  <!-- commands -->
76
76
 
77
- # Command Topics
77
+ - [`sf alias list`](#sf-alias-list)
78
+ - [`sf alias set`](#sf-alias-set)
79
+ - [`sf alias unset`](#sf-alias-unset)
80
+ - [`sf config get`](#sf-config-get)
81
+ - [`sf config list`](#sf-config-list)
82
+ - [`sf config set`](#sf-config-set)
83
+ - [`sf config unset`](#sf-config-unset)
78
84
 
79
- - [`sf alias`](docs/alias.md) - Use the alias commands to manage your aliases.
80
- - [`sf config`](docs/config.md) - Commands to configure Salesforce CLI.
85
+ ## `sf alias list`
86
+
87
+ List all aliases currently set on your local computer.
88
+
89
+ ```
90
+ USAGE
91
+ $ sf alias list [--json] [--flags-dir <value>]
92
+
93
+ GLOBAL FLAGS
94
+ --flags-dir=<value> Import flag values from a directory.
95
+ --json Format output as json.
96
+
97
+ DESCRIPTION
98
+ List all aliases currently set on your local computer.
99
+
100
+ Aliases are global, which means that you can use all the listed aliases in any Salesforce DX project on your computer.
101
+
102
+ ALIASES
103
+ $ sf force alias list
104
+
105
+ EXAMPLES
106
+ List all the aliases you've set:
107
+
108
+ $ sf alias list
109
+ ```
110
+
111
+ _See code: [src/commands/alias/list.ts](https://github.com/salesforcecli/plugin-settings/blob/2.1.0/src/commands/alias/list.ts)_
112
+
113
+ ## `sf alias set`
114
+
115
+ Set one or more aliases on your local computer.
116
+
117
+ ```
118
+ USAGE
119
+ $ sf alias set [--json] [--flags-dir <value>]
120
+
121
+ GLOBAL FLAGS
122
+ --flags-dir=<value> Import flag values from a directory.
123
+ --json Format output as json.
124
+
125
+ DESCRIPTION
126
+ Set one or more aliases on your local computer.
127
+
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. Check the --help of a CLI command to determine where you
130
+ can use an alias.
131
+
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
133
+ most recent value. Aliases are global; after you set an alias, you can use it in any Salesforce DX project on your
134
+ computer.
135
+
136
+ Use quotes to specify an alias value that contains spaces. You typically use an equal sign to set your alias, although
137
+ you don't need it if you're setting a single alias in a command.
138
+
139
+ ALIASES
140
+ $ sf force alias set
141
+
142
+ EXAMPLES
143
+ Set an alias for a scratch org username:
144
+
145
+ $ sf alias set my-scratch-org=test-sadbiytjsupn@example.com
146
+
147
+ Set multiple aliases with a single command:
148
+
149
+ $ sf alias set my-scratch-org=test-sadbiytjsupn@example.com my-other-scratch-org=test-ss0xut7txzxf@example.com
150
+
151
+ Set an alias that contains spaces:
152
+
153
+ $ sf alias set my-alias='alias with spaces'
154
+
155
+ Set a single alias without using an equal sign:
156
+
157
+ $ sf alias set my-scratch-org test-ss0xut7txzxf@example.com
158
+ ```
159
+
160
+ _See code: [src/commands/alias/set.ts](https://github.com/salesforcecli/plugin-settings/blob/2.1.0/src/commands/alias/set.ts)_
161
+
162
+ ## `sf alias unset`
163
+
164
+ Unset one or more aliases that are currently set on your local computer.
165
+
166
+ ```
167
+ USAGE
168
+ $ sf alias unset [--json] [--flags-dir <value>] [-a] [-p]
169
+
170
+ FLAGS
171
+ -a, --all Unset all currently set aliases.
172
+ -p, --no-prompt Don't prompt the user for confirmation when unsetting all aliases.
173
+
174
+ GLOBAL FLAGS
175
+ --flags-dir=<value> Import flag values from a directory.
176
+ --json Format output as json.
177
+
178
+ DESCRIPTION
179
+ Unset one or more aliases that are currently set on your local computer.
180
+
181
+ Aliases are global, so when you unset one it's no longer available in any Salesforce DX project.
182
+
183
+ ALIASES
184
+ $ sf force alias unset
185
+
186
+ EXAMPLES
187
+ Unset an alias:
188
+
189
+ $ sf alias unset my-alias
190
+
191
+ Unset multiple aliases with a single command:
192
+
193
+ $ sf alias unset my-alias my-other-alias
194
+
195
+ Unset all aliases:
196
+
197
+ $ sf alias unset --all [--no-prompt]
198
+ ```
199
+
200
+ _See code: [src/commands/alias/unset.ts](https://github.com/salesforcecli/plugin-settings/blob/2.1.0/src/commands/alias/unset.ts)_
201
+
202
+ ## `sf config get`
203
+
204
+ Get the value of a configuration variable.
205
+
206
+ ```
207
+ USAGE
208
+ $ sf config get [--json] [--flags-dir <value>] [--verbose]
209
+
210
+ FLAGS
211
+ --verbose Display whether the configuration variables are set locally or globally.
212
+
213
+ GLOBAL FLAGS
214
+ --flags-dir=<value> Import flag values from a directory.
215
+ --json Format output as json.
216
+
217
+ DESCRIPTION
218
+ Get the value of a configuration variable.
219
+
220
+ Run "sf config list" to see the configuration variables you've already set and their level (local or global).
221
+
222
+ Run "sf config set" to set a configuration variable. For the full list of available configuration variables, see
223
+ https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_config_values.htm.
224
+
225
+ ALIASES
226
+ $ sf force config get
227
+
228
+ EXAMPLES
229
+ Get the value of the "target-org" configuration variable.
230
+
231
+ $ sf config get target-org
232
+
233
+ Get multiple configuration variables and display whether they're set locally or globally:
234
+
235
+ $ sf config get target-org api-version --verbose
236
+ ```
237
+
238
+ _See code: [src/commands/config/get.ts](https://github.com/salesforcecli/plugin-settings/blob/2.1.0/src/commands/config/get.ts)_
239
+
240
+ ## `sf config list`
241
+
242
+ List the configuration variables that you've previously set.
243
+
244
+ ```
245
+ USAGE
246
+ $ sf config list [--json] [--flags-dir <value>]
247
+
248
+ GLOBAL FLAGS
249
+ --flags-dir=<value> Import flag values from a directory.
250
+ --json Format output as json.
251
+
252
+ DESCRIPTION
253
+ List the configuration variables that you've previously set.
254
+
255
+ A config variable can be global or local, depending on whether you used the --global flag when you set it. Local
256
+ config variables apply only to the current project and override global config variables, which apply to all projects.
257
+ You can set all config variables as environment variables. Environment variables override their equivalent local and
258
+ global config variables.
259
+
260
+ The output of this command takes into account your current context. For example, let's say you run this command from a
261
+ Salesforce DX project in which you've locally set the "target-org" config variable. The command displays the local
262
+ value, even if you've also set "target-org" globally. If you haven't set the config variable locally, then the global
263
+ value is displayed, if set. If you set the SF_TARGET_ORG environment variable, it's displayed as such and overrides
264
+ any locally or globally set "target-org" config variable.
265
+
266
+ For the full list of available configuration variables, see
267
+ https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_config_values.htm.
268
+
269
+ ALIASES
270
+ $ sf force config list
271
+
272
+ EXAMPLES
273
+ List the global and local configuration variables that apply to your current context:
274
+
275
+ $ sf config list
276
+ ```
277
+
278
+ _See code: [src/commands/config/list.ts](https://github.com/salesforcecli/plugin-settings/blob/2.1.0/src/commands/config/list.ts)_
279
+
280
+ ## `sf config set`
281
+
282
+ Set one or more configuration variables, such as your default org.
283
+
284
+ ```
285
+ USAGE
286
+ $ sf config set [--json] [--flags-dir <value>] [-g]
287
+
288
+ FLAGS
289
+ -g, --global Set the configuration variables globally, so they can be used from any Salesforce DX project.
290
+
291
+ GLOBAL FLAGS
292
+ --flags-dir=<value> Import flag values from a directory.
293
+ --json Format output as json.
294
+
295
+ DESCRIPTION
296
+ Set one or more configuration variables, such as your default org.
297
+
298
+ Use configuration variables to set CLI defaults, such as your default org or the API version you want the CLI to use.
299
+ For example, if you set the "target-org" configuration variable, you don't need to specify it as a "sf deploy
300
+ metadata" flag if you're deploying to your default org.
301
+
302
+ Local configuration variables apply only to your current project. Global variables, specified with the --global flag,
303
+ apply in any Salesforce DX project.
304
+
305
+ The resolution order if you've set a flag value in multiple ways is as follows:
306
+
307
+ 1. Flag value specified at the command line.
308
+ 2. Local (project-level) configuration variable.
309
+ 3. Global configuration variable.
310
+
311
+ Run "sf config list" to see the configuration variables you've already set and their level (local or global).
312
+
313
+ If you're setting a single config variable, you don't need to use an equal sign between the variable and value. But
314
+ you must use the equal sign if setting multiple config variables.
315
+
316
+ For the full list of available configuration variables, see
317
+ https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_config_values.htm.
318
+
319
+ ALIASES
320
+ $ sf force config set
321
+
322
+ EXAMPLES
323
+ Set the local target-org configuration variable to an org username:
324
+
325
+ $ sf config set target-org me@my.org
326
+
327
+ Set the local target-org configuration variable to an alias:
328
+
329
+ $ sf config set target-org my-scratch-org
330
+
331
+ Set the global target-org and target-dev-hub configuration variables using aliases:
332
+
333
+ $ sf config set --global target-org=my-scratch-org target-dev-hub=my-dev-hub
334
+ ```
335
+
336
+ _See code: [src/commands/config/set.ts](https://github.com/salesforcecli/plugin-settings/blob/2.1.0/src/commands/config/set.ts)_
337
+
338
+ ## `sf config unset`
339
+
340
+ Unset local or global configuration variables.
341
+
342
+ ```
343
+ USAGE
344
+ $ sf config unset [--json] [--flags-dir <value>] [-g]
345
+
346
+ FLAGS
347
+ -g, --global Unset the configuration variables globally.
348
+
349
+ GLOBAL FLAGS
350
+ --flags-dir=<value> Import flag values from a directory.
351
+ --json Format output as json.
352
+
353
+ DESCRIPTION
354
+ Unset local or global configuration variables.
355
+
356
+ Local configuration variables apply only to your current project. Global configuration variables apply in any
357
+ Salesforce DX project.
358
+
359
+ For the full list of available configuration variables, see
360
+ https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_config_values.htm.
361
+
362
+ ALIASES
363
+ $ sf force config unset
364
+
365
+ EXAMPLES
366
+ Unset the local "target-org" configuration variable:
367
+
368
+ $ sf config unset target-org
369
+
370
+ Unset multiple configuration variables globally:
371
+
372
+ $ sf config unset target-org api-version --global
373
+ ```
374
+
375
+ _See code: [src/commands/config/unset.ts](https://github.com/salesforcecli/plugin-settings/blob/2.1.0/src/commands/config/unset.ts)_
81
376
 
82
377
  <!-- commandsstop -->
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-settings",
3
- "version": "2.0.33",
3
+ "version": "2.1.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/plugin-settings",
9
- "version": "2.0.33",
9
+ "version": "2.1.0",
10
10
  "license": "BSD-3-Clause",
11
11
  "dependencies": {
12
12
  "@oclif/core": "^3.20.0",
13
13
  "@salesforce/core": "^6.7.3",
14
- "@salesforce/sf-plugins-core": "^7.1.16",
14
+ "@salesforce/sf-plugins-core": "^8.0.1",
15
15
  "fast-levenshtein": "^3.0.0"
16
16
  },
17
17
  "devDependencies": {
@@ -3845,15 +3845,15 @@
3845
3845
  "license": "ISC"
3846
3846
  },
3847
3847
  "node_modules/@salesforce/sf-plugins-core": {
3848
- "version": "7.1.16",
3849
- "resolved": "https://registry.npmjs.org/@salesforce/sf-plugins-core/-/sf-plugins-core-7.1.16.tgz",
3850
- "integrity": "sha512-v135A7TG1n97eFoh0j96kbHKbivXbbd7M5url3L0I5lJsCGGF+mMSL2Tpm8FNUN8DCLOGkvymR1s2QmNzMR7Tw==",
3848
+ "version": "8.0.1",
3849
+ "resolved": "https://registry.npmjs.org/@salesforce/sf-plugins-core/-/sf-plugins-core-8.0.1.tgz",
3850
+ "integrity": "sha512-R6SqJ1XqSINSWdZruKtC2SKGnLBh7KbFI7+qS0FYlyPU4IlWoa+AZkGwWvlczuSOumqnlhT95rNKwZTS5rJugA==",
3851
3851
  "license": "BSD-3-Clause",
3852
3852
  "dependencies": {
3853
3853
  "@inquirer/confirm": "^2.0.17",
3854
3854
  "@inquirer/password": "^1.1.16",
3855
3855
  "@oclif/core": "^3.23.0",
3856
- "@salesforce/core": "^6.6.0",
3856
+ "@salesforce/core": "^6.7.3",
3857
3857
  "@salesforce/kit": "^3.0.15",
3858
3858
  "@salesforce/ts-types": "^2.0.9",
3859
3859
  "chalk": "^5.3.0"
package/oclif.lock CHANGED
@@ -1496,7 +1496,7 @@
1496
1496
  semver "^7.5.4"
1497
1497
  ts-retry-promise "^0.7.1"
1498
1498
 
1499
- "@salesforce/core@^6.4.1", "@salesforce/core@^6.5.3", "@salesforce/core@^6.6.0", "@salesforce/core@^6.7.0", "@salesforce/core@^6.7.1", "@salesforce/core@^6.7.3":
1499
+ "@salesforce/core@^6.4.1", "@salesforce/core@^6.5.3", "@salesforce/core@^6.7.0", "@salesforce/core@^6.7.1", "@salesforce/core@^6.7.3":
1500
1500
  version "6.7.3"
1501
1501
  resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-6.7.3.tgz#5d8f30c40ac3cebb898c8e845fe9a067bc729268"
1502
1502
  integrity sha512-uU+PuZZGXxByhvnXLH1V3eY5P1caw401dIZ/QvhzYxoP/alPLk7dpChnZNJYH5Rw3dc/AhSPw+eg0cvUyjhP1Q==
@@ -1629,15 +1629,15 @@
1629
1629
  chalk "^4"
1630
1630
  inquirer "^8.2.5"
1631
1631
 
1632
- "@salesforce/sf-plugins-core@^7.1.16":
1633
- version "7.1.16"
1634
- resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-7.1.16.tgz#a68673560f01421ac18a0bc1d4687abc35e11234"
1635
- integrity sha512-v135A7TG1n97eFoh0j96kbHKbivXbbd7M5url3L0I5lJsCGGF+mMSL2Tpm8FNUN8DCLOGkvymR1s2QmNzMR7Tw==
1632
+ "@salesforce/sf-plugins-core@^8.0.1":
1633
+ version "8.0.1"
1634
+ resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-8.0.1.tgz#f155cddfd7695aab0d8264848b634b2a91cdbf2c"
1635
+ integrity sha512-R6SqJ1XqSINSWdZruKtC2SKGnLBh7KbFI7+qS0FYlyPU4IlWoa+AZkGwWvlczuSOumqnlhT95rNKwZTS5rJugA==
1636
1636
  dependencies:
1637
1637
  "@inquirer/confirm" "^2.0.17"
1638
1638
  "@inquirer/password" "^1.1.16"
1639
1639
  "@oclif/core" "^3.23.0"
1640
- "@salesforce/core" "^6.6.0"
1640
+ "@salesforce/core" "^6.7.3"
1641
1641
  "@salesforce/kit" "^3.0.15"
1642
1642
  "@salesforce/ts-types" "^2.0.9"
1643
1643
  chalk "^5.3.0"
@@ -18,6 +18,14 @@
18
18
  "allowNo": false,
19
19
  "type": "boolean"
20
20
  },
21
+ "flags-dir": {
22
+ "helpGroup": "GLOBAL",
23
+ "name": "flags-dir",
24
+ "summary": "Import flag values from a directory.",
25
+ "hasDynamicHelp": false,
26
+ "multiple": false,
27
+ "type": "option"
28
+ },
21
29
  "loglevel": {
22
30
  "deprecated": {
23
31
  "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."
@@ -78,6 +86,14 @@
78
86
  "allowNo": false,
79
87
  "type": "boolean"
80
88
  },
89
+ "flags-dir": {
90
+ "helpGroup": "GLOBAL",
91
+ "name": "flags-dir",
92
+ "summary": "Import flag values from a directory.",
93
+ "hasDynamicHelp": false,
94
+ "multiple": false,
95
+ "type": "option"
96
+ },
81
97
  "loglevel": {
82
98
  "deprecated": {
83
99
  "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."
@@ -137,6 +153,14 @@
137
153
  "allowNo": false,
138
154
  "type": "boolean"
139
155
  },
156
+ "flags-dir": {
157
+ "helpGroup": "GLOBAL",
158
+ "name": "flags-dir",
159
+ "summary": "Import flag values from a directory.",
160
+ "hasDynamicHelp": false,
161
+ "multiple": false,
162
+ "type": "option"
163
+ },
140
164
  "loglevel": {
141
165
  "deprecated": {
142
166
  "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."
@@ -209,6 +233,14 @@
209
233
  "allowNo": false,
210
234
  "type": "boolean"
211
235
  },
236
+ "flags-dir": {
237
+ "helpGroup": "GLOBAL",
238
+ "name": "flags-dir",
239
+ "summary": "Import flag values from a directory.",
240
+ "hasDynamicHelp": false,
241
+ "multiple": false,
242
+ "type": "option"
243
+ },
212
244
  "loglevel": {
213
245
  "deprecated": {
214
246
  "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."
@@ -314,6 +346,14 @@
314
346
  "allowNo": false,
315
347
  "type": "boolean"
316
348
  },
349
+ "flags-dir": {
350
+ "helpGroup": "GLOBAL",
351
+ "name": "flags-dir",
352
+ "summary": "Import flag values from a directory.",
353
+ "hasDynamicHelp": false,
354
+ "multiple": false,
355
+ "type": "option"
356
+ },
317
357
  "loglevel": {
318
358
  "deprecated": {
319
359
  "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."
@@ -374,6 +414,14 @@
374
414
  "allowNo": false,
375
415
  "type": "boolean"
376
416
  },
417
+ "flags-dir": {
418
+ "helpGroup": "GLOBAL",
419
+ "name": "flags-dir",
420
+ "summary": "Import flag values from a directory.",
421
+ "hasDynamicHelp": false,
422
+ "multiple": false,
423
+ "type": "option"
424
+ },
377
425
  "loglevel": {
378
426
  "deprecated": {
379
427
  "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."
@@ -481,6 +529,14 @@
481
529
  "allowNo": false,
482
530
  "type": "boolean"
483
531
  },
532
+ "flags-dir": {
533
+ "helpGroup": "GLOBAL",
534
+ "name": "flags-dir",
535
+ "summary": "Import flag values from a directory.",
536
+ "hasDynamicHelp": false,
537
+ "multiple": false,
538
+ "type": "option"
539
+ },
484
540
  "loglevel": {
485
541
  "deprecated": {
486
542
  "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."
@@ -570,5 +626,5 @@
570
626
  ]
571
627
  }
572
628
  },
573
- "version": "2.0.33"
629
+ "version": "2.1.0"
574
630
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-settings",
3
3
  "description": "configure the Salesforce CLI",
4
- "version": "2.0.33",
4
+ "version": "2.1.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^3.20.0",
9
9
  "@salesforce/core": "^6.7.3",
10
- "@salesforce/sf-plugins-core": "^7.1.16",
10
+ "@salesforce/sf-plugins-core": "^8.0.1",
11
11
  "fast-levenshtein": "^3.0.0"
12
12
  },
13
13
  "devDependencies": {
@@ -214,7 +214,7 @@
214
214
  "exports": "./lib/index.js",
215
215
  "type": "module",
216
216
  "sfdx": {
217
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/2.0.33.crt",
218
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/2.0.33.sig"
217
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/2.1.0.crt",
218
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-settings/2.1.0.sig"
219
219
  }
220
220
  }