A template for creating or integrating a Croct project.

Introduction

This template integrates Croct in an existing project or creates a new Next.js project already integrated with Croct.

Usage

Run the following command to integrate Croct into an existing project:

npx croct@latest use croct://project

To specify a Next.js version, use the version option:

npx croct@latest use croct://project --version=14

Options

The following options are available for this template:

OptionDescriptionRequiredDefault
projectNameThe name of the project.Nomy-app
versionThe Next.js version to use.Nolatest
routerThe router to use (app or page).Noapp

Start building in seconds

Paste the following command in your terminal and let the CLI do the rest.

npx croct@latest init