# 使用 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
- **版本:** 2.4.6
- **来源摘要:** Task runner and repo management tool for the web ecosystem, written in Rust
- **主页:** <https://moonrepo.dev/moon>
- **仓库:** <https://github.com/moonrepo/moon>
- **最后更新:** 2026-07-28T12:52:09Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.4.6
## 项目历史与用法

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.*
## 其他软件包管理器记录

- 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


## Combined YAML source

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


## 来源

- 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
