# 使用 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
- **版本:** 0.11.7
- **来源摘要:** CLI task runner defined by a simple markdown file
- **主页:** <https://github.com/jacobdeichert/mask/>
- **仓库:** <https://github.com/jacobdeichert/mask>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mask (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
