Starting new Gatsby project with Flotiq CLI¶
Caution
Gatsby starter workflows are now treated as legacy documentation.
Gatsby Cloud was shut down by Netlify in 2023, so use Netlify or Vercel for Gatsby deployments.
To start a new Gatsby project with Flotiq CLI you need a Flotiq account (you can register here) and your "Read and write API key" (more about API keys here).
The command looks like this:
flotiq start [projectName] [flotiqStarterUrl] [flotiqApiKey]
After running the command, you should have a new project cloned with installed dependencies, data imported to your Flotiq account and started server with the project.
Parameters¶
projectName - project name or project path (if you wish to start or import data from the current directory - use .)
flotiqStarterUrl - full link to GatsbyJs starter, the list below
flotiqApiKey - API key to your Flotiq account
Gatsby Starters¶
You can choose one of our starters:
- Recipe website Gatsby starter-1 - to use this starter use:
https://github.com/flotiq/flotiq-gatsby-recipe-1as theflotiqStarterUrl - Recipe website Gatsby starter-2 - to use this starter use:
https://github.com/flotiq/flotiq-gatsby-recipe-2as theflotiqStarterUrl - Event calendar Gatsby starter-1 - to use this starter use:
https://github.com/flotiq/flotiq-gatsby-event-1as theflotiqStarterUrl - Event calendar Gatsby starter-2 - to use this starter use:
https://github.com/flotiq/flotiq-gatsby-event-2as theflotiqStarterUrl - Project portfolio Gatsby starter-1 - to use this starter use:
https://github.com/flotiq/flotiq-gatsby-portfolio-1as theflotiqStarterUrl - Project portfolio Gatsby starter-2 - to use this starter use:
https://github.com/flotiq/flotiq-gatsby-portfolio-2as theflotiqStarterUrl - Simple blog Gatsby starter-1 - to use this starter use:
https://github.com/flotiq/flotiq-gatsby-blog-1as theflotiqStarterUrl - Simple blog Gatsby starter-2 - to use this starter use:
https://github.com/flotiq/flotiq-gatsby-blog-2as theflotiqStarterUrl - Gatsby and Snipcart boilerplate, sourcing products from Flotiq-1 - to use this starter use:
https://github.com/flotiq/flotiq-gatsby-shop-1as theflotiqStarterUrl - Gatsby and Snipcart boilerplate, sourcing products from Flotiq-2 - to use this starter use:
https://github.com/flotiq/flotiq-gatsby-shop-2as theflotiqStarterUrl
Import example data¶
If you have cloned one of Gatsby starters, you can import example data.
The command looks like this:
flotiq import [projectName] [flotiqApiKey]
After running the command, you should have data imported to your Flotiq account.
Parameters¶
projectName - project name or project path (if you wish to start or import data from the directory you are in, use .)
flotiqApiKey - API key to your Flotiq account