@salesforce/cli 2.73.5 → 2.73.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 CHANGED
@@ -24,7 +24,7 @@ $ npm install -g @salesforce/cli
24
24
  $ sf COMMAND
25
25
  running command...
26
26
  $ sf (--version|-v)
27
- @salesforce/cli/2.73.5 linux-x64 node-v22.12.0
27
+ @salesforce/cli/2.73.6 linux-x64 node-v22.12.0
28
28
  $ sf --help [COMMAND]
29
29
  USAGE
30
30
  $ sf COMMAND
@@ -3200,7 +3200,7 @@ FLAG DESCRIPTIONS
3200
3200
  You can specify either --source-sandbox-name or --source-id when cloning an existing sandbox, but not both.
3201
3201
  ```
3202
3202
 
3203
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/create/sandbox.ts)_
3203
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/create/sandbox.ts)_
3204
3204
 
3205
3205
  ## `sf org create scratch`
3206
3206
 
@@ -3354,7 +3354,7 @@ FLAG DESCRIPTIONS
3354
3354
  Omit this flag to have Salesforce generate a unique username for your org.
3355
3355
  ```
3356
3356
 
3357
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/create/scratch.ts)_
3357
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/create/scratch.ts)_
3358
3358
 
3359
3359
  ## `sf org create user`
3360
3360
 
@@ -3508,7 +3508,7 @@ EXAMPLES
3508
3508
  $ sf org delete sandbox --target-org my-sandbox --no-prompt
3509
3509
  ```
3510
3510
 
3511
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/delete/sandbox.ts)_
3511
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/delete/sandbox.ts)_
3512
3512
 
3513
3513
  ## `sf org delete scratch`
3514
3514
 
@@ -3552,7 +3552,7 @@ EXAMPLES
3552
3552
  $ sf org delete scratch --target-org my-scratch-org --no-prompt
3553
3553
  ```
3554
3554
 
3555
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/delete/scratch.ts)_
3555
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/delete/scratch.ts)_
3556
3556
 
3557
3557
  ## `sf org disable tracking`
3558
3558
 
@@ -3591,7 +3591,7 @@ EXAMPLES
3591
3591
  $ sf org disable tracking
3592
3592
  ```
3593
3593
 
3594
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/disable/tracking.ts)_
3594
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/disable/tracking.ts)_
3595
3595
 
3596
3596
  ## `sf org display`
3597
3597
 
@@ -3636,7 +3636,7 @@ EXAMPLES
3636
3636
  $ sf org display --target-org TestOrg1 --verbose
3637
3637
  ```
3638
3638
 
3639
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/display.ts)_
3639
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/display.ts)_
3640
3640
 
3641
3641
  ## `sf org display user`
3642
3642
 
@@ -3717,7 +3717,7 @@ EXAMPLES
3717
3717
  $ sf org enable tracking
3718
3718
  ```
3719
3719
 
3720
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/enable/tracking.ts)_
3720
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/enable/tracking.ts)_
3721
3721
 
3722
3722
  ## `sf org generate password`
3723
3723
 
@@ -3823,7 +3823,7 @@ EXAMPLES
3823
3823
  $ sf org list --clean
3824
3824
  ```
3825
3825
 
3826
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/list.ts)_
3826
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/list.ts)_
3827
3827
 
3828
3828
  ## `sf org list auth`
3829
3829
 
@@ -3962,7 +3962,7 @@ FLAG DESCRIPTIONS
3962
3962
  Examples of metadata types that use folders are Dashboard, Document, EmailTemplate, and Report.
3963
3963
  ```
3964
3964
 
3965
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/list/metadata.ts)_
3965
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/list/metadata.ts)_
3966
3966
 
3967
3967
  ## `sf org list metadata-types`
3968
3968
 
@@ -4017,7 +4017,7 @@ FLAG DESCRIPTIONS
4017
4017
  Override the api version used for api requests made by this command
4018
4018
  ```
