`gatsby-dev-cli` is a command-line interface tool specifically designed to assist contributors in the local development and testing of the Gatsby core framework. Its primary function is to enable developers to link a local clone of the Gatsby monorepo to a Gatsby site, allowing changes made to Gatsby packages to be copied directly into the site's `node_modules` for immediate, real-time testing. After the initial copy, the tool can maintain a watch task to automatically re-copy any changed modules, streamlining the iterative development process. The current stable version is 5.16.0. Gatsby generally follows a continuous release cadence for minor fixes and features within a major version, with major versions released less frequently. This CLI's key differentiation lies in its ability to facilitate rapid iteration on Gatsby core features directly within a consuming project, bypassing the complexities of manual `npm link` or copying. It is an essential utility for anyone contributing to the Gatsby project itself.
npm install gatsby-dev-cliVerified import paths — ran on the pinned version, not inferred.
Demonstrates global installation, initial repository configuration, linking a local Gatsby project, and how to revert changes.
Upgrade your Node.js environment to a supported version, such as Node.js 18, 20, 22, or 24.
To revert to officially published package versions, you must manually undo the changes. The recommended way is `git checkout package.json; npm install --force` (or `yarn --force` for Yarn users).
After starting `gatsby-dev` in your project, open a separate terminal, navigate to your cloned Gatsby monorepo, and run `npm run watch`.
Upgrade your Node.js environment. While Node.js 18 is supported, specific older patch versions like 18.6.0 may exhibit this issue. Update to Node.js 18.19.1 (LTS) or higher, or move to Node.js 20, 22, or 24.
Ensure you are running `npm run watch` (or `yarn watch`) in a separate terminal within your cloned Gatsby monorepo directory. This command builds the Gatsby source and keeps it updated, allowing `gatsby-dev` to pick up the changes.
No dependency data recorded yet.