/core-rules)
    * [ Governance ](/docs/latest/contribute/governance)
    * [ Report a Security Vulnerability ](/docs/latest/contribute/report-security-vulnerability)
  * [ Maintain ESLint ](/docs/latest/maintain/)
    * [ How ESLint is Maintained ](/docs/latest/maintain/overview)
    * [ Manage Issues and Pull Requests ](/docs/latest/maintain/manage-issues)
    * [ Review Pull Requests ](/docs/latest/maintain/review-pull-requests)
    * [ Manage Releases ](/docs/latest/maintain/manage-releases)
    * [ Working Groups ](/docs/latest/maintain/working-groups)

#  Command Line Interface Reference

##  Table of Contents

  1. Run the CLI 
  2. Pass Multiple Values to an Option 
  3. Options 
    1. Basic Configuration 
      1. \--no-eslintrc 
      2. -c, --config 
      3. \--inspect-config 
      4. \--env 
      5. \--ext 
      6. \--global 
      7. \--parser 
      8. \--parser-options 
      9. \--resolve-plugins-relative-to 
    2. Specify Rules and Plugins 
      1. \--plugin 
      2. \--rule 
      3. \--rulesdir 
    3. Fix Problems 
      1. \--fix 
      2. \--fix-dry-run 
      3. \--fix-type 
    4. Ignore Files 
      1. \--ignore-path 
      2. \--no-ignore 
      3. \--ignore-pattern 
    5. Use stdin 
      1. \--stdin 
      2. \--stdin-filename 
    6. Handle Warnings 
      1. \--quiet 
      2. \--max-warnings 
    7. Output 
      1. -o, --output-file 
      2. -f, --format 
      3. \--color and --no-color 
    8. Inline Configuration Comments 
      1. \--no-inline-config 
      2. \--report-unused-disable-directives 
      3. \--report-unused-disable-directives-severity 
    9. Caching 
      1. \--cache 
      2. \--cache-file 
      3. \--cache-location 
      4. \--cache-strategy 
    10. Miscellaneous 
      1. \--init 
      2. \--env-info 
      3. \--no-error-on-unmatched-pattern 
      4. \--exit-on-fatal-error 
      5. \--no-warn-ignored 
      6. \--pass-on-no-patterns 
      7. \--debug 
      8. -h, --help 
      9. -v, --version 
      10. \--print-config 
      11. \--stats 
  4. Exit Codes 

The ESLint Command Line Interface (CLI) lets you execute linting from the
terminal. The CLI has a variety of options that you can pass to configure
ESLint.

##  Run the CLI

ESLint requires Node.js for installation. Follow the instructions in the [
Getting Started Guide ](getting-started) to install ESLint.

Most users use [ ` npx ` ](https://docs.npmjs.com/cli/v8/commands/npx) to run
ESLint on the command line like this:

    
    
    npx eslint [options] [file|dir|glob]*
    
    
    1  
    

Such as:

    
    
    # Run on two files
    npx eslint file1.js file2.js
    
    # Run on multiple files
    npx eslint lib/**
    
    
    1  
    2  
    3  
    4  
    5  
    

Please note that when passing a glob as a parameter, it is expanded by your
shell. The results of the expansion can vary depending on your shell, and its
configuration. If you want to use node ` glob ` syntax, you have to quote your
parameter (using double quotes if you need it to run in Windows), as follows:

    
    
    npx eslint "lib/**"
    
    
    1  
    

If you are using a [ flat configuration file ](./configure/configuration-
files) ( ` eslint.config.js ` ), you can also omit the file arguments and
ESLint will use ` . ` . For instance, these two lines perform the same
operation:

    
    
    npx eslint .
    npx eslint
    
    
    1  
    2  
    

If you are not using a flat configuration file, running ESLint without file
arguments results in an error.

**Note:** You can also use alternative package managers such as [ Yarn
](https://yarnpkg.com/) or [ pnpm ](https://pnpm.io/) to run ESLint. Please
refer to your package manager’s documentation for the correct syntax.

##  Pass Multiple Values to an Option

Options that accept multiple values can be specified by repeating the option
or with a comma-delimited list (other than  ` --ignore-pattern ` , which does
not allow the second style).

Examples of optio