# Install gatsby-cli with Homebrew, Nix

Gatsby command-line interface. Version 5.16.0 via Homebrew; verified 2026-06-22.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:gatsby-cli
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gatsby-cli>
- **Version:** 5.16.0
- **Source summary:** Gatsby command-line interface
- **Homepage:** <https://www.gatsbyjs.com/docs/reference/gatsby-cli/>
- **Repository:** <https://github.com/gatsbyjs/gatsby>
- **Upstream docs:** <https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-cli#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/gatsby-cli/-/gatsby-cli-5.16.0.tgz>
- **Last updated:** 2026-06-22T14:03:24-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gatsby (cli)
- gatsby (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 5.16.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://www.gatsbyjs.com/docs/reference/gatsby-cli/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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`.

### Adoption history

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.

### How it is used

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`.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gatsby-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

## Other Package-Manager Records

- 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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [angular-cli](https://www.automicvault.com/pkg/brew/angular-cli/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [css-crush](https://www.automicvault.com/pkg/brew/css-crush/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [gwt](https://www.automicvault.com/pkg/brew/gwt/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [livereload](https://www.automicvault.com/pkg/brew/livereload/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [nuxi](https://www.automicvault.com/pkg/brew/nuxi/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [templ](https://www.automicvault.com/pkg/brew/templ/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [vite](https://www.automicvault.com/pkg/brew/vite/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [vite-plus](https://www.automicvault.com/pkg/brew/vite-plus/) - Shares av.db curated category or tags: cli, developer-tools, web-development.
- [gatsby-cli](https://www.automicvault.com/pkg/npm/gatsby-cli/) - Same normalized package name appears in another local ecosystem. Shared terms: command-line, gatsby, gatsby-cli, generator, interface.
- [hexo](https://www.automicvault.com/pkg/brew/hexo/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, generator, node.
- [web-ext](https://www.automicvault.com/pkg/brew/web-ext/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, command-line, developer, developer-tools, development.
- [gatsby-cli](https://www.automicvault.com/pkg/npm/gatsby-cli/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/gatsby-cli.yml](https://github.com/automic-vault/db/blob/main/combined/gatsby-cli.yml)


## Sources

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