# Install tree-sitter-cli with Homebrew, apk, apt, dnf, pacman, winget, chocolatey, MacPorts, Nix, scoop, zypper

Parser generator tool. Version 0.26.10 via Homebrew; verified 2026-06-28.

## Install

```sh
sudo av install brew:tree-sitter-cli
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tree-sitter-cli
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tree-sitter
```

  Evidence: MacPorts ports tree: devel/tree-sitter/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add tree-sitter-cli
```

  Evidence: Alpine Linux edge package indexes: tree-sitter-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install tree-sitter-cli
```

  Evidence: Debian stable package indexes: tree-sitter-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install tree-sitter-cli
```

  Evidence: Fedora Rawhide package metadata: tree-sitter-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S tree-sitter-cli
```

  Evidence: Arch Linux sync databases: tree-sitter-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#tree-sitter
```

  Evidence: nixpkgs package indexes: pkgs/by-name/tr/tree-sitter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install libtree-sitter0_26
```

  Evidence: openSUSE Tumbleweed package metadata: libtree-sitter0_26 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id tree-sitter.tree-sitter-cli -e
```

  Evidence: Windows Package Manager source index: tree-sitter.tree-sitter-cli from https://cdn.winget.microsoft.com/cache/source.msix

- Chocolatey (92%):

```sh
choco install tree-sitter
```

  Evidence: Chocolatey community package catalog: tree-sitter from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='8.6352005','msys2-installer'

- Scoop (92%):

```sh
scoop install main/tree-sitter
```

  Evidence: Scoop official bucket manifest trees: bucket/tree-sitter.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:tree-sitter-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tree-sitter-cli>
- **Version:** 0.26.10
- **Source summary:** Parser generator tool
- **Homepage:** <https://tree-sitter.github.io>
- **Repository:** <https://github.com/tree-sitter/tree-sitter>
- **Upstream docs:** <https://tree-sitter.github.io/tree-sitter>
- **License:** MIT
- **Source archive:** <https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v0.26.10.tar.gz>
- **Last updated:** 2026-06-28T19:29:50Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- tree-sitter (cli)
- tree-sitter (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.26.10
- Package-manager updated: 2026-06-28
- Local data: ok
- Upstream repository: https://github.com/tree-sitter/tree-sitter
- Upstream latest detected: v0.26.10 (current)
## Project history and usage

tree-sitter-cli is the command-line front end for Tree-sitter, a parser generator and incremental parsing library for programming tools.

### Project history

Tree-sitter was built around a practical editor problem: producing concrete syntax trees that can be updated efficiently as a source file changes. The official documentation describes the system as both a parser generator and an incremental parsing library, general enough for many programming languages, fast enough to run on every keystroke, robust in the presence of syntax errors, and embeddable through a dependency-free C runtime.

The CLI is the package-facing part of that ecosystem. It is used to generate parsers, test grammars, parse files, and support the grammar-development loop that lets language communities publish parsers independently of any single editor.

The project has become a common substrate for developer tooling. The official docs list many official language bindings, third-party bindings, upstream parsers for common languages, a wiki list of known parsers, and public talks from 2017 and 2018. The GitHub repository records a large release history and broad downstream use.

### Adoption history

Tree-sitter adoption spread through editors, language tooling, and parser packages because it separated grammar work from editor-specific syntax systems. Language packages can ship grammars, while editors and analysis tools can consume a uniform syntax-tree interface.

For package maintainers, the CLI is the important installable unit: projects need it in build scripts, grammar repositories need it for generated parser artifacts, and users need a consistent `tree-sitter` executable across Homebrew, Linux distributions, Windows package managers, and Nix-style environments.

### How it is used

Package users install `tree-sitter` to initialize and maintain grammar projects, generate parser code, run parser tests, inspect parse trees, and integrate generated parsers into editor or code-analysis workflows.

In the package-nerd niche, tree-sitter-cli sits at the intersection of Rust/C build tooling, editor ecosystems, and language package registries: a small command that unlocks a large graph of grammar packages.

### Why package nerds care

tree-sitter-cli is significant because parser infrastructure moved from being editor-specific glue into a portable package ecosystem. The CLI makes syntax grammars buildable and testable as ordinary packages.

### Timeline

- 2017: Official documentation points to a GitHub Universe talk on Tree-sitter.
- 2018: Official documentation points to FOSDEM and Strange Loop talks.
- 2026: The GitHub repository lists v0.26.10 as a latest release and shows large downstream use.

### Related projects

- Official and third-party language bindings expose Tree-sitter to C#, Go, Haskell, Java, JavaScript, Kotlin, Python, Rust, Swift, Zig, and other languages.
- Upstream parsers include grammars for Bash, C, C++, Go, HTML, JavaScript, JSON, Python, Rust, TypeScript, and many other languages.

### Sources

- <https://github.com/tree-sitter/tree-sitter>
- <https://github.com/tree-sitter/tree-sitter/releases>
- <https://github.com/tree-sitter/tree-sitter/wiki/List-of-parsers>
- <https://tree-sitter.github.io/tree-sitter/>


## Security Notes

No matching local secret-handling manifest was found for tree-sitter-cli. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tree-sitter-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - tree-sitter-cli - 0.22.6-6+b1: normalized package name match | Debian stable package indexes: tree-sitter-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line for Tree-sitter parsers | https://tree-sitter.github.io/tree-sitter/
- Ubuntu apt - tree-sitter-cli - 0.20.8-5: normalized package name match | Ubuntu 24.04 LTS package indexes: tree-sitter-cli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line for Tree-sitter parsers
- apk - tree-sitter-cli - 0.26.7-r0: normalized package name match | Alpine Linux edge package indexes: tree-sitter-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Incremental parsing system for programming tools (CLI) | https://tree-sitter.github.io/
- dnf - tree-sitter-cli - 0.26.9-1.fc45: normalized package name match | Fedora Rawhide package metadata: tree-sitter-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | CLI tool for developing, testing, and using Tree-sitter parsers | https://crates.io/crates/tree-sitter-cli
- pacman - tree-sitter-cli - 0.26.9-1: normalized package name match | Arch Linux sync databases: tree-sitter-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | CLI tool for developing, testing, and using Tree-sitter parsers | https://github.com/tree-sitter/tree-sitter
- winget - tree-sitter.tree-sitter-cli: normalized package name match | Windows Package Manager source index: tree-sitter.tree-sitter-cli from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - tree-sitter: installed executable or alias match | MacPorts ports tree: devel/tree-sitter/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - librust-tree-sitter-cli-dev - 0.22.6-6+b1: installed executable or alias match | Debian stable package indexes: librust-tree-sitter-cli-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line for Tree-sitter parsers - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - librust-tree-sitter-config-dev - 0.22.6-6+b1: installed executable or alias match | Debian stable package indexes: librust-tree-sitter-config-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | user configuration of tree-sitter's CLI programs - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - librust-tree-sitter-dev - 0.22.6-6+b1: installed executable or alias match | Debian stable package indexes: librust-tree-sitter-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | bindings to the tree-sitter parsing library - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - librust-tree-sitter-highlight-dev - 0.22.6-6+b1: installed executable or alias match | Debian stable package indexes: librust-tree-sitter-highlight-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | perform syntax highlighting with tree-sitter - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - librust-tree-sitter-loader-dev - 0.22.6-6+b1: installed executable or alias match | Debian stable package indexes: librust-tree-sitter-loader-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | locates, builds, and loads tree-sitter grammars - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - librust-tree-sitter-tags-dev - 0.22.6-6+b1: installed executable or alias match | Debian stable package indexes: librust-tree-sitter-tags-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for extracting tag information - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - libtree-sitter-dev - 0.22.6-6+b1: installed executable or alias match | Debian stable package indexes: libtree-sitter-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | incremental parsing system for programming tools (development files) | https://tree-sitter.github.io/tree-sitter/
- Debian apt - libtree-sitter0.22 - 0.22.6-6+b1: installed executable or alias match | Debian stable package indexes: libtree-sitter0.22 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | incremental parsing system for programming tools | https://tree-sitter.github.io/tree-sitter/
- Nix - tree-sitter: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/tr/tree-sitter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [tree-sitter](https://www.automicvault.com/pkg/brew/tree-sitter/) - Package name indicates the same formula family.
- [tree-sitter@0.25](https://www.automicvault.com/pkg/brew/tree-sitter-0-25/) - Package name indicates the same formula family.
- [byacc](https://www.automicvault.com/pkg/brew/byacc/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator.
- [javacc](https://www.automicvault.com/pkg/brew/javacc/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator.
- [menhir](https://www.automicvault.com/pkg/brew/menhir/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator.
- [peg](https://www.automicvault.com/pkg/brew/peg/) - Shares av.db curated category or tags: cli, developer-tools, parser-generator.
- [btparse](https://www.automicvault.com/pkg/brew/btparse/) - Shares av.db curated category or tags: cli, developer-tools, parsing.
- [cpp-peglib](https://www.automicvault.com/pkg/brew/cpp-peglib/) - Shares av.db curated category or tags: cli, developer-tools, parsing.
- [htmlcleaner](https://www.automicvault.com/pkg/brew/htmlcleaner/) - Shares av.db curated category or tags: cli, developer-tools, parsing.
- [htmlcxx](https://www.automicvault.com/pkg/brew/htmlcxx/) - Shares av.db curated category or tags: cli, developer-tools, parsing.
- [tree-sitter-cli](https://www.automicvault.com/pkg/npm/tree-sitter-cli/) - Same normalized package name appears in another local ecosystem. Shared terms: parser, sitter, tree, tree-sitter, tree-sitter-cli.
- [antlr](https://www.automicvault.com/pkg/brew/antlr/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, generator, parser.
- [tree-sitter-cli](https://www.automicvault.com/pkg/npm/tree-sitter-cli/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/tree-sitter-cli.yml](https://github.com/automic-vault/db/blob/main/combined/tree-sitter-cli.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
