
📝 Posted on 2021-06-15T04:33:39Z
⏳ 1 min read
Gatsby cli commands
#gatsby#javascript#react#netlify
gatsby developgatsby buildgatsby servegatsby infogatsby cleangatsby replgatsby new [rootPath] [starter]
gatsby develop
Starts development server. If something changes in the project it will rebuilds the server and perform hot reload.
gatsby build
Generates build from the source code.
gatsby serve
Serve previously built Gatsby site.
gatsby info
It gives gatsby environment information and packages information
gatsby clean
Clears the
cache, assets and buildgatsby repl
It is node repl with context of Gatsby environment