# 使用 Homebrew, Nix, scoop 安装 moon

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

## 安装

```sh
sudo av install brew:moon
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install moon
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#moon
```

  证据: nixpkgs package indexes: pkgs/by-name/mo/moon/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/moon
```

  证据: Scoop official bucket manifest trees: bucket/moon.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:moon
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/moon>
- **版本:** 2.4.2
- **来源摘要:** Task runner and repo management tool for the web ecosystem, written in Rust
- **主页:** <https://moonrepo.dev/moon>
- **仓库:** <https://github.com/moonrepo/moon>
- **上游文档:** <https://moonrepo.dev/docs>
- **许可证:** MIT
- **源码归档:** <https://github.com/moonrepo/moon/archive/refs/tags/v2.4.2.tar.gz>
- **最后更新:** 2026-07-08T03:52:46Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- moon (cli)
- moonx (cli)
- moon (别名)
- moonx (别名)

## 构建依赖

- pkgconf
- protobuf
- rust

## macOS 提供的库

- bzip2

## 安装行为

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

## 版本和新鲜度

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

moon is the open-source build-system and repository-management tool from moonrepo. Its own documentation expands the name into management, organization, orchestration, and notification, and says the first incarnation of the broader "moonrepo" name came from a misspelling of "monorepo". In the February 21, 2023 Launch HN post, Miles and James described building Moonrepo to simplify repository management, project ownership, task running, and daily developer workflows after years working on infrastructure and developer tooling.

### 项目历史

The tool is written in Rust and intentionally occupies a middle ground between heavyweight build systems such as Bazel and lightweight script runners such as make or just. The documentation says many concepts are inspired by Bazel and other build systems but tailored for web-ecosystem languages; the product page lists JavaScript, TypeScript, Rust, Go, Ruby, and more among supported languages. Its practical feature set includes task orchestration, project graphs, smart hashing, incremental builds, local and remote caching, toolchain management, code ownership metadata, and CI-oriented notifications.

### 使用方式

In package-manager terms, the Homebrew formula gives macOS developers a native way to install a tool that otherwise sits close to Node-oriented and monorepo tooling. Its niche overlaps with Turborepo, Nx, Bazel, Pants, just, and make, but moon's documentation frames the difference as structured repository management with incremental adoption and explicit developer-experience choices rather than only package.json script acceleration.

### 来源

- <https://github.com/moonrepo/moon>
- <https://moonrepo.dev/docs>
- <https://moonrepo.dev/docs/faq>
- <https://moonrepo.dev/moon>
- <https://news.ycombinator.com/item?id=34885077>


## 安全说明

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: .moon/workspace.*, .moon/toolchains.*, .moon/tasks/**/*, moon.*
## 源数据库详情

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

## 其他软件包管理器记录

- Nix - moon: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/moon/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/moon: normalized package name match | Scoop official bucket manifest trees: bucket/moon.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [protobuf](https://www.automicvault.com/zh-hans/pkg/brew/protobuf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [nx](https://www.automicvault.com/zh-hans/pkg/brew/nx/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, monorepo, task-runner.
- [grunt-cli](https://www.automicvault.com/zh-hans/pkg/brew/grunt-cli/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, task-runner.
- [gulp-cli](https://www.automicvault.com/zh-hans/pkg/brew/gulp-cli/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, task-runner.
- [mako](https://www.automicvault.com/zh-hans/pkg/brew/mako/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, rust.
- [maturin](https://www.automicvault.com/zh-hans/pkg/brew/maturin/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, rust.
- [octobuild](https://www.automicvault.com/zh-hans/pkg/brew/octobuild/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, rust.
- [vite](https://www.automicvault.com/zh-hans/pkg/brew/vite/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, web-development.
- [vite-plus](https://www.automicvault.com/zh-hans/pkg/brew/vite-plus/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, web-development.

## Combined YAML source

View the package source record on GitHub. [combined/moon.yml](https://github.com/automic-vault/db/blob/main/combined/moon.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
