macOS
brew install tre-commandlocal Homebrew formula metadata
sudo port install treMacPorts ports tree · devel/tre/Portfile · ソース: api.github.com
brew / 順位 4698
tre-command のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install tre-commandlocal Homebrew formula metadata
sudo port install treMacPorts ports tree · devel/tre/Portfile · ソース: api.github.com
sudo apt install tre-commandDebian stable package indexes · tre-command · ソース: deb.debian.org
nix profile install nixpkgs#tre-commandnixpkgs package indexes · pkgs/by-name/tr/tre-command/package.nix · ソース: api.github.com
sudo apk add treAlpine Linux edge package indexes · tre · ソース: dl-cdn.alpinelinux.org
sudo dnf install treFedora Rawhide package metadata · tre · ソース: dl.fedoraproject.org
sudo pacman -S treArch Linux sync databases · tre · ソース: geo.mirror.pkgbuild.com
sudo zypper install agrepopenSUSE Tumbleweed package metadata · agrep · ソース: download.opensuse.org
scoop install main/tre-commandScoop official bucket manifest trees · bucket/tre-command.json · ソース: api.github.com
winget install --id duan.tre -eWindows Package Manager source index · duan.tre · ソース: cdn.winget.microsoft.com
概要
Tree command, improved
履歴
tre-command is the packaged name for `tre`, Daniel Duan's Rust command-line directory tree lister. The official README describes it as a modern alternative to `tree` that respects `.gitignore`, uses colors compatible with LS_COLORS, can emit JSON, and can create editor-opening shell aliases for listed files.
The project modernizes the classic `tree` workflow for source-code directories. Its README puts Git-awareness first: in repositories, tre skips ignored files by default instead of showing generated or vendor files that developers usually do not want in a structural listing.
The standout feature is editor aliasing. With the `-e` option and small shell setup, tre writes temporary aliases like `e8` that open the numbered file shown in the tree output. The README documents setup for Bash, Zsh, Fish, PowerShell, and Command Prompt, showing that the project treats listing and navigation as one workflow.
The README documents wide package-manager distribution under names such as `tre-command`, `tre-tree`, and `tre`: Homebrew on macOS, MacPorts, Debian testing, Scoop, Windows Package Manager, Cargo, AUR, pkgsrc, Nixpkgs, and Nix flakes. The batch input records additional package-manager mappings for Homebrew, MacPorts, Nix, pacman, Scoop, Ubuntu, and winget.
This adoption pattern reflects a common packaging issue: the executable is `tre`, but package managers sometimes avoid name collisions by shipping it as `tre-command`.
Users run `tre [OPTIONS] [PATH]` to list a directory tree. Options include showing hidden files, listing only directories, excluding regex patterns, limiting depth, emitting JSON, controlling color, bypassing gitignore behavior with simple mode, and generating editor aliases.
The package is especially useful in codebases where classic `tree` output is too noisy. By honoring `.gitignore` and LS_COLORS and by supporting JSON output, it fits both interactive terminal browsing and scripting.
For package nerds, tre-command is a tidy example of a Rust rewrite that earns its packaging slot by adding source-control-aware defaults and shell integration, not merely by reimplementing an older Unix command.
Its package-manager matrix matters because users often install tree-like utilities everywhere: laptops, CI images, Windows dev environments, and Nix shells. The formula name `tre-command` also documents the ecosystem's need to disambiguate package names.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
tre | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:tre-command |
|---|---|
| バージョン | 0.4.0 |
| パッケージマネージャ | Homebrew |
| ホームページ | https://github.com/dduan/tre |
| リポジトリ | https://github.com/dduan/tre |
| Bottle | 未記録 |
| サービス | 宣言なし |
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
tre-command 0.4.0-7+b1
Tree command, improved
sudo apt install tre-commandtre-command
nix profile install nixpkgs#tre-commandtre-command 0.4.0-5
Tree command, improved
sudo apt install tre-commandmain/tre-command
scoop install main/tre-commandduan.tre
winget install --id duan.tre -etre
sudo port install trelibtre-dev 0.9.0-1
development package for the libtre5 regexp matching library
sudo apt install libtre-devlibtre5 0.9.0-1
regexp matching library with approximate matching
sudo apt install libtre5tre-agrep 0.9.0-1
approximate grep utility based on the tre library
sudo apt install tre-agreptre
nix profile install nixpkgs#trelibtre-dev 0.8.0-7
development package for the libtre5 regexp matching library
sudo apt install libtre-devlibtre5 0.8.0-7
regexp matching library with approximate matching
sudo apt install libtre5tre-agrep 0.8.0-7
approximate grep utility based on the tre library
sudo apt install tre-agrepagrep 0.8.0-r2
approximate grepping
sudo apk add agrepagrep-doc 0.8.0-r2
POSIX compliant regexp matching library (documentation)
sudo apk add agrep-doctre 0.8.0-r2
POSIX compliant regexp matching library
sudo apk add treソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.