# 使用 npm 安装 gatsby-cli

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

## 安装

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

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g gatsby-cli
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:gatsby-cli
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/gatsby-cli>
- **版本:** 5.16.0
- **来源摘要:** Gatsby command-line interface for creating new sites and running Gatsby commands
- **主页:** <https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-cli#readme>
- **仓库:** <https://github.com/gatsbyjs/gatsby>
- **上游文档:** <https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-cli#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/gatsby-cli/-/gatsby-cli-5.16.0.tgz>
- **问题跟踪器:** <https://github.com/gatsbyjs/gatsby/issues>
- **发布时间:** 2026-01-26T20:27:24.498Z
- **最后更新:** 2026-01-26T20:27:24.498Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- gatsby (cli)

## 依赖

- @babel/code-frame
- @babel/core
- @babel/generator
- @babel/helper-plugin-utils
- @babel/preset-typescript
- @babel/runtime
- @babel/template
- @babel/types
- @jridgewell/trace-mapping
- @types/common-tags
- better-opn
- boxen
- chalk
- clipboardy
- common-tags
- convert-hrtime
- create-gatsby
- envinfo
- execa
- fs-exists-cached
- fs-extra
- gatsby-core-utils
- hosted-git-info
- is-valid-path
- joi
- lodash
- node-fetch
- opentracing
- pretty-error
- progress
- prompts
- redux
- resolve-cwd
- semver
- signal-exit
- stack-trace
- strip-ansi
- yargs
- yoga-layout-prebuilt
- yurnalist

## 构建依赖

- @babel/cli
- @rollup/plugin-babel
- @rollup/plugin-commonjs
- @rollup/plugin-json
- @rollup/plugin-node-resolve
- @rollup/plugin-replace
- @sigmacomputing/babel-plugin-lodash
- @types/hosted-git-info
- @types/yargs
- babel-preset-gatsby-package
- cross-env
- ink
- ink-spinner
- npm-run-all
- react
- rimraf
- rollup
- rollup-plugin-auto-external
- rollup-plugin-internal
- typescript

## 安装行为

- post-install 钩子: 已定义
- npm 生命周期脚本: postinstall, prepare
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 5.16.0
- 管理器更新时间: 2026-01-26
- 本地数据: OK
- 上游仓库: https://github.com/gatsbyjs/gatsby
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 gatsby-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Alpha 9689ff: 4.23.0-alpha-9689ff.25, Alpha A5 Peer: 4.23.0-alpha-a5-peer.70, Alpha Adapters: 5.10.0-alpha-adapters.165, Alpha Cg Tailwind: 5.9.0-alpha-cg-tailwind.23, Alpha Job Progress: 4.2.0-alpha-jobs-progress.16, Alpha Mdx V2: 4.18.0-alpha-mdx-v2.68, Alpha Ot Global Span: 4.2.0-alpha-ot-global-span.15, Alpha Parallel: 3.2.0-alpha-parallel.28, Alpha Parallel Query: 3.6.0-alpha-parallel-query.75, Alpha Qe Sm: 3.14.0-alpha-qe-sm.46, Alpha React Profiling Env: 5.8.0-alpha-react-profiling-env.8, Alpha Remote Fetch: 3.14.0-alpha-remote-fetch.79, Alpha Remote File: 3.10.0-alpha-remote-file.48, Alpha Segfault Handler: 4.10.0-alpha-segfault-handler.12, Alpha Sl Test Pieh: 4.23.0-alpha-sl-test-pieh.80, Alpha Trailing Slash: 4.5.0-alpha-trailing-slash.71, Alpha Transformer JSON: 4.14.0-alpha-transformer-json.26, Alpha Ts Aot: 4.7.0-alpha-ts-aot.33, Alpha Ts Jit: 4.6.0-alpha-ts-jit.26, Alpha V5: 5.0.0-alpha-v5.d20221012t101120.57, Alt Image Cdn: 5.13.0-alpha-alt-image-cdn.44, Autotruncate Long Paths: 2.12.62-autotruncate-long-paths.31, Berry Mdx: 2.8.28-berry-mdx.26, Beta: 1.2.0-alphasldfjsljfd
- **Version Count:** 1,062
- **Maintainers:** pieh, kathmbeck, serhalp-netlify, mlgualtieri-gatsby, kylemathews, freiksenet, dschau, monastic.panic, m-allanson, moocar
- **Author:** Kyle Mathews
- **Publisher:** serhalp-netlify
- **Engines:** Node: >=18.0.0 <26
- **Integrity:** sha512-O+2ouCR0Yex04AllxPMIWxlwcj2GiGsvK8sC6AfVL092j0rQJAfwEEBhgVNhFrniPnEanaADRKbgjj2k6vPaBw==
- **Shasum:** 4a668bd4649d011beaff62a3cf96a17f026c2ad9
- **Unpacked Size:** 739,100
- **File Count:** 0
- **Created At:** 2017-08-02T22:19:32.144Z
- **Latest Published At:** 2026-01-26T20:27:24.498Z
- **Modified At:** 2026-01-26T20:27:24.632Z

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

- 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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Matched curated package taxonomy and local package facts.
- [gatsby](https://www.automicvault.com/zh-hans/pkg/npm/gatsby/) - Executable or command metadata overlaps with this package. Shared terms: babel, code, code-frame, core, frame.
- [gatsby-cli](https://www.automicvault.com/zh-hans/pkg/brew/gatsby-cli/) - Same normalized package name appears in another local ecosystem. Shared terms: command-line, gatsby, gatsby-cli, generator, interface.
- [amplify-graphql-types-generator](https://www.automicvault.com/zh-hans/pkg/npm/amplify-graphql-types-generator/) - Local package facts share a topical domain. Shared terms: babel, code, common, common-tags, core.
- [gatsby-cli](https://www.automicvault.com/zh-hans/pkg/brew/gatsby-cli/) - Same normalized package name exists in another local package ecosystem.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
