# usage を Homebrew, Nix, pacman でインストール

usage のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:usage
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install usage
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#usage
```

  証拠: nixpkgs package indexes: pkgs/by-name/us/usage/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S usage
```

  証拠: Arch Linux sync databases: usage from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## パッケージ情報

- **パッケージキー:** brew:usage
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/usage>
- **バージョン:** 4.1.0
- **ソース概要:** Tool for working with usage-spec CLIs
- **ホームページ:** <https://usage.jdx.dev/>
- **リポジトリ:** <https://github.com/jdx/usage>
- **上流ドキュメント:** <https://usage.jdx.dev/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/jdx/usage/archive/refs/tags/v4.1.0.tar.gz>
- **最終更新:** 2026-07-30T13:39:00Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- usage (cli)
- usage (エイリアス)

## ビルド依存関係

- rust

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 4.1.0
- マネージャ更新日: 2026-07-30
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/jdx/usage
- 検出された最新: v4.1.0 (最新)
## プロジェクトの歴史と使われ方

usage is both a specification and a CLI for describing command-line interfaces. The official README compares a Usage spec to OpenAPI for CLIs, covering arguments, flags, environment variables, and config files so downstream tools can generate completions, documentation, man pages, parsers, SDKs, and framework scaffolding.

### プロジェクトの歴史

The project grew out of the modern CLI tooling ecosystem around jdx's tools and the KDL document language. Public GitHub releases show early v0.1.x releases in 2024 and v3.x releases in 2026, while the docs describe an expanding scope from shell completions and man pages toward type-safe SDK generation.

### 採用の歴史

The official CLI docs list installation through mise, Cargo, Homebrew, and Arch Linux. The input metadata also records Homebrew, Nix, and pacman package names, indicating adoption by users who want the same CLI-spec tool available across developer workstations and Linux distributions.

### 使われ方

A Usage spec is written in KDL and can describe a CLI's name, binary, about text, version, author, license, flags, arguments, subcommands, config files, environment variables, and defaults. The `usage` CLI then consumes that spec to generate shell completions, Markdown, man pages, JSON, and related artifacts.

### パッケージ好きにとっての重要性

Package nerds care about usage because it treats CLI metadata as a portable build artifact. Instead of each package separately hand-maintaining completions, man pages, and docs, maintainers can ship a spec and generate those outputs consistently.

### タイムライン

- 2024: Early v0.1.x GitHub releases published.
- 2026-06-23: GitHub release v3.5.3 published.

### Related projects

- The official docs relate Usage to OpenAPI for CLIs, KDL as the spec language, and integrations for CLI frameworks such as clap, Cobra, Click, Typer, yargs, oclif, and Commander.js.

### ソース

- <https://github.com/jdx/usage>
- <https://github.com/jdx/usage/releases>
- <https://usage.jdx.dev/cli/>
- <https://usage.jdx.dev/spec>
- input source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** usage
- **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

## 他のパッケージマネージャ記録

- Nix - usage: normalized package name match | nixpkgs package indexes: pkgs/by-name/us/usage/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - usage - 3.5.5-1: normalized package name match | Arch Linux sync databases: usage from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A specification for CLIs | https://github.com/jdx/usage


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [mise](https://pkg.so/ja/brew/mise/) - Popular package that depends on this formula.
- [fnox](https://pkg.so/ja/brew/fnox/) - Popular package that depends on this formula.
- [hk](https://pkg.so/ja/brew/hk/) - Popular package that depends on this formula.
- [pitchfork](https://pkg.so/ja/brew/pitchfork/) - Popular package that depends on this formula.
- [adr-tools](https://pkg.so/ja/brew/adr-tools/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, documentation, working.
- [autorest](https://pkg.so/ja/brew/autorest/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, generation, specification.
- [buf](https://pkg.so/ja/brew/buf/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, generation, working.

## Combined YAML source

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


## ソース

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