# Installer cobra-cli avec Homebrew, apt, Nix

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

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

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

  Preuve: local Homebrew formula metadata

### Linux

- Debian apt (92%):

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

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

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

## Faits du paquet

- **Clé du paquet:** brew:cobra-cli
- **Gestionnaire de paquets:** Homebrew
- **Version:** 1.3.0
- **Résumé source:** Tool to generate cobra applications and commands
- **Page d'accueil:** <https://cobra.dev>
- **Dépôt:** <https://github.com/spf13/cobra-cli>
- **Dernière mise à jour:** 2026-07-25T14:20:51-04:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- cobra-cli (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

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

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.

### Historique du projet

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`.

### Historique d'adoption

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.

### Modes d'utilisation

`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.

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

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.

### Chronologie

- 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`.

### Sources

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


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- 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
## Autres enregistrements de gestionnaires de paquets

- 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


## Combined YAML source

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


## Sources

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