The Gatsby CLI
Get up to speed with the Gatsby CLI and its most common APIs.
We'll cover the following...
Introduction to the Gatsby CLI
This very useful tool is one that we’ll be using quite a lot. It performs many actions and functionality on Gatsby, including starting a new application, spinning up the local development server, and building our site for deployment.
The Gatsby command line interface (CLI) is an important tool for development using Gatsby. Let’s look into a few useful commands and APIs it makes available to us.
Confirming the installation
Let’s run the gatsby -v
command in the terminal at the bottom of the page to confirm the installation of Gatsby. We should receive an output showing the installed Gatsby version. For example, Gatsby CLI version: 4.8.0
.
API and commands
The gatsby
command should now be available to run other commands and APIs. To view all available commands, run gatsby --help
. Some of these commands of importance include the ...