# Install gatsby-cli with Homebrew, Nix

Gatsby command-line interface. Version 5.16.0 via Homebrew; verified 2026-06-22. Also installable with nix: nix profile install nixpkgs#gatsby-cli.

## 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
- **Version:** 5.16.0
- **Source summary:** Gatsby command-line interface
- **Homepage:** <https://www.gatsbyjs.com/docs/reference/gatsby-cli/>
- **Last updated:** 2026-06-22T14:03:24-07:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- gatsby (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 5.16.0
## 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
## 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


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


## Sources

- 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
