You're reading docs for Nextly Alpha. APIs may change between releases.

Quick start

Create a Nextly project, start it, and create the first admin. Then build something with it.

  1. Create a project in my-app with the defaults.
  2. Start the dev server.
  3. Open http://localhost:3000/admin/setup and create the first admin.
npx create-nextly-app@alpha my-app -y && cd my-app && npm run dev
pnpm create nextly-app@alpha my-app -y && cd my-app && pnpm dev
yarn create nextly-app@alpha my-app -y && cd my-app && yarn dev
bun create nextly-app@alpha my-app -y && cd my-app && bun run dev

-y takes the defaults: the blank template, SQLite, local storage and the Nextly agent skills. To choose instead, see Choose instead of the defaults. Each step below says what you should see before you move on.

Create the project

When the project is ready, the CLI ends with its next steps. With npm, create-nextly-app 0.0.2-alpha.69 prints:

You should see

◇  Next steps ──────────────────────────────────────────────────────────────╮
│                                                                           │
│    cd my-app                                                              │
│    npm run dev                                                            │
│                                                                           │
│    Your database (SQLite) is stored at ./data/nextly.db                   │
│    npm run dev will create system tables on first run.                    │
│    Visit http://localhost:3000/admin/setup to create your admin account.  │
│                                                                           │
│    Storage: Using local disk (./.nextly/uploads) by default.              │
│    See docs to configure S3, Vercel Blob, or other providers.             │
│                                                                           │
├───────────────────────────────────────────────────────────────────────────╯
│
└  Docs: https://nextlyhq.com/docs

Above it, the CLI lists what it wrote: the skills for coding agents in .agents/skills/ and .claude/skills/, and a .env, which it adds to .gitignore. Every new Nextly project also ships with an AGENTS.md and CLAUDE.md written for coding agents.

Start the dev server

npm run dev starts Next.js. The first run creates the system tables.

You should see

Next.js reports Local: http://localhost:3000, and on the first run Nextly logs [nextly] Setting up database schema.... http://localhost:3000 shows "Welcome to your new Nextly project."

Create the first admin

Open http://localhost:3000/admin/setup and enter your name, an email and a password. Until an admin exists, /admin takes you to this page. The first account gets the Super Admin role, with every permission.

You should see

The admin's dashboard at /admin, signed in as the account you just created. The admin is at /admin from then on.

In production

In production, the web setup asks for a one-time setup token, printed in the server log, before it creates the first admin. Development setup asks for none.

Choose instead of the defaults

Leave off -y and the CLI asks. Each question also has a flag, and a flag answers its question even with -y, which then takes the defaults for the rest.

QuestionChoicesFlag
What should your project be called?The folder to create. . uses the current folder.The first argument, my-app
Pick a starting templateBlank project (an empty config), Blog (posts, authors, categories and public pages) or Plugin (a reusable Nextly plugin with a /dev playground)-t blank, -t blog, -t plugin
How would you like to define your content schema?Code-first or the Visual Schema Builder, for templates that offer both-a code-first, -a visual
Which database will you use?SQLite, PostgreSQL or MySQL. PostgreSQL and MySQL need a running server and its connection string, which the CLI asks for next; with -y it writes a placeholder to .env for you to replace.-d sqlite, -d postgresql, -d mysql
Add Nextly skills for coding agents (Claude Code, Codex, Cursor)?Yes by default. A plugin project is not asked and gets none.--no-skills leaves them out

For example, npx create-nextly-app@alpha my-blog -t blog -y creates a blog on SQLite. See Templates for what each template ships with.

To add Nextly to an app you already have, run the CLI inside it instead: see Add to an existing Next.js project.

Requirements

RequirementVersion
Node.js22.12+ or 24+ (Node 24 LTS recommended)
Next.jsThe supported range in Requirements, with the App Router
React and React DOMThe supported range in Requirements
DatabasePostgreSQL 15 or later, MySQL 8 or later, or SQLite 3.38 or later

SQLite is the default, so the quick start needs no database server. SQLite is great on your own machine and on a single server; on Vercel, choose PostgreSQL. See Database before you deploy.

Next steps