@kitiumai/auth-cli
v2.0.0
Published
CLI tools for Kitium Auth
Maintainers
Readme
@kitium/auth-cli (CLI)
CLI for scaffolding and managing Kitium Auth projects.
Install
npm install -g @kitium/auth-cli
# or use npx
npx @kitium/auth-cli --helpCommands
init: Initialize a new project
- Options:
--dir <directory>,--template <nextjs|...>,--skip-install - Example:
kitium-auth init --dir my-app --template nextjs
- Options:
dev: Start local development dashboard
- Options:
--port <3001>,--host <localhost> - Example:
kitium-auth dev --port 3001
- Options:
add-provider: Add an authentication provider
- Options:
--provider <google|github|microsoft|email> --client-id <id> --client-secret <secret> --redirect-uri <url> - Example:
kitium-auth add-provider --provider google --client-id ... --client-secret ... --redirect-uri http://localhost:3000/api/auth/callback/google
- Options:
migrate: Run database migrations
- Options:
--direction <up|down> --target <version> - Example:
kitium-auth migrate --direction up
- Options:
Using with the core package
The CLI scaffolds configs and provider setup that work with @kitium/auth and the adapters (@kitium/auth-postgres, @kitium/auth-redis, @kitium/auth-stripe).
Help
kitium-auth --helpLicense
MIT
