Quick Start
Create Users
Create standard or admin users from the CLI after quick start setup.
Docs are in beta — content is improving rapidly. Found something missing? Open an issue on GitHub or reach out on Twitter (X).
Create Users From CLI
After pnpm setup is complete, use the CLI to create a user record directly in the database.
pnpm setup:user -- --email user@example.comIf --password is not provided, a secure password is generated and printed once.
Examples
Create a standard user.
pnpm setup:user -- --email user@example.com --role userCreate an admin user.
pnpm setup:user -- --email admin@example.com --role adminCreate a user with an explicit password.
pnpm setup:user -- --email user2@example.com --password "StrongPass#2026"Set a custom display name.
pnpm setup:user -- --email jane@example.com --name "Jane Doe" --role adminSkip prompts in scripts or CI.
pnpm setup:user -- --yes --email seeded@example.com --role userShow all command options.
pnpm setup:user -- --helpFlags
| Flag | Required | Description |
|---|---|---|
--email | Yes | Email address for the new user |
--password | No | Password to set. If omitted, a secure password is generated |
--name | No | Display name. Defaults to a name derived from the email local-part |
--role | No | user or admin. Defaults to user |
--yes | No | Skip interactive prompting when possible |
Notes
- Supported roles are
userandadmin - The command reads
.env.localfirst, then.env.sampleas fallback - The command requires the auth tables to already exist in Postgres