new gatsby site code example
Example 1: create new project gatsby
//Create new project
gatsby new [gatsby-project-name] https://github.com/gatsbyjs/gatsby-starter-hello-world
cd [gatsby-project-name]
//initialize developer server
gatsby develop
//create production build the project
gatsby build
gatsby serve
Example 2: new Gatsby site
cd my-default-starter/
gatsby develop
Example 3: new Gatsby site
# create a new Gatsby site using the default starter
gatsby new my-default-starter https://github.com/gatsbyjs/gatsby-starter-default