经 AI Skill Hub 精选评估,argc 获评「强烈推荐」。已获得 1.1k 颗 GitHub Star,这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
argc 是一款基于 Rust 开发的开源工具,专注于 bash、cli-framework、rust 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
argc 是一款基于 Rust 开发的开源工具,专注于 bash、cli-framework、rust 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:cargo install(推荐) cargo install argc # 方式二:从源码编译 git clone https://github.com/sigoden/argc cd argc cargo build --release # 二进制在 ./target/release/argc
# 查看帮助 argc --help # 基本运行 argc [options] <input> # 详细使用说明请查阅文档 # https://github.com/sigoden/argc
# argc 配置说明 # 查看配置选项 argc --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export ARGC_CONFIG="/path/to/config.yml"
Argc is a powerful Bash framework that simplifies building full-featured CLIs. It lets you define your CLI through comments, focusing on your core logic without dealing with argument parsing, usage text, error messages, and other boilerplate code.
<img width="2400" height="1400" alt="demo" src="https://github.com/user-attachments/assets/364d8292-0ae5-4c2b-b109-2f2fee6fc827" />
Generate an independent bash script that incorporates all functionalities typically available when the argc command is present.
The generated script removes the argc dependency, enhances compatibility, and enables deployment in a wider range of environments.
argc --argc-build <SCRIPT> [OUTPATH]
argc --argc-build ./mycli ./build/mycli
./build/mycli -h # The script's functionality does not require the `argc` dependency
argc --argc-completions fish mycli mycli2 | source
argc --argc-completions nushell | save --append $nu.config-path
The core of all completion scripts is to call `argc --argc-compgen` to obtain completion candidates.
$ argc --argc-compgen bash ./mycli mycli -- --foo (Flag param) --bar (Option param) --baz (Option param (multi-occurs)) --help (Print help) --version (Print version) ```
So argc is also a completion engine, see argc-completions.
See Compgen for the completion engine and completion values.
cargo install argcbrew install argcyay -S argcAlternatively, download pre-built binaries for macOS, Linux, and Windows from GitHub Releases, extract it, and add the argc binary to your $PATH.
You can use the following command on Linux, MacOS, or Windows to download the latest release.
curl -fsSL https://raw.githubusercontent.com/sigoden/argc/main/install.sh | sh -s -- --to /usr/local/bin
Argc 是一个强大的 Bash 框架,简化了构建全功能 CLI 的过程。它让您通过注释定义您的 CLI,专注于核心逻辑,而不必处理命令行参数。
Argc 的功能包括:无缝的命令行参数解析、独立的 Bash 脚本创建、跨 shell 自动完成等。
Argc 的安装步骤包括使用 Cargo、Homebrew/Linuxbrew、Pacman 等包管理器安装,或者从 GitHub Releases 下载预编译二进制文件。
Argc 的配置包括使用选项 --bar 和 --baz* 等参数,或者在 elvish 中使用 eval 和 slurp 等命令。
Argc 的工作流包括使用 Cargo、Homebrew/Linuxbrew、Pacman 等包管理器安装,或者从 GitHub Releases 下载预编译二进制文件。
高质量的命令行框架和运行器,易于使用和扩展
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:argc 的核心功能完整,质量优秀。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | argc |
| 原始描述 | 开源AI工具:A Bash CLI framework, also a Bash command runner.。⭐1.1k · Rust |
| Topics | bashcli-frameworkrust |
| GitHub | https://github.com/sigoden/argc |
| License | Apache-2.0 |
| 语言 | Rust |
收录时间:2026-05-27 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。