# 使用 Homebrew 安装 x-cmd

查看 x-cmd 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:x-cmd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install x-cmd
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:x-cmd
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/x-cmd>
- **版本:** 0.10.0
- **来源摘要:** Bootstrap 1000+ command-line tools in seconds
- **主页:** <https://x-cmd.com>
- **仓库:** <https://github.com/x-cmd/x-cmd>
- **上游文档:** <https://x-cmd.com>
- **许可证:** Apache-2.0 AND MIT AND BSD-3-Clause
- **源码归档:** <https://github.com/x-cmd/x-cmd/archive/refs/tags/v0.10.0.tar.gz>
- **最后更新:** 2026-07-27T16:56:03Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- x-cmd (cli)
- x-cmd (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.10.0
- 管理器更新时间: 2026-07-27
- 本地数据: OK
- 上游仓库: https://github.com/x-cmd/x-cmd
- 检测到的最新版本: v0.10.0 (当前)
## 项目历史与用法

x-cmd is a modular command-line toolkit and POSIX shell/AWK library with an integrated package manager. Its niche is to make shell environments more capable by adding modules, on-demand portable tools, cloud-service helpers, and AI-oriented command wrappers without replacing native commands outright.

### 项目历史

The official design page describes X-CMD as a modular command-line toolset developed with POSIX Shell and AWK for cloud-era requirements. The project presents its core as a shell tool library and package manager, with a design goal of enhancing command-line capabilities rather than replacing existing tools.

The project homepage and footer identify the public project era as 2022-2026, and the site now frames X-CMD around shell empowerment, portable open-source tools, and AI-agent workflows. The GitHub organization describes the repository as a central release repository mirrored across GitHub, Codeberg, and Gitee.

### 采用历史

x-cmd's adoption story is tied to convenience packaging and agent-era command-line workflows rather than a single language ecosystem. Its official installation guide covers direct POSIX-shell installation, Homebrew, AUR, prebuilt Debian packages under review, and other package-manager tracks, which signals an attempt to meet users in existing shell and distro workflows.

### 使用方式

Users load x-cmd into a shell, then invoke modules with commands such as `x jq`, `x gh`, `x tldr`, `x openai`, or `x docker`. The design page emphasizes wrappers around familiar POSIX commands, on-demand downloads through the built-in package manager, and cloud or AI access implemented as shell-friendly modules.

The official installation guide says the core runtime depends only on pre-installed system commands, operates inside the user's directory, and usually needs no root privileges. That makes x-cmd useful in locked-down accounts, containers, remote shells, and developer machines where installing many separate tools globally is inconvenient.

### 为什么软件包爱好者会关心

x-cmd is package-nerd significant because it blurs the line between shell framework, package manager, and command catalog. It packages not just one executable but a strategy: use POSIX shell/AWK for the small always-available core, then fetch heavier tools on demand when a module needs them.

Its explicit non-replacement philosophy is also notable. The design docs say native commands remain preferable for scripting under equal conditions, while x-cmd focuses on common interactive cases, shorter aliases, visualization, and supplemental behavior.

### 时间线

- 2022: Public project branding on the official site begins the 2022-2026 copyright range.
- 2025: System-package-manager work includes tracked Debian, Alpine, AUR, and Red Hat packaging efforts in the installation guide.
- 2026: Official site presents x-cmd v0.9.x and a growing catalog of modules, packages, install recipes, and AI-agent oriented features.

### Related projects

- x-cmd's package-manager niche overlaps with tools such as Homebrew, asdf, mise, pixi, and distro package managers, but the project positions itself as a shell-native enhancement layer rather than a full replacement for those systems.

### 来源

- <https://github.com/x-cmd/x-cmd>
- <https://www.x-cmd.com/>
- <https://www.x-cmd.com/start/design.md>
- <https://www.x-cmd.com/start/index.md>


## 安全说明

没有找到 x-cmd 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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


## 相关链接

- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [uv](https://pkg.so/zh-hans/brew/uv/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [starship](https://pkg.so/zh-hans/brew/starship/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [shellcheck](https://pkg.so/zh-hans/brew/shellcheck/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [mint](https://pkg.so/zh-hans/brew/mint/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [fish](https://pkg.so/zh-hans/brew/fish/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [zsh](https://pkg.so/zh-hans/brew/zsh/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [composer](https://pkg.so/zh-hans/brew/composer/) - Shares pkgdb curated category or tags: cli, developer-tools, package-manager.
- [x-cli](https://pkg.so/zh-hans/brew/x-cli/) - Package names and metadata indicate a similar tool family. Shared terms: cli, command-line, developer, developer-tools, line.
- [cabal-install](https://pkg.so/zh-hans/brew/cabal-install/) - Local package facts share a topical domain. Shared terms: cli, command-line, developer, developer-tools, line.

## Combined YAML source

View the package source record on GitHub. [combined/x-cmd.yml](https://github.com/mxcl/pkgdb/blob/main/combined/x-cmd.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
- cross-ecosystem install command graph
