macOS
brew install cobra-clilocal Homebrew formula metadata
安装
brew install cobra-clilocal Homebrew formula metadata
sudo apt install cobra-cliDebian stable package indexes · cobra-cli · 来源: deb.debian.org
nix profile install nixpkgs#cobra-clinixpkgs package indexes · pkgs/by-name/co/cobra-cli/package.nix · 来源: api.github.com
概览
Tool to generate cobra applications and commands
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
~/.cobra.yaml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cobra-cli | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/spf13/cobra-cli
安装元数据
| 软件包键 | brew:cobra-cli |
|---|---|
| 版本 | 1.3.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cobra-cli |
| 主页 | 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 |
| 依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cobra-cli 1.3.0-3+b17
Cobra CLI tool to generate Go applications and commands
https://github.com/spf13/cobra-cli
sudo apt install cobra-clicobra-cli
nix profile install nixpkgs#cobra-clicobra-cli 1.3.0-3build1
Cobra CLI tool to generate Go applications and commands
https://github.com/spf13/cobra-cli
sudo apt install cobra-cli来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.