Skip to main content
The dump-languages command prints a list of all the languages that the CLI knows about. This is useful for debugging purposes or for scripting.
Aliases: langs

Output Format

The command outputs information about each discovered parser, including:
  • Language name
  • Path to the parser
  • Scope information
  • File type associations

Parser Discovery

The CLI searches for parsers in the directories specified by the parser-directories field in your config file. Any folder whose name begins with tree-sitter- in these directories is treated as a Tree-sitter grammar repository.

Options

path
The path to the configuration file. By default, the CLI uses the default location as explained in init-config.This flag allows you to explicitly override that default and use a config defined elsewhere.

Examples

List All Languages

Example output:

Use Custom Config

Pipe to File

Count Languages

Use Cases

Debugging

Verify that the CLI can find your parser:

Scripting

Extract parser paths for automation:

Documentation

Generate a list of supported languages:

Troubleshooting

No Languages Found

If no languages are listed:
  1. Check your config file exists:
  2. Verify parser directories are set:
  3. Ensure parser folders start with tree-sitter-:

Parser Not Showing Up

If a specific parser isn’t listed:
  1. Verify the directory name starts with tree-sitter-
  2. Check that tree-sitter.json exists in the parser directory
  3. Ensure the parser directory is in a configured parser-directories path