# 使用 Homebrew, MacPorts, Nix, scoop 安装 mask

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

## 安装

```sh
sudo av install brew:mask
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mask
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mask
```

  证据: MacPorts ports tree: sysutils/mask/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mask
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/mask
```

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

## 软件包事实

- **软件包键:** brew:mask
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mask>
- **版本:** 0.11.7
- **来源摘要:** CLI task runner defined by a simple markdown file
- **主页:** <https://github.com/jacobdeichert/mask/>
- **仓库:** <https://github.com/jacobdeichert/mask>
- **上游文档:** <https://github.com/jacobdeichert/mask/>
- **许可证:** MIT
- **源码归档:** <https://github.com/jacobdeichert/mask/archive/refs/tags/mask/0.11.7.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mask (cli)
- mask (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.11.7
- 本地数据: OK
- 上游仓库: https://github.com/jacobdeichert/mask
- 检测到的最新版本: mask/0.11.7 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

mask is a Rust CLI task runner whose commands are defined in a Markdown file. It treats `maskfile.md` as both human-readable project documentation and executable command metadata.

### 项目历史

The mask repository was created in July 2019, and the earliest GitHub releases followed within the same month. Its initial release introduced the core Markdown-driven task-runner idea; later early releases added shell executors and adjusted argument syntax so required arguments would not conflict with Markdown rendering.

The README explains the author's motivation: mask grew from frustration with Makefile syntax, interest in `just`, and inspiration from `maid`, while choosing a single Rust binary instead of an npm package with many dependencies. That origin is central to its package identity: a lightweight executable with docs-as-commands semantics.

### 采用历史

mask has modest but real adoption for a specialized developer tool, with GitHub showing around 1.6k stars and packaging in Homebrew, MacPorts, Nix, and Scoop according to the supplied package metadata.

Its adoption is concentrated among users who prefer checked-in project task files that read like documentation, especially where a `Makefile` or ad hoc scripts feel too terse for onboarding.

### 使用方式

A project defines headings, blockquotes, options, and code blocks in `maskfile.md`; running `mask build` or another subcommand executes the associated script. The README documents support for positional arguments, named flags, multiple runtimes, nested commands, and injected helper variables.

By default mask searches the current directory for `maskfile.md`, but `--maskfile <path_to_maskfile>` lets users run a project or global task file from another location.

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

mask is interesting to package users because it competes in the same ergonomic space as `make`, `just`, and npm scripts while using Markdown as the configuration language.

The single-binary Rust distribution model makes it easy to install through general package managers, which fits its pitch as a low-friction project automation tool.

### 时间线

- 2019: GitHub repository created.
- 2019: v0.2.0 initial public release.
- 2019: v0.2.1 adds bash, zsh, and fish executors.
- 2026: GitHub lists mask v0.11.7 as the latest release in January 2026.

### Related projects

- mask is conceptually related to `make`, `just`, and `maid`.
- Its parser is also exposed as the `mask-parser` crate, though the README says it is not yet documented or stable.

### 来源

- <https://api.github.com/repos/jacobdeichert/mask>
- <https://github.com/jacobdeichert/mask>
- <https://github.com/jacobdeichert/mask/releases?page=3>
- source_facts.package-manager-url


## 安全说明

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: maskfile.md, file supplied with --maskfile
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mask
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - mask: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mask/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - mask: normalized package name match | MacPorts ports tree: sysutils/mask/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/mask: normalized package name match | Scoop official bucket manifest trees: bucket/mask.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control 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.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [just](https://pkg.so/zh-hans/brew/just/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, task-runner.
- [run](https://pkg.so/zh-hans/brew/run/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, task-runner.
- [xc](https://pkg.so/zh-hans/brew/xc/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, markdown, task-runner.
- [dum](https://pkg.so/zh-hans/brew/dum/) - Shares pkgdb curated category or tags: cli, developer-tools, task-runner.
- [go-task](https://pkg.so/zh-hans/brew/go-task/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, task-runner.
- [pyinvoke](https://pkg.so/zh-hans/brew/pyinvoke/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, task-runner.
- [pandocomatic](https://pkg.so/zh-hans/brew/pandocomatic/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, markdown.
- [ahoy](https://pkg.so/zh-hans/brew/ahoy/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, task-runner.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
