## `dinvolt create`

Start the interactive wizard:

```sh npm
npx dinvolt create
```

```sh bun
bunx dinvolt create
```

```sh pnpm
pnpm dlx dinvolt create
```

```sh yarn
yarn dlx dinvolt create
```

1. Enter a project name and destination.
2. Choose **Public website only**, **Public website + admin panel**, or **Admin panel only**.
3. Accept the defaults or customize your tools and UI themes.
4. For projects with an admin panel, choose a database. Connect it now or later with `setup`.

The destination must be new or empty, apart from `.git` and `.DS_Store`. Dinvolt installs dependencies, checks the generated code and initializes Git when needed.

Your project is saved without a commit. Follow the final terminal instructions to start development.

## Non-interactive creation

Pass `--no-input` to skip prompts, or `--json` to also return a structured result. Both require a name and project type.

Create a public website:

```sh npm
npx dinvolt create --name my-site --location new \
  --project-type public --package-manager npm --json
```

```sh bun
bunx dinvolt create --name my-site --location new \
  --project-type public --package-manager bun --json
```

```sh pnpm
pnpm dlx dinvolt create --name my-site --location new \
  --project-type public --package-manager pnpm --json
```

```sh yarn
yarn dlx dinvolt create --name my-site --location new \
  --project-type public --package-manager yarn --json
```

Create a public website with a Turso-backed admin panel and connect the database later:

```sh npm
npx dinvolt create --name my-app --location new \
  --project-type public-admin --package-manager npm \
  --database turso --no-input
```

```sh bun
bunx dinvolt create --name my-app --location new \
  --project-type public-admin --package-manager bun \
  --database turso --no-input
```

```sh pnpm
pnpm dlx dinvolt create --name my-app --location new \
  --project-type public-admin --package-manager pnpm \
  --database turso --no-input
```

```sh yarn
yarn dlx dinvolt create --name my-app --location new \
  --project-type public-admin --package-manager yarn \
  --database turso --no-input
```

Create a standalone admin app with login at `/` and connect the database later:

```sh npm
npx dinvolt create --name my-internal-app --location new \
  --project-type admin --package-manager npm \
  --database turso --no-input
```

```sh bun
bunx dinvolt create --name my-internal-app --location new \
  --project-type admin --package-manager bun \
  --database turso --no-input
```

```sh pnpm
pnpm dlx dinvolt create --name my-internal-app --location new \
  --project-type admin --package-manager pnpm \
  --database turso --no-input
```

```sh yarn
yarn dlx dinvolt create --name my-internal-app --location new \
  --project-type admin --package-manager yarn \
  --database turso --no-input
```

For a standalone app, use `--admin-preset` to customize its single shadcn/ui profile in `src/components/ui`; `--public-preset` is not applicable.

### Project options

| Option | Values / default |
| --- | --- |
| `--name <name>` | Lowercase package name. Required without prompts. |
| `--location <location>` | `current` (default) or `new`. |
| `--project-type <type>` | `public`, `public-admin`, or `admin`. Required without prompts. |
| `--package-manager <manager>` | `bun`, `npm`, `pnpm`, `yarn`, `deno`, `nub`, `aube`. Detected in the destination; otherwise Bun. |
| `--linter <linter>` | `oxlint` (default), `biome`, `eslint`. |
| `--editors <editors>` | Comma-separated `universal`, `zed`, or `none`. Default: `universal`. |
| `--public-preset <code>` | Public shadcn preset. Default: `b1aIcEacC`. |
| `--admin-preset <code>` | Admin shadcn preset. Default: `bIkeymG`. |
| `--skills` / `--no-skills` | Install recommended agent skills (default), or skip them. |

### Database options

These options require the `public-admin` or `admin` project type. Create the database service with your provider first.

| Option | Values / default |
| --- | --- |
| `--database <provider>` | `turso` (default) or `planetscale-postgres`. |
| `--database-environments <environments>` | Comma-separated `development`, `staging`, `production`. Default: `development`. |
| `--connect <environments>` | Connect and initialize selected environments. Omit to connect later. |
| `--credentials-file <path>` | Private JSON credentials. Required with `--connect`. |

For administrator options and a complete example, see [Credentials and administrator output](/reference/create#credentials-and-administrator-output).

## Credentials and administrator output

Use a private JSON file to supply database credentials to `create` or `setup`. Keep it outside Git and pass its path to the command.

Example Turso credentials file:

```json
{
  "TURSO_DATABASE_URL": "<development-url>",
  "TURSO_AUTH_TOKEN": "<development-token>"
}
```

Staging and production keys need their environment suffix:

```json
{
  "TURSO_DATABASE_URL_PRODUCTION": "<production-url>",
  "TURSO_AUTH_TOKEN_PRODUCTION": "<production-token>"
}
```

PlanetScale uses `DATABASE_URL` and `DATABASE_URL_DIRECT`, with the same suffixes. Include every required key for each environment you select.

### Create the first administrator

For example, save your development credentials as `../database-credentials.json`, then run:

```sh npm
npx dinvolt create --name my-app --location new \
  --project-type public-admin --package-manager npm \
  --connect development --credentials-file ../database-credentials.json \
  --admin-environments development --admin-name "Project Admin" \
  --admin-email admin@example.com --admin-output ../new-admin.jsonl --json
```

```sh bun
bunx dinvolt create --name my-app --location new \
  --project-type public-admin --package-manager bun \
  --connect development --credentials-file ../database-credentials.json \
  --admin-environments development --admin-name "Project Admin" \
  --admin-email admin@example.com --admin-output ../new-admin.jsonl --json
```

```sh pnpm
pnpm dlx dinvolt create --name my-app --location new \
  --project-type public-admin --package-manager pnpm \
  --connect development --credentials-file ../database-credentials.json \
  --admin-environments development --admin-name "Project Admin" \
  --admin-email admin@example.com --admin-output ../new-admin.jsonl --json
```

```sh yarn
yarn dlx dinvolt create --name my-app --location new \
  --project-type public-admin --package-manager yarn \
  --connect development --credentials-file ../database-credentials.json \
  --admin-environments development --admin-name "Project Admin" \
  --admin-email admin@example.com --admin-output ../new-admin.jsonl --json
```

| Option | Purpose |
| --- | --- |
| `--admin-environments <environments>` | Create an administrator in selected connected environments. |
| `--admin-name <name>` | Administrator name. Required for creation. |
| `--admin-email <email>` | Administrator email. Required for creation. |
| `--admin-output <path>` | New private password file outside the project. Required for creation. |

The output file must not already exist. It contains one JSON line per environment, with `environment`, `email` and `password`; passwords stay out of terminal output.

Existing administrators are preserved. Development login defaults are also saved in the project's ignored environment file.


