Set up with the CLI

The best way to create a new app is using React Bricks CLI:

$ npx create-reactbricks-app@latest

Launch the command. After authenticating, you'll be able to choose an existing app or create a new app.

For the tutorial, let's choose:

  • Create new app.
  • App name: reactbricks-tutorial (the same for project name and folder name).
  • Starter project: Website and Blog with Tailwind
  • Framework: Next.js with Pages router
  • Load default content: Yes
Docs reference
» The CLI

While the CLI does its work, cloning the template's repo for us, configuring it and installing all the dependencies, let's see the other ways to create a new app...

React Server Components

If you'd like to use React Server Components, and so you choose Next.js with App router, you will need to pay attention to the small differences in the bricks code to have it work with Server Components.

Other ways to start a new app

You may also create a new app from the React Bricks Dashboard.

Then you should clone the repository of a Starter Project and then configure the credentials in a `.env.local` file.

Docs reference
» Starter Projects

Since the CLI does it all for us, it should be the preferred solution.

Time to get points

What's the best way to create a new app?

Subscribe to our newsletter!

Be the first to discover our latest news. No spam, promise.