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

Templates

Templates

Starter projects you can scaffold with create-nextly-app.

Templates are starter projects you scaffold via create-nextly-app. The CLI prompts you to pick one during setup, or you can pass --template <name> for a non-interactive scaffold. Each template ships a working nextly.config.ts, the standard project layout, and (for non-blank templates) example collections, singles, and frontend pages.

Scaffold a project

pnpm create nextly-app my-app
npx create-nextly-app@latest my-app
yarn create nextly-app my-app
bun create nextly-app my-app

Without --template, the CLI prompts you to pick one. To skip the prompt, pass --template <name>:

pnpm create nextly-app my-app --template blank
pnpm create nextly-app my-app --template blog

Available templates

  • Blank -- Empty config, define your own schemas. Good when you want to start from scratch.
  • Blog -- Complete blog with posts, categories, tags, frontend pages, and demo content. Good when you want a working starter to learn from.

More templates are planned for the beta release.

Next Steps

  • Installation -- Full installation walkthrough including database and storage setup.
  • Quick Start -- Build a blog from scratch in five minutes.
  • Configuration -- Configure collections, singles, plugins, and more.

On this page

Was this page helpful?