action.skip

Starting new Next.js project with Flotiq CLI

For new Next.js projects, we recommend using flotiq-nextjs-setup CLI, which sets up your project with:

  • Flotiq Next.js project framework with automatically generated SDK
  • Content cache revalidation endpoint
  • Draft mode for unpublished content
  • Full Flotiq integration out of the box

To get started, refer to our Next.js setup guide.

Legacy approach: flotiq start starters

If you prefer to start with a predefined template, Flotiq starters provide quick-start projects with prebuilt data models and UI for common use cases like blog, portfolio, and e-commerce. However, note that starters are a legacy approach; for new and production projects, flotiq-nextjs-setup is recommended.

To start developing a new Next.js project with one of the Flotiq starters using 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 [directory] [url] [flotiqApiKey] [framework]

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

  • directory - project name or project path (if you wish to start or import data from the current directory - use .)
  • url - full link to Next.js starter (see list below)
  • flotiqApiKey - API key to your Flotiq account
  • framework - optional, defaults to nextjs

Flags

  • --framework or --fw - choose gatsby or nextjs
  • --no-import or -n - skip importing example objects

Support and compatibility

Warning

Before using a Next.js starter in production, verify its maintenance status and dependency versions in the starter repository.

Flotiq Next.js starters are reference projects that help you start quickly. Depending on when a starter was last updated, you may need to update dependencies before production use.

For new projects, prefer the flotiq-nextjs-setup approach for Flotiq integration and SDK setup. Use flotiq start starters as templates that can be adapted to your project requirements.

Before production deployment:

  • verify supported Node.js and Next.js versions in the selected starter repository,
  • install dependencies and run a clean build,
  • test key user paths and integration points in your environment.

Compatibility is validated per starter repository, not globally for all starters listed on this page.

Next.js Starters

Import example data

The flotiq start command automatically imports example data to your Flotiq account. If you need to import data separately, you can use the general-purpose flotiq import command for importing JSON data exports.

For more information on the flotiq import command, refer to Migrating data between spaces.

Flotiq SDK

The Flotiq SDK is a powerful tool designed to simplify the integration of Flotiq content into your Next.js projects. It provides an auto-generated, type-safe API client tailored to your specific content types, allowing you to focus on building your application rather than dealing with low-level API requests.

Installing Flotiq SDK

The best way to install the Flotiq SDK for your Next.js project is to use our flotiq-nextjs-setup CLI, which will: * automatically generate SDK for your content and integrate it in your project, * add content cache revalidation endpoint, * handle draft mode for unpublished content on Flotiq, * and more.

On how to set up Flotiq Next.js integration with the flotiq-nextjs-set up CLI refer to our page about integrating Flotiq and Next.js with CLI.

If you prefer to just install Flotiq SDK and handle everything else by yourself, refer to the Flotiq SDK page.