Skip to content

Create AuthHero CLI Commands ​

Base command ​

bash
npx create-authhero [project-name] [options]

Options ​

OptionDescription
-t, --template <type>local, cloudflare, cloudflare-wfp-dispatcher, cloudflare-wfp-tenant, cloudflare-control-plane, aws-sst or proxy. See Templates.
--package-manager <pm>npm, yarn, pnpm or bun. Default: pnpm.
--multi-tenantEnable multi-tenant mode (local, cloudflare, aws-sst).
--admin-uiServe the admin dashboard at /admin (local and cloudflare).
--skip-installDon't install dependencies.
--skip-migrateDon't run the database migrations.
--skip-startDon't start the development server.
--github-ciAdd GitHub CI workflows with semantic versioning (cloudflare).
--conformanceAdd test clients for the OpenID Foundation conformance suite.
--conformance-alias <alias>Alias for the conformance suite. Default: authhero-local.
--workspaceUse workspace:* dependencies, for developing inside the AuthHero monorepo.
-y, --yesSkip the prompts and use the defaults or the options given.
-V, --versionPrint the CLI version.
-h, --helpShow help.

With --yes, the project name defaults to auth-server, multi-tenant mode is off and the admin UI is on. Pass --template as well — without it the CLI still asks for the setup type.

Examples ​

Scaffold a local SQLite server without prompts, installing with npm (without --package-manager, --yes uses pnpm):

bash
npx create-authhero my-app --template local --package-manager npm --yes

Scaffold a multi-tenant Cloudflare Worker with the admin UI, without installing:

bash
npx create-authhero my-worker --template cloudflare --multi-tenant --admin-ui --skip-install --yes

Scaffold the Workers for Platforms control plane with npm:

bash
npx create-authhero control-plane --template cloudflare-control-plane --package-manager npm --yes

Dual-licensed: AGPL-3.0-only or commercial license.