# 使用 Homebrew, Nix 安装 gatsby-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gatsby-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:gatsby-cli
- **软件包管理器:** Homebrew
- **版本:** 5.16.0
- **来源摘要:** Gatsby command-line interface
- **主页:** <https://www.gatsbyjs.com/docs/reference/gatsby-cli/>
- **最后更新:** 2026-06-22T14:03:24-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gatsby (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Gatsby CLI is the command-line front end for Gatsby, the React-based framework for building static, server-rendered, and hybrid websites. It is the package-manager-facing entry point for creating, developing, building, serving, cleaning, and inspecting Gatsby sites.

### 项目历史

The Gatsby repository was created in May 2015, with early 0.x releases later that year. Gatsby v1 reached beta and stable release milestones in 2017, and the project subsequently moved through major framework releases while keeping the CLI in the monorepo as one of many npm-published packages.

The official README describes Gatsby as a free and open-source React framework that combines static-site generation with app-style React behavior. The repository notes that it is a Lerna-managed monorepo containing multiple packages, including `gatsby-cli`.

### 采用历史

The README points users to quickstarts, tutorials, plugins, starters, showcase sites, migration guides, release notes, and GitHub Discussions. It also exposes npm version and download badges for the main Gatsby package, reflecting Gatsby's package-centric ecosystem of starters and plugins.

### 使用方式

The CLI can be installed globally with `npm install -g gatsby-cli` or run with `npx`. Common commands include `gatsby new`, `gatsby develop`, `gatsby build`, `gatsby serve`, `gatsby clean`, `gatsby info`, and `gatsby repl`.

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

Gatsby CLI is significant because it made a large React/static-site ecosystem accessible through a single package command, tying together starters, plugins, GraphQL data loading, local development servers, and production builds. For package managers, it is the small executable facade over a much larger JavaScript framework and plugin graph.

### 时间线

- 2015: Gatsby repository created.
- 2015: Early 0.x releases published.
- 2017: Gatsby v1 beta and v1 stable releases published.
- 2021: Gatsby v3.0.0 and v4.0.0 releases published.
- 2022: Gatsby v5.0.0 release published.

### Related projects

- Gatsby CLI is part of the Gatsby monorepo and is closely related to Gatsby starters, Gatsby plugins, React, GraphQL, Netlify deployment workflows, and the wider Gatsby documentation and showcase ecosystem.

### 来源

- <https://github.com/gatsbyjs/gatsby>
- <https://github.com/gatsbyjs/gatsby/releases>
- <https://www.gatsbyjs.com/docs/reference/config-files/gatsby-config>
- <https://www.gatsbyjs.com/docs/reference/gatsby-cli>
- <https://www.gatsbyjs.com/docs/reference/release-notes>


## 安全说明

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: <project_root>/gatsby-config.js, <project_root>/gatsby-config.mjs, <project_root>/gatsby-config.ts
- Windows: <project_root>\gatsby-config.js, <project_root>\gatsby-config.mjs, <project_root>\gatsby-config.ts
## 其他软件包管理器记录

- Nix - gatsby-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/ga/gatsby-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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