4019
4019
 
4020
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/list/metadata-types.ts)_
4020
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/list/metadata-types.ts)_
4021
4021
 
4022
4022
  ## `sf org list sobject record-counts`
4023
4023
 
@@ -4600,7 +4600,7 @@ EXAMPLES
4600
4600
  $ sf org open --source-file force-app/main/default/bots/Coral_Cloud_Agent/Coral_Cloud_Agent.bot-meta.xml
4601
4601
  ```
4602
4602
 
4603
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/open.ts)_
4603
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/open.ts)_
4604
4604
 
4605
4605
  ## `sf org open agent`
4606
4606
 
@@ -4651,7 +4651,7 @@ EXAMPLES
4651
4651
  $ sf org open agent --target-org MyTestOrg1 --browser firefox --name Coral_Cloud_Agent
4652
4652
  ```
4653
4653
 
4654
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/open/agent.ts)_
4654
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/open/agent.ts)_
4655
4655
 
4656
4656
  ## `sf org refresh sandbox`
4657
4657
 
@@ -4728,7 +4728,7 @@ FLAG DESCRIPTIONS
4728
4728
  By default, a sandbox auto-activates after a refresh. Use this flag to control sandbox activation manually.
4729
4729
  ```
4730
4730
 
4731
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/refresh/sandbox.ts)_
4731
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/refresh/sandbox.ts)_
4732
4732
 
4733
4733
  ## `sf org resume sandbox`
4734
4734
 
@@ -4791,7 +4791,7 @@ FLAG DESCRIPTIONS
4791
4791
  returns the job ID. To resume checking the sandbox creation, rerun this command.
4792
4792
  ```
4793
4793
 
4794
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/resume/sandbox.ts)_
4794
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/resume/sandbox.ts)_
4795
4795
 
4796
4796
  ## `sf org resume scratch`
4797
4797
 
@@ -4838,7 +4838,7 @@ FLAG DESCRIPTIONS
4838
4838
  The job ID is valid for 24 hours after you start the scratch org creation.
