CLI Reference
CLI Reference
Section titled “CLI Reference”ts-pack
Section titled “ts-pack”Tree-sitter language pack CLI
ts-pack cache-dir
Section titled “ts-pack cache-dir”Print the effective cache directory
ts-pack clean
Section titled “ts-pack clean”Remove all cached parser libraries
Options
Section titled “Options”| Name | Flags | Type | Default | Description |
|---|---|---|---|---|
force |
--force |
bool |
Skip confirmation prompt |
ts-pack completions
Section titled “ts-pack completions”Generate shell completions
Arguments
Section titled “Arguments”| Name | Flags | Type | Default | Description |
|---|---|---|---|---|
shell |
clap_complete::Shell |
Shell to generate completions for |
ts-pack download
Section titled “ts-pack download”Download parser libraries
Arguments
Section titled “Arguments”| Name | Flags | Type | Default | Description |
|---|---|---|---|---|
languages |
Vec<String> |
Languages to download (omit for all or use config) |
Options
Section titled “Options”| 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) |
ts-pack info
Section titled “ts-pack info”Show details about a language
Arguments
Section titled “Arguments”| Name | Flags | Type | Default | Description |
|---|---|---|---|---|
language |
String |
Language name |
ts-pack init
Section titled “ts-pack init”Create a language-pack.toml config file
Options
Section titled “Options”| Name | Flags | Type | Default | Description |
|---|---|---|---|---|
cache_dir |
--cache-dir |
Option<String> |
Cache directory | |
languages |
--languages |
Vec<String> |
Languages to include (comma-separated) |
ts-pack list
Section titled “ts-pack list”List available languages
Options
Section titled “Options”| 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 |
ts-pack mcp
Section titled “ts-pack mcp”Start the MCP (Model Context Protocol) server
ts-pack parse
Section titled “ts-pack parse”Parse a file and output the syntax tree
Arguments
Section titled “Arguments”| Name | Flags | Type | Default | Description |
|---|---|---|---|---|
file |
String |
File to parse (use “-” for stdin) |
Options
Section titled “Options”| Name | Flags | Type | Default | Description |
|---|---|---|---|---|
language |
--language |
Option<String> |
Language (auto-detected from extension if omitted) | |
format |
--format |
ParseFormat |
sexp |
Output format |
ts-pack process
Section titled “ts-pack process”Run code intelligence pipeline
Arguments
Section titled “Arguments”| Name | Flags | Type | Default | Description |
|---|---|---|---|---|
file |
String |
File to process (use “-” for stdin) |
Options
Section titled “Options”| 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 |