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

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de tree-sitter-cli pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

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

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

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

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

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

- pacman (92%):

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

  Preuve: 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
```

  Preuve: 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 tree-sitter
```

  Preuve: openSUSE Tumbleweed package metadata: tree-sitter from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- winget (92%):

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

  Preuve: 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
```

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

- Scoop (92%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:tree-sitter-cli
- **Gestionnaire de paquets:** Homebrew
- **Version:** 0.26.11
- **Résumé source:** Parser generator tool
- **Page d'accueil:** <https://tree-sitter.github.io>
- **Dépôt:** <https://github.com/tree-sitter/tree-sitter>
- **Dernière mise à jour:** 2026-07-12T13:09:53Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- tree-sitter (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 0.26.11
## Historique du projet et usages

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

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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/>


## Notes de sécurité

Aucun manifest local de gestion des secrets correspondant n'a été trouvé pour tree-sitter-cli. Les métadonnées de paquet Nucleus restent publiées ici afin que la couverture future dispose d'une URL stable.


## Autres enregistrements de gestionnaires de paquets

- 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-r1: 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.11-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
