snippetbashTip
gatsby — Static site generator for React. More information: <https://www.gatsbyjs.com/docs/reference/gatsby-c
Viewed 0 times
commandgeneratorgatsbystaticreactforclisite
Problem
How to use the
gatsby command: Static site generator for React. More information: <https://www.gatsbyjs.com/docs/reference/gatsby-cli/>.Solution
gatsby — Static site generator for React. More information: <https://www.gatsbyjs.com/docs/reference/gatsby-cli/>.Create a new site:
gatsby new {{site_name}}Create a new site with a Gatsby
starter:gatsby new {{site_name}} {{url_of_starter_github_repo}}Start a live-reloading local development server:
gatsby developPerform a production build and generate static HTML:
gatsby buildStart a local server which serves the production build:
gatsby serveCode Snippets
Create a new site
gatsby new {{site_name}}Create a new site with a Gatsby `starter`
gatsby new {{site_name}} {{url_of_starter_github_repo}}Start a live-reloading local development server
gatsby developPerform a production build and generate static HTML
gatsby buildStart a local server which serves the production build
gatsby serveContext
tldr-pages: common/gatsby
Revisions (0)
No revisions yet.