4839
4839
  ```
4840
4840
 
4841
- _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.17/src/commands/org/resume/scratch.ts)_
4841
+ _See code: [@salesforce/plugin-org](https://github.com/salesforcecli/plugin-org/blob/5.2.18/src/commands/org/resume/scratch.ts)_
4842
4842
 
4843
4843
  ## `sf package create`
4844
4844
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
- "version": "2.73.5",
3
+ "version": "2.73.6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/cli",
9
- "version": "2.73.5",
9
+ "version": "2.73.6",
10
10
  "hasInstallScript": true,
11
11
  "license": "BSD-3-Clause",
12
12
  "dependencies": {
@@ -32,7 +32,7 @@
32
32
  "@salesforce/plugin-info": "3.4.32",
33
33
  "@salesforce/plugin-limits": "3.3.44",
34
34
  "@salesforce/plugin-marketplace": "1.3.7",
35
- "@salesforce/plugin-org": "5.2.17",
35
+ "@salesforce/plugin-org": "5.2.18",
36
36
  "@salesforce/plugin-packaging": "2.9.12",
37
37
  "@salesforce/plugin-schema": "3.3.46",
38
38
  "@salesforce/plugin-settings": "2.4.10",
@@ -9345,9 +9345,9 @@
9345
9345
  }
9346
9346
  },
9347
9347
  "node_modules/@salesforce/plugin-org": {
9348
- "version": "5.2.17",
9349
- "resolved": "https://registry.npmjs.org/@salesforce/plugin-org/-/plugin-org-5.2.17.tgz",
9350
- "integrity": "sha512-u+Zd2aF0bdNnD+T8+cRai2B9y2AQdAGj8qtEg2kXsELVy/1rkPxwsQxflyzHdfATM6I1L9w65XDIX55fII76gQ==",
9348
+ "version": "5.2.18",
9349
+ "resolved": "https://registry.npmjs.org/@salesforce/plugin-org/-/plugin-org-5.2.18.tgz",
9350
+ "integrity": "sha512-9GH+tA3yTj5K1z3B5YQkDWPqMzizfL/mpfWsfeI/KHBby546WDdtqkwaP1xATPIo9wwSfe27tuOCCwjKzYIMJw==",
9351
9351
  "license": "BSD-3-Clause",
9352
9352
  "dependencies": {
9353
9353
  "@oclif/core": "^4.2.2",
package/oclif.lock CHANGED
@@ -2648,10 +2648,10 @@
2648
2648
  got "^13.0.0"
2649
2649
  proxy-agent "^6.4.0"
2650
2650
 
2651
- "@salesforce/plugin-org@5.2.17":
2652
- version "5.2.17"
2653
- resolved "https://registry.npmjs.org/@salesforce/plugin-org/-/plugin-org-5.2.17.tgz"
2654
- integrity sha512-u+Zd2aF0bdNnD+T8+cRai2B9y2AQdAGj8qtEg2kXsELVy/1rkPxwsQxflyzHdfATM6I1L9w65XDIX55fII76gQ==
2651
+ "@salesforce/plugin-org@5.2.18":
2652
+ version "5.2.18"
2653
+ resolved "https://registry.npmjs.org/@salesforce/plugin-org/-/plugin-org-5.2.18.tgz"
2654
+ integrity sha512-9GH+tA3yTj5K1z3B5YQkDWPqMzizfL/mpfWsfeI/KHBby546WDdtqkwaP1xATPIo9wwSfe27tuOCCwjKzYIMJw==
2655
2655
  dependencies:
2656
2656
  "@oclif/core" "^4.2.2"
2657
2657
  "@oclif/multi-stage-output" "^0.8.1"
@@ -1,5 +1,295 @@
1
1
  {
2
2
  "commands": {
3
+ "code-analyzer:config": {
4
+ "aliases": [],
5
+ "args": {},
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
+ "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 that have a \"Recommended\" tag; 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 Recommended",
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 all rules, instead of just the recommended ones:\n<%= config.bin %> <%= command.id %> --rule-selector all",
12
+ "Display the configuration state associated with recommended 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-selection 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 --rule-selection all --workspace . --output-file ./subfolder-config.yml"
15
+ ],
16
+ "flags": {
17
+ "workspace": {
18
+ "char": "w",
19
+ "description": "Use the --workspace flag to display only the configuration associated with the rules that apply to the files that make up your workspace. Typically, a workspace is a single project folder that contains all your files. But it can also consist of one or more folders, one or more files, and use glob patterns (wildcards). If you specify this flag multiple times, then your workspace is the sum of the files and folders.\n\nThis command uses the type of file in the workspace, such as JavaScript or Typescript, to determine the rules to include in the configuration state. For example, if your workspace contains only JavaScript files, the command doesn't include TypeScript rules. The command uses a file's extension to determine what kind of file it is, such as \".ts\" for TypeScript.\n\nSome engines may be configured to add additional rules based on what it finds in your workspace. For example, if you set the \"engines.eslint.auto_discover_eslint_config\" value of your `code-analyzer.yml` file to true, then supplying your workspace allows the \"eslint\" engine to examine your files in order to find ESLint configuration files that could potentially add in additional rules.",
20
+ "name": "workspace",
21
+ "summary": "Set of files you want to include in the code analysis.",
22
+ "delimiter": ",",
23
+ "hasDynamicHelp": false,
24
+ "multiple": true,
25
+ "type": "option"
26
+ },
27
+ "rule-selector": {
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 \"Recommended\" tag rule selector.\n\nRun `<%= config.bin %> <%= command.id %> --rule-selector all` to display the configuration state associated with all possible rules available, and not just the recommended ones.",
30
+ "name": "rule-selector",
31
+ "summary": "Selection of rules, based on engine name, severity level, rule name, tag, or a combination of criteria separated by colons.",
32
+ "default": [
33
+ "Recommended"
34
+ ],
35
+ "delimiter": ",",
36
+ "hasDynamicHelp": false,
37
+ "multiple": true,
38
+ "type": "option"
39
+ },
40
+ "config-file": {
41
+ "char": "c",
42
+ "description": "Use this flag to apply the customizations from a custom Code Analyzer configuration file to be displayed alongside the current Code Analyzer configuration state.\n\nIf you don't specify this flag, then the command looks for and applies a file named `code-analyzer.yml` or `code-analyzer.yaml` in your current folder.",
43
+ "name": "config-file",
44
+ "summary": "Path to the existing configuration file used to customize the engines and rules.",
45
+ "hasDynamicHelp": false,
46
+ "multiple": false,
47
+ "type": "option"
48
+ },
49
+ "output-file": {
50
+ "char": "f",
51
+ "description": "Use this flag to write the final config to a file, in addition to the terminal.",
52
+ "name": "output-file",
53
+ "summary": "Output file to write the configuration state to. The file is written in YAML format.",
54
+ "hasDynamicHelp": false,
55
+ "multiple": false,
56
+ "type": "option"
57
+ }
58
+ },
59
+ "hasDynamicHelp": false,
60
+ "hiddenAliases": [],
61
+ "id": "code-analyzer:config",
62
+ "pluginAlias": "@salesforce/plugin-code-analyzer",
63
+ "pluginName": "@salesforce/plugin-code-analyzer",
64
+ "pluginType": "jit",
65
+ "state": "Beta",
66
+ "strict": true,
67
+ "summary": "Display the current state of configuration for Code Analyzer.",
68
+ "enableJsonFlag": false,
69
+ "SF_ENV": "SF_ENV",
70
+ "isESM": false,
71
+ "relativePath": [
72
+ "lib",
73
+ "commands",
74
+ "code-analyzer",
75
+ "config.js"
76
+ ],
77
+ "aliasPermutations": [],
78
+ "permutations": [
79
+ "code-analyzer:config",
80
+ "config:code-analyzer"
81
+ ]
82
+ },
83
+ "code-analyzer:rules": {
84
+ "aliases": [],
85
+ "args": {},
86
+ "description": "You can also view details about the rules, such as the engine it's associated with, tags, and description.\n\nUse this command to determine the exact set of rules to analyze your code. The `code-analyzer run` command has similar flags as this command, so once you've determined the flag values for this command that list the rules you want to run, you specify the same values to the `code-analyzer run` command.\n\nWe're continually improving Salesforce Code Analyzer. Tell us what you think! Give feedback at http://sfdc.co/CodeAnalyzerFeedback.",
87
+ "examples": [
88
+ "List rules using the default behavior: include rules from all engines that have a \"Recommended\" tag; display the rules using concise table format; and automatically apply rule or engine overrides if a \"code-analyzer.yml\" or \"code-analyzer.yaml\" file exists in the current folder:\n<%= config.bin %> <%= command.id %>",
89
+ "The previous example is equivalent to this example:\n<%= config.bin %> <%= command.id %> --rule-selector Recommended --view table --config-file ./code-analyzer.yml",
90
+ "List the recommended rules for the \"eslint\" engine:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:Recommended",
91
+ "List all the rules for the \"eslint\" engine:\n<%= config.bin %> <%= command.id %> --rule-selector eslint",
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",
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
+ "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
+ "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",
97
+ "Similar to the previous example, but apply the rule overrides and engine settings from the configuration file called \"code-analyzer2.yml\" in the current folder. If, for example, you changed the severity of an \"eslint\" rule from moderate (3) to high (2) in the configuration file, then that rule won't be listed:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:3 --rule-selector retire-js:Recommended --config-file ./code-analyzer2.yml",
98
+ "List the details of the \"getter-return\" rule of the \"eslint\" engine and the rules named \"no-inner-declarations\" in any engine:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:getter-return --rule-selector no-inner-declarations --view detail",
99
+ "List the details of the recommended \"eslint\" engine rules that have the tag \"problem\" and high severity level (2) that apply to your workspace folder \"./force-app\":\n<%= config.bin %> <%= command.id %> --rule-selector eslint:Recommended:problem:2 --view detail --workspace ./force-app"
100
+ ],
101
+ "flags": {
102
+ "workspace": {
103
+ "char": "w",
104
+ "description": "If you specify this flag, the command returns a more accurate list of the rules that apply to the files that make up your workspace. Typically, a workspace is a single project folder that contains all your files. But it can also consist of one or more folders, one or more files, and use glob patterns (wildcards). If you specify this flag multiple times, then your workspace is the sum of the files and folders. \n\nThis command uses the type of file in the workspace, such as JavaScript or Typescript, to determine the rules to list. For example, if your workspace contains only JavaScript files, the command doesn't list TypeScript rules. The command uses a file's extension to determine what kind of file it is, such as \".ts\" for TypeScript.\n\nSome engines may be configured to add additional rules based on what it finds in your workspace. For example, if you set the engines.eslint.auto_discover_eslint_config value of your code-analyzer.yml file to true, then supplying your workspace allows the \"eslint\" engine to examine your files in order to find ESLint configuration files that could potentially add in additional rules.",
105
+ "name": "workspace",
106
+ "summary": "Set of files you want to include in the code analysis.",
107
+ "delimiter": ",",
108
+ "hasDynamicHelp": false,
109
+ "multiple": true,
110
+ "type": "option"
111
+ },
112
+ "rule-selector": {
113
+ "char": "r",
114
+ "description": "Use the --rule-selector flag to select the list of rules based on specific criteria. For example, 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. Every rule has a name, which is unique within the scope of an engine. Most rules have tags, although it's not required. An example of a tag is \"Recommended\". \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\" lists rules associated only with the \"eslint\" engine that have the Security tag. The flag \"--rule-selector eslint:Security:3\" flag lists the \"eslint\" rules that have the Security tag and moderate severity (3). 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\nRun `<%= config.bin %> <%= command.id %> --rule-selector all` to list see the possible values for engine name, rule name, tags, and severity levels that you can use with this flag.",
115
+ "name": "rule-selector",
116
+ "summary": "Selection of rules, based on engine name, severity level, rule name, tag, or a combination of criteria separated by colons.",
117
+ "default": [
118
+ "Recommended"
119
+ ],
120
+ "delimiter": ",",
121
+ "hasDynamicHelp": false,
122
+ "multiple": true,
123
+ "type": "option"
124
+ },
125
+ "config-file": {
126
+ "char": "c",
127
+ "description": "Code Analyzer has an internal default configuration for its rule and engine properties. If you want to override these defaults, you can create a Code Analyzer configuration file.\n\nWe recommend that you name your Code Analyzer configuration file \"code-analyzer.yml\" or \"code-analyzer.yaml\" and put it at the root of your workspace. You then don't need to use this flag when you run the `<%= command.id %>` command from the root of your workspace, because it automatically looks for either file in the current folder, and if found, applies its rule overrides and engine settings. If you want to name the file something else, or put it in an alternative folder, then you must specify this flag.\n\nTo help you get started, use the `code-analyzer config` command to create your first Code Analyzer configuration file. With it, you can change the severity of an existing rule, change a rule's tags, and so on. Then use this flag to specify the file so that the command takes your customizations into account.",
128
+ "name": "config-file",
129
+ "summary": "Path to the configuration file used to customize the engines and rules.",
130
+ "hasDynamicHelp": false,
131
+ "multiple": false,
132
+ "type": "option"
133
+ },
134
+ "view": {
135
+ "char": "v",
136
+ "description": "The format `table` is concise and shows minimal output, the format `detail` shows all available information.",
137
+ "name": "view",
138
+ "summary": "Format to display the rules in the terminal.",
139
+ "default": "table",
140
+ "hasDynamicHelp": false,
141
+ "multiple": false,
142
+ "options": [
143
+ "detail",
144
+ "table"
145
+ ],
146
+ "type": "option"
147
+ }
148
+ },
149
+ "hasDynamicHelp": false,
150
+ "hiddenAliases": [],
151
+ "id": "code-analyzer:rules",
152
+ "pluginAlias": "@salesforce/plugin-code-analyzer",
153
+ "pluginName": "@salesforce/plugin-code-analyzer",
154
+ "pluginType": "jit",
155
+ "state": "Beta",
156
+ "strict": true,
157
+ "summary": "List the rules that are available to analyze your code.",
158
+ "enableJsonFlag": false,
159
+ "SF_ENV": "SF_ENV",
160
+ "isESM": false,
161
+ "relativePath": [
162
+ "lib",
163
+ "commands",
164
+ "code-analyzer",
165
+ "rules.js"
166
+ ],
167
+ "aliasPermutations": [],
168
+ "permutations": [
169
+ "code-analyzer:rules",
170
+ "rules:code-analyzer"
171
+ ]
172
+ },
173
+ "code-analyzer:run": {
174
+ "aliases": [],
175
+ "args": {},
176
+ "description": "You can scan your codebase with the recommended rules. Or use flags to filter the rules based on engines (such as \"retire-js\" or \"eslint\"), rule names, tags, and more. \n\nIf you want to preview the list of rules before you actually run them, use the `code-analyzer rules` command, which also has the \"--rules-selector\", \"--workspace\", and \"--config-file\" flags that together define the list of rules to be run.\n\nWe're continually improving Salesforce Code Analyzer. Tell us what you think! Give feedback at http://sfdc.co/CodeAnalyzerFeedback.",
177
+ "examples": [
178
+ "Analyze code using the default behavior: analyze the files in the current folder (default workspace) using the Recommended rules; display the output in the terminal with the concise table view; and automatically apply rule or engine overrides if a \"code-analyzer.yml\" or \"code-analyzer.yaml\" file exists in the current folder:\n<%= config.bin %> <%= command.id %>",
179
+ "The previous example is equivalent to this example:\n<%= config.bin %> <%= command.id %> --rule-selector Recommended --workspace . --view table --config-file ./code-analyzer.yml",
180
+ "Analyze the files using the recommended \"eslint\" rules and show details of the violations:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:Recommended --view detail",
181
+ "Analyze the files using all the \"eslint\" rules:\n<%= config.bin %> <%= command.id %> --rule-selector eslint",
182
+ "The previous example is equivalent to this example:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:all",
183
+ "Analyze the files using all rules for all engines:\n<%= config.bin %> <%= command.id %> --rule-selector all",
184
+ "Analyze files using the recommended \"retire-js\" rules analyze in a workspace that consists of all files in the folder \"./other-source\" and only the Apex class files (extension .cls) in the folder \"./force-app\":\n<%= config.bin %> <%= command.id %> --rule-selector retire-js:Recommended --workspace ./other-source --workspace ./force-app/**/*.cls",
185
+ "Specify a custom configuration file and output the results to the \"results.csv\" file in CSV format; the commands fails if it finds a violation that exceeds the moderate severity level (3):\n<%= config.bin %> <%= command.id %> --config-file ./code-analyzer2.yml --output-file results.csv --severity-threshold 3",
186
+ "Analyze the files using 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",
187
+ "Analyze the files using only the \"getter-return\" rule of the \"eslint\" engine and any rule named \"no-inner-declarations\" from any engine:\n<%= config.bin %> <%= command.id %> --rule-selector eslint:getter-return --rule-selector no-inner-declarations"
188
+ ],
189
+ "flags": {
190
+ "workspace": {
191
+ "char": "w",
192
+ "description": "Typically, a workspace is a single project folder that contains all your files. But it can also consist of one or more folders, one or more files, and use glob patterns (wildcards). If you specify this flag multiple times, then your workspace is the sum of the files and folders.",
193
+ "name": "workspace",
194
+ "summary": "Set of files you want to include in the code analysis.",
195
+ "default": [
196
+ "."
197
+ ],
198
+ "delimiter": ",",
199
+ "hasDynamicHelp": false,
200
+ "multiple": true,
201
+ "type": "option"
202
+ },
203
+ "path-start": {
204
+ "char": "s",
205
+ "description": "If you don't specify this flag, then any path-based analysis rules automatically discover and use all starting points found in your workspace. Use this flag to restrict the starting points to only those you want in your code analysis. \n\nThis flag only applies to path-based analysis rules, which are of type DataFlow and Flow. These types of rules are only available from some engines, like the Salesforce Graph Engine, \"sfge\" for example.\n\nIf you specify a file or a folder as your starting point, then the analysis uses only the methods that have public or global accessibility. \n\nTo specify individual methods as a starting point, use the syntax \"<file>#methodName\" to select a single method or \"<file>#methodName1;methodName2\" to select multiple methods. For example, \"SomeClass.cls#method1\" (single method) or \"SomeClass.cls#method1;method2\" (multiple methods).\n\nYou can use glob patterns (wildcards) only when specifying files and folders; you can't use glob patterns when specifying individual methods.",
206
+ "hidden": true,
207
+ "name": "path-start",
208
+ "summary": "Starting points within your workspace to restrict any path-based analysis rules to.",
209
+ "delimiter": ",",
210
+ "hasDynamicHelp": false,
211
+ "multiple": true,
212
+ "type": "option"
213
+ },
214
+ "rule-selector": {
215
+ "char": "r",
216
+ "description": "Use the --rule-selector flag to select the list of rules to run based on specific criteria. For example, 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. Every rule has a name, which is unique within the scope of an engine. Most rules have tags, although it's not required. An example of a tag is \"Recommended\".\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\" runs rules associated only with the \"eslint\" engine that have the Security tag. The flag \"--rule-selector eslint:Security:3\" flag runs the \"eslint\" rules that have the Security tag and moderate severity (3). 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\nRun `<%= config.bin %> code-analyzer rules --rule-selector all` to see the possible values for engine name, rule name, tags, and severity levels that you can use with this flag.",
217
+ "name": "rule-selector",
218
+ "summary": "Selection of rules, based on engine name, severity level, rule name, tag, or a combination of criteria separated by colons.",
219
+ "default": [
220
+ "Recommended"
221
+ ],
222
+ "delimiter": ",",
223
+ "hasDynamicHelp": false,
224
+ "multiple": true,
225
+ "type": "option"
226
+ },
227
+ "severity-threshold": {
228
+ "char": "t",
229
+ "description": "You can specify either a number (2) or its equivalent string (\"High\").",
230
+ "name": "severity-threshold",
231
+ "summary": "Severity level of a found violation that must be met or exceeded to cause this command to fail with a non-zero exit code.",
232
+ "hasDynamicHelp": false,
233
+ "multiple": false,
234
+ "type": "option"
235
+ },
236
+ "view": {
237
+ "char": "v",
238
+ "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.",
239
+ "name": "view",
240
+ "summary": "Format to display the command results in the terminal.",
241
+ "hasDynamicHelp": false,
242
+ "multiple": false,
243
+ "options": [
244
+ "detail",
245
+ "table"
246
+ ],
247
+ "type": "option"
248
+ },
249
+ "output-file": {
250
+ "char": "f",
251
+ "description": "If you don't specify this flag, the command outputs the results in 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 ./out/results.json --output-file ./out/report.html\" creates a JSON results file and an HTML file in the \"./out\" folder.",
252
+ "name": "output-file",
253
+ "summary": "Output file that contains the analysis results. The file format depends on the extension you specify, such as .csv, .html, .xml, and so on.",
254
+ "delimiter": ",",
255
+ "hasDynamicHelp": false,
256
+ "multiple": true,
257
+ "type": "option"
258
+ },
259
+ "config-file": {
260
+ "char": "c",
261
+ "description": "Code Analyzer has an internal default configuration for its rule and engine properties. If you want to override these defaults, you can create a Code Analyzer configuration file.\n\nWe recommend that you name your Code Analyzer configuration file \"code-analyzer.yml\" or \"code-analyzer.yaml\" and put it at the root of your workspace. You then don't need to use this flag when you run the `<%= command.id %>` command from the root of your workspace, because it automatically looks for either file in the current folder, and if found, applies its rule overrides and engine settings. If you want to name the file something else, or put it in an alternative folder, then you must specify this flag.\n\nTo help you get started, use the `code-analyzer config` command to create your first Code Analyzer configuration file. With it, you can change the severity of an existing rule, change a rule's tags, and so on. Then use this flag to specify the file so that the command takes your customizations into account.",
262
+ "name": "config-file",
263
+ "summary": "Path to the configuration file used to customize the engines and rules.",
264
+ "hasDynamicHelp": false,
265
+ "multiple": false,
266
+ "type": "option"
267
+ }
268
+ },
269
+ "hasDynamicHelp": false,
270
+ "hiddenAliases": [],
271
+ "id": "code-analyzer:run",
272
+ "pluginAlias": "@salesforce/plugin-code-analyzer",
273
+ "pluginName": "@salesforce/plugin-code-analyzer",
274
+ "pluginType": "jit",
275
+ "state": "Beta",
276
+ "strict": true,
277
+ "summary": "Analyze your code with a selection of rules to ensure good coding practices.",
278
+ "enableJsonFlag": false,
279
+ "SF_ENV": "SF_ENV",
280
+ "isESM": false,
281
+ "relativePath": [
282
+ "lib",
283
+ "commands",
284
+ "code-analyzer",
285
+ "run.js"
286
+ ],
287
+ "aliasPermutations": [],
288
+ "permutations": [
289
+ "code-analyzer:run",
290
+ "run:code-analyzer"
291
+ ]
292
+ },
3
293
  "cmdt:generate:field": {
4
294
  "aliases": [
5
295
  "force:cmdt:field:create",
@@ -5370,5 +5660,5 @@
5370
5660
  ]
5371
5661
  }
5372
5662
  },
5373
- "version": "2.73.5"
5663
+ "version": "2.73.6"
5374
5664
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/cli",
3
3
  "description": "The Salesforce CLI",
4
- "version": "2.73.5",
4
+ "version": "2.73.6",
5
5
  "author": "Salesforce",
6
6
  "bin": {
7
7
  "sf": "./bin/run.js",
@@ -75,6 +75,7 @@
75
75
  "@salesforce/plugin-user"
76
76
  ],
77
77
  "jitPlugins": {
78
+ "@salesforce/plugin-code-analyzer": "5.0.0-beta.0",
78
79
  "@salesforce/plugin-custom-metadata": "3.3.41",
79
80
  "@salesforce/plugin-community": "3.3.8",
80
81
  "@salesforce/plugin-dev": "2.5.1",
@@ -165,7 +166,7 @@
165
166
  "@salesforce/plugin-info": "3.4.32",
166
167
  "@salesforce/plugin-limits": "3.3.44",
167
168
  "@salesforce/plugin-marketplace": "1.3.7",
168
- "@salesforce/plugin-org": "5.2.17",
169
+ "@salesforce/plugin-org": "5.2.18",
169
170
  "@salesforce/plugin-packaging": "2.9.12",
170
171
  "@salesforce/plugin-schema": "3.3.46",
171
172
  "@salesforce/plugin-settings": "2.4.10",