TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tree-sitter/tree-sitter/llms.txt
Use this file to discover all available pages before exploring further.
dump-languages command prints a list of all the languages that the CLI knows about. This is useful for debugging purposes or for scripting.
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 theparser-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
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
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:-
Check your config file exists:
-
Verify parser directories are set:
-
Ensure parser folders start with
tree-sitter-:
Parser Not Showing Up
If a specific parser isn’t listed:- Verify the directory name starts with
tree-sitter- - Check that
tree-sitter.jsonexists in the parser directory - Ensure the parser directory is in a configured
parser-directoriespath