Skip to content

CLI Reference

Tree-sitter language pack CLI

Print the effective cache directory

Remove all cached parser libraries

Name Flags Type Default Description
force --force bool Skip confirmation prompt

Generate shell completions

Name Flags Type Default Description
shell clap_complete::Shell Shell to generate completions for

Download parser libraries

Name Flags Type Default Description
languages Vec<String> Languages to download (omit for all or use config)
Name Flags Type Default Description
all --all bool Download all available languages
groups --groups Vec<String> Download language groups (comma-separated: web,systems,scripting,data,jvm,functional)
fresh --fresh bool Clean cache before downloading (fresh download)

Show details about a language

Name Flags Type Default Description
language String Language name

Create a language-pack.toml config file

Name Flags Type Default Description
cache_dir --cache-dir Option<String> Cache directory
languages --languages Vec<String> Languages to include (comma-separated)

List available languages

Name Flags Type Default Description
downloaded --downloaded bool Show only downloaded/cached languages
manifest --manifest bool Show all languages from remote manifest
filter --filter Option<String> Filter languages by substring

Start the MCP (Model Context Protocol) server

Parse a file and output the syntax tree

Name Flags Type Default Description
file String File to parse (use “-” for stdin)
Name Flags Type Default Description
language --language Option<String> Language (auto-detected from extension if omitted)
format --format ParseFormat sexp Output format

Run code intelligence pipeline

Name Flags Type Default Description
file String File to process (use “-” for stdin)
Name Flags Type Default Description
language --language Option<String> Language (auto-detected from extension if omitted)
all --all bool Enable all analysis features
structure --structure bool Extract structure (functions, classes)
imports --imports bool Extract imports
exports --exports bool Extract exports
comments --comments bool Extract comments
symbols --symbols bool Extract symbols
docstrings --docstrings bool Extract docstrings
diagnostics --diagnostics bool Include diagnostics
chunk_size --chunk-size Option<usize> Maximum chunk size in bytes