Skip to content
Docs menuCLI reference

CLI reference

Every command and flag in the Tailar CLI.

Last updated November 1, 2026

init

Creates a new Next.js app from a preset, a config ID from the builder, or your answers in the terminal. Inside an existing Next.js project it initialises Tailar in place.

npx tailar@latest init [project] [options]
FlagWhat it does
[project]Directory name for the new app. Alone it prefills the wizard's name question
-y, --yesSkip prompts. In an empty directory this scaffolds without the wizard
--name <project>Project name; also skips the wizard
--preset <id>saas, saas-ai, marketing or custom
--modules <list>Comma-separated: database,email,auth,payments,storage,ai. Replaces the preset's modules
--db <provider>postgres, mysql or mongodb
--email <provider>resend, postmark or sendgrid
--auth <structure>user-based or organization-based
--storage-provider <p>r2, s3 or gcs (adds the storage module)
--billing-provider <p>stripe, lemonsqueezy or paddle (adds the payments module)
--look <look>Look of the marketing pages: graphite
--pages <list>Marketing pages: landing,product,pricing,about,contact,blog,legal, or none
--recipe <id>Start from a config ID copied from the builder. The ID holds the choices, so nothing is downloaded. Needs a login and the licence. Cannot be combined with the preset, module, provider and page flags
--recipe-file <path>The same JSON as --recipe, read from disk
--skip-installDo not install dependencies or run post-install commands
--verboseShow the installer output
npx tailar@latest init my-app --recipe saas-ai-10hhc
npx tailar@latest init my-app -y --preset saas-ai --storage-provider s3

The ID holds the preset, modules, providers and marketing pages, not the project name, so the CLI asks for one when you give none. A mistyped or outdated ID fails with a clear message. The ID is saved as recipe in .tailar.json.

add

Adds a module, block or component to an existing project and updates .tailar.json. Missing dependencies are installed with it: tailar add storage also pulls in the database, email and auth.

npx tailar@latest add <name> [options]
FlagWhat it does
-y, --yesSkip prompts and use defaults
--provider <provider>Provider answer: a database, email, billing or storage provider
--variant <variant>A registry variant: for example organization-based, or mongo for the database
--forceReinstall even if it is already installed, overwriting its files
--skip-installDo not install dependencies or run post-install commands
--verboseShow the installer output
ModuleName for add and sync
Databasedb
Emailemails
Authauth
Paymentspayments
Storagestorage
AIai
npx tailar@latest add payments --provider paddle

sync

Copies one entry from the registry into the project again. It overwrites that entry's files, leaves .env alone, does not run Prisma, and runs your package manager only when package.json changed. Files that depend on what is installed (for example the AI store, which depends on the database and auth) are chosen again, so run tailar sync ai after adding the database, auth or storage.

npx tailar@latest sync <name> [options]
FlagWhat it does
--variant <variant>Variant to install
--provider <provider>Provider answer used to pick a variant
--skip-installDo not run the package manager even if dependencies changed

list

Lists the registry: features, blocks and components, with what is installed in the current project. It needs no login.

npx tailar@latest list [options]
FlagWhat it does
--featuresList only features
--blocksList only blocks
--componentsList only components
--installedList only what is installed

Login and licence

There is no separate login command. init, add, sync and --recipe need a logged-in licence holder; the CLI starts a device-code login when it has no valid token. It prints a verification link (https://tailar.dev/cli?code=...), opens your browser and waits until you approve. The token is kept in ~/.tailar/credentials.json.

Without a licence the CLI stops and points you to the builder. tailar list stays public.

Development flags

For people working on the registry itself, not for generated apps.

FlagWhat it does
--localRead the registry and files from disk and skip login and licence checks
--components-path <path>Path to a local components checkout (implies --local)

The same checkout powers tailar playground, which creates a long-lived local app for trying registry changes.