@salesforce/cli 2.82.5 → 2.82.6
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 +2 -1
- package/dist/hooks/preparse.js +2 -1
- package/npm-shrinkwrap.json +2 -2
- package/oclif.manifest.json +22 -14
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
# Getting Started
|
|
9
9
|
|
|
10
|
+
- [Release notes](https://github.com/forcedotcom/cli/tree/main/releasenotes)
|
|
10
11
|
- Read the [sf Plugin Developer Guide](https://github.com/salesforcecli/cli/wiki/Quick-Introduction-to-Developing-sf-Plugins) to learn how to develop a `sf` plugin.
|
|
11
12
|
- Are you migrating an `sfdx` plugin to `sf`? Then check out the [migration section](https://github.com/salesforcecli/cli/wiki/Migrate-Plugins-Built-for-sfdx) of the developer guide.
|
|
12
13
|
- Read [this section of the Setup Guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_move_to_sf_v2.htm) for easy instructions on how to move from your `sfdx` (v7) installation to `sf` (v2).
|
|
@@ -24,7 +25,7 @@ $ npm install -g @salesforce/cli
|
|
|
24
25
|
$ sf COMMAND
|
|
25
26
|
running command...
|
|
26
27
|
$ sf (--version|-v)
|
|
27
|
-
@salesforce/cli/2.82.
|
|
28
|
+
@salesforce/cli/2.82.6 linux-x64 node-v22.14.0
|
|
28
29
|
$ sf --help [COMMAND]
|
|
29
30
|
USAGE
|
|
30
31
|
$ sf COMMAND
|
package/dist/hooks/preparse.js
CHANGED
|
@@ -70,7 +70,8 @@ const hook = async function ({ argv, options, context }) {
|
|
|
70
70
|
if (contents === undefined) {
|
|
71
71
|
return [name, undefined];
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const crlf = contents.search('\r\n') !== -1;
|
|
74
|
+
const values = ext === '.json' ? [JSON.stringify(JSON.parse(contents))] : contents?.trim().split(crlf ? '\r\n' : '\n');
|
|
74
75
|
return [name, values];
|
|
75
76
|
}));
|
|
76
77
|
const newArgv = [...argv];
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/cli",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.6",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/cli",
|
|
9
|
-
"version": "2.82.
|
|
9
|
+
"version": "2.82.6",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "BSD-3-Clause",
|
|
12
12
|
"dependencies": {
|
package/oclif.manifest.json
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
"args": {},
|
|
6
6
|
"description": "Code Analyzer gives you the ability to configure settings that modify Code Analyzer's behavior, to override the tags and severity levels of rules, and to configure the engine specific settings. Use this command to see the current state of this configuration. You can also save this state to a YAML-formatted file that you can modify for your needs.\n\nTo apply a custom configuration with Code Analyzer, either keep your custom configuration settings in a `code-analyzer.yml` file located in the current folder from which you are executing commands, or specify the location of your custom configuration file to the Code Analyzer commands with the --config-file flag.\n\nWe're continually improving Salesforce Code Analyzer. Tell us what you think! Give feedback at http://sfdc.co/CodeAnalyzerFeedback.",
|
|
7
7
|
"examples": [
|
|
8
|
-
"Display the current state of the Code Analyzer configuration using the default behavior: display top level configuration, display the engine and rule override settings associated with all the rules
|
|
9
|
-
"This example is identical to the previous one, assuming that `./code-analyzer.yml` exists in your current folder.\n<%= config.bin %> <%= command.id %> --config-file ./code-analyzer.yml --rule-selector
|
|
8
|
+
"Display the current state of the Code Analyzer configuration using the default behavior: display top level configuration, display the engine and rule override settings associated with all the rules; and automatically apply any existing custom configuration settings found in a `code-analyzer.yml` or `code-analyzer.yaml` file in the current folder:\n<%= config.bin %> <%= command.id %>",
|
|
9
|
+
"This example is identical to the previous one, assuming that `./code-analyzer.yml` exists in your current folder.\n<%= config.bin %> <%= command.id %> --config-file ./code-analyzer.yml --rule-selector all",
|
|
10
10
|
"Write the current state of configuration to the file `code-analyzer.yml`, including any configuration from an existing `code-analyzer.yml` file. The command preserves all values from the original config, but overwrites any comments:\n<%= config.bin %> <%= command.id %> --config-file ./code-analyzer.yml --output-file code-analyzer.yml",
|
|
11
|
-
"Display the configuration state for
|
|
12
|
-
"Display the configuration state associated with
|
|
13
|
-
"Display any relevant configuration settings associated with the rule name 'no-undef' from the 'eslint' engine:\n<%= config.bin %> <%= command.id %> --rule-
|
|
14
|
-
"Load an existing configuration file called `existing-config.yml`, and then write the configuration to a new file called `new-config.yml`, the configuration state that is applicable to all rules that are relevant to the workspace located in the current folder:\n<%= config.bin %> <%= command.id %> --config-file ./existing-config.yml --
|
|
11
|
+
"Display the configuration state for just the recommended rules, instead of all the rules:\n<%= config.bin %> <%= command.id %> --rule-selector Recommended",
|
|
12
|
+
"Display the configuration state associated with all the rules that are applicable to your workspace folder, `./src`:\n<%= config.bin %> <%= command.id %> --workspace ./src",
|
|
13
|
+
"Display any relevant configuration settings associated with the rule name 'no-undef' from the 'eslint' engine:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:no-undef",
|
|
14
|
+
"Load an existing configuration file called `existing-config.yml`, and then write the configuration to a new file called `new-config.yml`, the configuration state that is applicable to all rules that are relevant to the workspace located in the current folder:\n<%= config.bin %> <%= command.id %> --config-file ./existing-config.yml --workspace . --output-file ./subfolder-config.yml"
|
|
15
15
|
],
|
|
16
16
|
"flags": {
|
|
17
17
|
"workspace": {
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
},
|
|
27
27
|
"rule-selector": {
|
|
28
28
|
"char": "r",
|
|
29
|
-
"description": "Use the --rule-selector flag to display only the configuration associated with the rules based on specific criteria. You can select by engine, such as the rules associated with the \"retire-js\" or \"eslint\" engine. Or select by the severity of the rules, such as high or moderate. You can also select rules using tag values or rule names.\n\nYou can combine different criteria using colons to further filter the list; the colon works as an intersection. For example, \"--rule-selector eslint:Security\" reduces the output to only contain the configuration state associated with the rules from the \"eslint\" engine that have the \"Security\" tag. To add multiple rule selectors together (a union), specify the --rule-selector flag multiple times, such as \"--rule-selector eslint:Recommended --rule-selector retire-js:3\".\n\nIf you don't specify this flag, then the command uses the \"
|
|
29
|
+
"description": "Use the --rule-selector flag to display only the configuration associated with the rules based on specific criteria. You can select by engine, such as the rules associated with the \"retire-js\" or \"eslint\" engine. Or select by the severity of the rules, such as high or moderate. You can also select rules using tag values or rule names.\n\nYou can combine different criteria using colons to further filter the list; the colon works as an intersection. For example, \"--rule-selector eslint:Security\" reduces the output to only contain the configuration state associated with the rules from the \"eslint\" engine that have the \"Security\" tag. To add multiple rule selectors together (a union), specify the --rule-selector flag multiple times, such as \"--rule-selector eslint:Recommended --rule-selector retire-js:3\".\n\nIf you don't specify this flag, then the command uses the \"all\" rule selector.\n\nRun `<%= config.bin %> <%= command.id %> --rule-selector Recommended` to display the configuration state associated with just the 'Recommended' rules, instead of all the rules.",
|
|
30
30
|
"name": "rule-selector",
|
|
31
31
|
"summary": "Selection of rules, based on engine name, severity level, rule name, tag, or a combination of criteria separated by colons.",
|
|
32
32
|
"default": [
|
|
33
|
-
"
|
|
33
|
+
"all"
|
|
34
34
|
],
|
|
35
35
|
"delimiter": ",",
|
|
36
36
|
"hasDynamicHelp": false,
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"List the recommended rules for the \"eslint\" engine:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:Recommended",
|
|
91
91
|
"List all the rules for the \"eslint\" engine:\n<%= config.bin %> <%= command.id %> --rule-selector eslint",
|
|
92
92
|
"The previous example is equivalent to this example:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:all",
|
|
93
|
-
"List all rules for all engines:\n<%= config.bin %> <%= command.id %> --rule-selector all",
|
|
93
|
+
"List the details about all rules for all engines; also write the rules in JSON format to a file called \"rules.json\" in the \"out\" folder, which must already exist:\n<%= config.bin %> <%= command.id %> --rule-selector all --output-file ./out/rules.json --view detail",
|
|
94
94
|
"Get a more accurate list of the rules that apply specifically to your workspace (all the files in the current folder):\n<%= config.bin %> <%= command.id %> --rule-selector all --workspace .",
|
|
95
95
|
"List the recommended rules associated with a workspace that includes all the files in the folder \"./other-source\" and only the Apex class files (extension .cls) under the folder \"./force-app\":\n<%= config.bin %> <%= command.id %> --rule-selector Recommended --workspace ./other-source --workspace ./force-app/**/*.cls",
|
|
96
96
|
"List all the \"eslint\" engine rules that have a moderate severity (3) and the recommended \"retire-js\" engine rules with any severity:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:3 --rule-selector retire-js:Recommended",
|
|
@@ -131,12 +131,20 @@
|
|
|
131
131
|
"multiple": false,
|
|
132
132
|
"type": "option"
|
|
133
133
|
},
|
|
134
|
+
"output-file": {
|
|
135
|
+
"char": "f",
|
|
136
|
+
"description": "If you specify a folder, such as \"--output-file ./out/rules.json\", the folder must already exist or you get an error. If the file already exists, it's overwritten without prompting.\n\nIf you don't specify this flag, the command outputs the rules to only the terminal.",
|
|
137
|
+
"name": "output-file",
|
|
138
|
+
"summary": "Name of the file where the selected rules are written. The file format depends on the extension you specify; currently, only .json is supported for JSON-formatted output.",
|
|
139
|
+
"hasDynamicHelp": false,
|
|
140
|
+
"multiple": false,
|
|
141
|
+
"type": "option"
|
|
142
|
+
},
|
|
134
143
|
"view": {
|
|
135
144
|
"char": "v",
|
|
136
|
-
"description": "The format `table` is concise and shows minimal output, the format `detail` shows all available information.",
|
|
145
|
+
"description": "The format `table` is concise and shows minimal output, the format `detail` shows all available information. \n\nIf you specify neither --view nor --output-file, then the default table view is shown. If you specify --output-file but not --view, only summary information is shown in the terminal.",
|
|
137
146
|
"name": "view",
|
|
138
147
|
"summary": "Format to display the rules in the terminal.",
|
|
139
|
-
"default": "table",
|
|
140
148
|
"hasDynamicHelp": false,
|
|
141
149
|
"multiple": false,
|
|
142
150
|
"options": [
|
|
@@ -248,9 +256,9 @@
|
|
|
248
256
|
},
|
|
249
257
|
"output-file": {
|
|
250
258
|
"char": "f",
|
|
251
|
-
"description": "If you don't specify this flag, the command outputs the results
|
|
259
|
+
"description": "If you don't specify this flag, the command outputs the results to only the terminal. Use this flag to print the results to a file; the format of the results depends on the extension you provide. For example, \"--output-file results.csv\" creates a comma-separated values file. You can specify one of these extensions:\n\n- .csv\n- .html or .htm\n- .json\n- .sarif or .sarif.json\n- .xml\n\nTo output the results to multiple files, specify this flag multiple times. For example: \"--output-file results.json --output-file report.html\" creates both a JSON results file and an HTML file.\n\nIf you specify a folder, such as \"--output-file ./out/results.json\", the folder must already exist or you get an error. If the file already exists, it's overwritten without prompting.",
|
|
252
260
|
"name": "output-file",
|
|
253
|
-
"summary": "
|
|
261
|
+
"summary": "Name of the file where the analysis results are written. The file format depends on the extension you specify, such as .csv, .html, .xml, and so on.",
|
|
254
262
|
"delimiter": ",",
|
|
255
263
|
"hasDynamicHelp": false,
|
|
256
264
|
"multiple": true,
|
|
@@ -4403,5 +4411,5 @@
|
|
|
4403
4411
|
]
|
|
4404
4412
|
}
|
|
4405
4413
|
},
|
|
4406
|
-
"version": "2.82.
|
|
4414
|
+
"version": "2.82.6"
|
|
4407
4415
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/cli",
|
|
3
3
|
"description": "The Salesforce CLI",
|
|
4
|
-
"version": "2.82.
|
|
4
|
+
"version": "2.82.6",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"sf": "./bin/run.js",
|
|
8
8
|
"sfdx": "./bin/run.js"
|
|
9
9
|
},
|
|
10
|
-
"homepage": "https://github.com/
|
|
10
|
+
"homepage": "https://github.com/forcedotcom/cli",
|
|
11
11
|
"bugs": "https://github.com/forcedotcom/cli/issues",
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": ">=18.6.0"
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
"@salesforce/plugin-user"
|
|
76
76
|
],
|
|
77
77
|
"jitPlugins": {
|
|
78
|
-
"@salesforce/plugin-code-analyzer": "5.0.0-beta.
|
|
78
|
+
"@salesforce/plugin-code-analyzer": "5.0.0-beta.3",
|
|
79
79
|
"@salesforce/plugin-custom-metadata": "3.3.47",
|
|
80
80
|
"@salesforce/plugin-community": "3.3.17",
|
|
81
81
|
"@salesforce/plugin-dev": "2.5.1",
|
|
82
82
|
"@salesforce/plugin-devops-center": "1.2.27",
|
|
83
83
|
"@salesforce/plugin-signups": "2.6.19",
|
|
84
84
|
"@salesforce/sfdx-plugin-lwc-test": "1.2.1",
|
|
85
|
-
"@salesforce/sfdx-scanner": "4.
|
|
85
|
+
"@salesforce/sfdx-scanner": "4.11.0"
|
|
86
86
|
},
|
|
87
87
|
"devPlugins": [
|
|
88
88
|
"@oclif/plugin-command-snapshot",
|