Starting new Next.js project with Flotiq CLI¶
To start a new Next.js 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 Next.js starter, the list below
flotiqApiKey
- API key to your Flotiq account
NextJs Starters¶
- Recipe website NextJs starter-2 - to use this starter use:
https://github.com/flotiq/flotiq-nextjs-recipe-2
as theflotiqStarterUrl
- Event calendar NextJs starter-2 - to use this starter use:
https://github.com/flotiq/flotiq-nextjs-event-2
as theflotiqStarterUrl
- Project portfolio NextJs starter-2 - to use this starter use:
https://github.com/flotiq/flotiq-nextjs-portfolio-2
as theflotiqStarterUrl
- Simple blog NextJs starter-1 - to use this starter use:
https://github.com/flotiq/flotiq-nextjs-blog-1
as theflotiqStarterUrl
- NextJs and Snipcart boilerplate, sourcing products from Flotiq-2 - to use this starter use:
https://github.com/flotiq/flotiq-nextjs-shop-2
as theflotiqStarterUrl
Import example data¶
If you have cloned one of Next.js 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