Skip to main content

Non-interactive generation

Use --yes or --non-interactive for deterministic scripts and CI. Security-relevant choices must be explicit. Invalid combinations fail before the destination directory is created.

# Password API with PostgreSQL
npx create-authenik8-app my-api --yes --preset auth --database postgresql --no-git

# OAuth API with only GitHub, generated without installing
npx create-authenik8-app my-api --yes --preset auth-oauth --database sqlite --oauth github --no-git --no-install

# Fullstack with password auth and no OAuth providers
npx create-authenik8-app my-app --yes --preset fullstack --no-oauth --git

Required choices

  • base requires --prisma and a database, or --no-prisma.
  • auth requires --database sqlite or --database postgresql.
  • auth-oauth requires a database and --oauth google, --oauth github, or --oauth google,github.
  • fullstack requires --oauth or --no-oauth. Its Node.js, npm workspace, Prisma, and PostgreSQL choices are fixed.
  • --runtime node|bun applies only with --production-ready on an Express preset.
  • Git initialization defaults to off unless --git is supplied.

Non-interactive generation cannot be combined with --resume.