# 使用 Homebrew, Nix, pacman, apt, winget 安装 grunt-cli

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

## 安装

```sh
sudo av install brew:grunt-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install grunt-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#grunt-cli
```

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

- pacman (92%):

```sh
sudo pacman -S grunt-cli
```

  证据: Arch Linux sync databases: grunt-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install grunt
```

  证据: Debian stable package indexes: grunt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

### Windows

- winget (92%):

```sh
winget install --id Grunt.Grunt -e
```

  证据: Windows Package Manager source index: Grunt.Grunt from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:grunt-cli
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/grunt-cli>
- **版本:** 1.5.0
- **来源摘要:** JavaScript Task Runner
- **主页:** <https://gruntjs.com/>
- **上游文档:** <https://gruntjs.com/>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.5.0.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- grunt (cli)
- grunt (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.5.0
- 本地数据: OK
- 上游仓库: https://gruntjs.com/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

grunt-cli is the small command-line launcher for Grunt, the JavaScript task runner. Its importance is not that it contains the build system itself, but that it standardizes the global or local `grunt` command while delegating execution to the Grunt version installed beside a project Gruntfile.

### 项目历史

The Grunt ecosystem began with the core grunt repository in September 2011 and the dedicated grunt-cli repository in November 2012. The CLI split reflects a Node.js packaging lesson: the executable can live globally while the task runner and plugins stay pinned in each project.

Grunt documentation for the 0.4 era explicitly tells users that installing grunt-cli does not install the Grunt task runner. Instead, each `grunt` invocation searches through Node's require system for a local Grunt installation, reads the project Gruntfile, and runs requested tasks. The grunt-cli npm package was created in November 2012, matching the repository's early public history.

### 采用历史

grunt-cli was widely adopted with Grunt during the early Node.js build-tool era, when JavaScript projects needed repeatable commands for minification, linting, concatenation, tests, and release chores. Its global-install pattern let developers type `grunt` in many projects while allowing each project to control its own Grunt and plugin versions.

As npm scripts and later bundlers became more common, grunt-cli's role narrowed but remained historically important: it is the launcher that made Grunt's project-local dependency model ergonomic across shells, editors, CI systems, and package managers.

### 使用方式

Typical use is `npm install -g grunt-cli` to place `grunt` on PATH, followed by project-local installation of `grunt` and plugins as development dependencies. Running `grunt` from a project directory locates the nearest Gruntfile, loads project tasks, and executes the named or default task. The CLI also exposes options for help, base path, alternate Gruntfile, task directories, npm-installed plugins, dry-run behavior, verbosity, version output, and shell completion.

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

grunt-cli is package-manager lore because it encodes the global-binary/local-library compromise that became common in Node tooling. It gives Homebrew, npm, Debian, Arch, Nix, Ubuntu, and Windows package entries a simple executable to ship, while project correctness still depends on `package.json` and the local `node_modules` graph.

For maintainers, grunt-cli is also a reminder that a package named like a tool can be only a shim. Installing it gives users the command, not necessarily the task runner semantics until a project supplies a Gruntfile and dependencies.

### 时间线

- 2011: gruntjs/grunt repository created.
- 2012: gruntjs/grunt-cli repository created.
- 2012: grunt-cli package created on npm.
- 2013: Grunt 0.4 documentation formalized the global CLI plus local Grunt workflow.
- 2021: grunt-cli 1.4.x releases published.
- 2024: grunt-cli 1.5.0 release published.

### Related projects

- grunt is the task runner that grunt-cli locates and runs.
- grunt-contrib plugins provide common tasks such as uglify, jshint, and nodeunit in documented examples.
- npm is the package manager used by Grunt documentation for installing grunt-cli, grunt, and plugins.

### 来源

- <https://api.github.com/repos/gruntjs/grunt>
- <https://api.github.com/repos/gruntjs/grunt-cli>
- <https://github.com/gruntjs/grunt-cli>
- <https://gruntjs.com/getting-started>
- <https://gruntjs.com/using-the-cli>
- <https://registry.npmjs.org/grunt-cli>


## 安全说明

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: ./Gruntfile.js, ./Gruntfile.coffee
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** grunt-cli
- **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 - grunt-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/gr/grunt-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - grunt-cli - 1.5.0-1: normalized package name match | Arch Linux sync databases: grunt-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The grunt command line interface. | https://gruntjs.com/
- Debian apt - grunt - 1.6.1-1: installed executable or alias match | Debian stable package indexes: grunt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | JavaScript task runner/build system/maintainer tool | https://gruntjs.com/
- Ubuntu apt - grunt - 1.6.1-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: grunt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | JavaScript task runner/build system/maintainer tool | https://gruntjs.com/
- winget - Grunt.Grunt: installed executable or alias match | Windows Package Manager source index: Grunt.Grunt from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [gulp-cli](https://pkg.so/zh-hans/brew/gulp-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs, task-runner.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [just](https://pkg.so/zh-hans/brew/just/) - Shares pkgdb curated category or tags: build-tool, cli, developer-tools, task-runner.
- [go-task](https://pkg.so/zh-hans/brew/go-task/) - Shares pkgdb curated category or tags: build-tool, cli, developer-tools, task-runner.
- [yarn](https://pkg.so/zh-hans/brew/yarn/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [fnm](https://pkg.so/zh-hans/brew/fnm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [node-build](https://pkg.so/zh-hans/brew/node-build/) - Shares pkgdb curated category or tags: build-tool, cli, developer-tools, nodejs.
- [vite](https://pkg.so/zh-hans/brew/vite/) - Shares pkgdb curated category or tags: build-tool, cli, developer-tools, javascript.
- [grunt-cli](https://pkg.so/zh-hans/npm/grunt-cli/) - Same normalized package name appears in another local ecosystem. Shared terms: build, cli, developer, developer-tools, grunt.
- [grunt](https://pkg.so/zh-hans/npm/grunt/) - Executable or command metadata overlaps with this package. Shared terms: build, cli, developer, developer-tools, grunt.
- [grunt-cli](https://pkg.so/zh-hans/npm/grunt-cli/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/grunt-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/grunt-cli.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
