![]() ![]() ![]() Note: The site name should only consist of letters and numbers. my-new-blog) is the name of your site, and the second argument is the GitHub URL of the starter you want to clone. For example, to clone a new gatsby-starter-blog, execute: You can also skip the prompt and clone a starter directly from GitHub. To create a new site with the prompt, execute: Runs an interactive shell with a prompt that helps you set up a CMS, styling system and plugins if you wish. API commandsĪll the following documentation is available in the tool by running gatsby -help. Useful Gatsby CLI commands are also pre-defined in starters as run scripts. Run commands directly with npx, where you execute commands with the syntax npx gatsby new.Install it globally with npm install -g gatsby-cli, where you execute commands with the syntax gatsby new, or.The Gatsby command line interface (CLI) is the main tool you use to initialize, build and develop Gatsby sites.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |