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.
| Flag | What it does |
|---|---|
| [project] | Directory name for the new app. Alone it prefills the wizard's name question |
| -y, --yes | Skip 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-install | Do not install dependencies or run post-install commands |
| --verbose | Show the installer output |
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.
| Flag | What it does |
|---|---|
| -y, --yes | Skip 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 |
| --force | Reinstall even if it is already installed, overwriting its files |
| --skip-install | Do not install dependencies or run post-install commands |
| --verbose | Show the installer output |
| Module | Name for add and sync |
|---|---|
| Database | db |
| emails | |
| Auth | auth |
| Payments | payments |
| Storage | storage |
| AI | ai |
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.
| Flag | What it does |
|---|---|
| --variant <variant> | Variant to install |
| --provider <provider> | Provider answer used to pick a variant |
| --skip-install | Do 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.
| Flag | What it does |
|---|---|
| --features | List only features |
| --blocks | List only blocks |
| --components | List only components |
| --installed | List 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.
| Flag | What it does |
|---|---|
| --local | Read 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.