# cobra-cli を Homebrew, apt, Nix でインストール

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

## インストール

```sh
sudo av install brew:cobra-cli
```

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

### macOS

- Homebrew (100%):

```sh
brew install cobra-cli
```

  証拠: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install cobra-cli
```

  証拠: Debian stable package indexes: cobra-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#cobra-cli
```

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

## パッケージ情報

- **パッケージキー:** brew:cobra-cli
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/cobra-cli>
- **バージョン:** 1.3.0
- **ソース概要:** Tool to generate cobra applications and commands
- **ホームページ:** <https://cobra.dev>
- **リポジトリ:** <https://github.com/spf13/cobra-cli>
- **上流ドキュメント:** <https://cobra.dev/docs>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://github.com/spf13/cobra-cli/archive/refs/tags/v1.3.0.tar.gz>
- **生成日時:** 2026-07-08T07:18:31+00:00

## 実行可能ファイル

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

## 依存関係

- go

## インストール挙動

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

## バージョンと鮮度

- ページ生成日: 2026-07-08
- マネージャ版: 1.3.0
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/spf13/cobra-cli
- 検出された最新: v1.3.0 (最新)
- 情報: No package-manager update timestamp was available.
## プロジェクトの歴史と使われ方

cobra-cli is the generator companion for Cobra, the Go library used to build command-line applications. It matters less as a standalone framework and more as a small scaffolding tool in the Go CLI ecosystem.

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

The standalone `spf13/cobra-cli` repository was created in 2022 and released v1.3.0 in March 2022. Its README describes it as Cobra's generator for creating an application skeleton and adding commands.

The tool reflects a split between the Cobra runtime library and a generator binary. The README points users to `go install github.com/spf13/cobra-cli@latest`, then exposes only two core operations: `cobra-cli init` and `cobra-cli add`.

### 採用の歴史

cobra-cli inherits its importance from Cobra's wide use in Go command-line projects. The input shows packaging in Homebrew, Debian, Ubuntu, and Nix, while Go module distribution is the upstream installation path.

### 使われ方

`cobra-cli init` creates a barebones Cobra application inside a Go module. `cobra-cli add` adds subcommands under the generated `cmd` structure.

The optional `~/.cobra.yaml` file stores repeated generator defaults such as author, license, year, and whether to wire in Viper support.

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

cobra-cli is a neat example of Go's module-aware binary install story: the package manager formula is convenient, but upstream expects `go install` to fetch and build the command.

It also shows the packaging split common in developer tools: a library (`spf13/cobra`) carries most of the ecosystem weight, while a smaller generator binary gets packaged separately for repeatable local scaffolding.

### タイムライン

- 2022: `spf13/cobra-cli` repository created.
- 2022: v1.3.0 release published.
- 2022: Go module proxy lists v1.3.0 for `github.com/spf13/cobra-cli`.
- 2020s: Packaged by Homebrew, Debian, Ubuntu, and Nix according to the input package-manager facts.

### Related projects

- Cobra is the underlying Go CLI framework that generated applications use.
- Viper is the related configuration library that cobra-cli can wire into new projects with `--viper`.

### ソース

- <https://github.com/spf13/cobra-cli>
- <https://raw.githubusercontent.com/spf13/cobra-cli/main/README.md>
- <https://cobra.dev/docs>
- <https://proxy.golang.org/github.com/spf13/cobra-cli/@v/list>


## セキュリティノート

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.cobra.yaml
## ソースデータベース詳細

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

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

- Debian apt - cobra-cli - 1.3.0-3+b17: normalized package name match | Debian stable package indexes: cobra-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Cobra CLI tool to generate Go applications and commands | https://github.com/spf13/cobra-cli
- Nix - cobra-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/cobra-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cobra-cli - 1.3.0-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: cobra-cli from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Cobra CLI tool to generate Go applications and commands | https://github.com/spf13/cobra-cli


## 関連リンク

- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/ja/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/ja/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://www.automicvault.com/ja/pkg/brew/go/) - Runtime dependency declared by Homebrew.
- [vgo](https://www.automicvault.com/ja/pkg/brew/vgo/) - Shares av.db curated category or tags: cli, developer-tools, generator, go.
- [aurora](https://www.automicvault.com/ja/pkg/brew/aurora/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [bed](https://www.automicvault.com/ja/pkg/brew/bed/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [cascadia](https://www.automicvault.com/ja/pkg/brew/cascadia/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [cassowary](https://www.automicvault.com/ja/pkg/brew/cassowary/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [ccat](https://www.automicvault.com/ja/pkg/brew/ccat/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [changie](https://www.automicvault.com/ja/pkg/brew/changie/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [cheat](https://www.automicvault.com/ja/pkg/brew/cheat/) - Shares av.db curated category or tags: cli, developer-tools, go.
- [wails](https://www.automicvault.com/ja/pkg/brew/wails/) - Both packages touch the same language runtime or ecosystem. Shared terms: applications, cli, developer, developer-tools, framework.
- [ifacemaker](https://www.automicvault.com/ja/pkg/brew/ifacemaker/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, generate, go.
- [gotests](https://www.automicvault.com/ja/pkg/brew/gotests/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, generate, generator.

## Combined YAML source

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


## ソース

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
