CLI tools for Kitium Auth
npm install @kitiumai/auth-cliCLI for scaffolding and managing Kitium Auth projects.
```
npm install -g @kitium/auth-clior use npx
npx @kitium/auth-cli --help
- init: Initialize a new project
- Options: --dir , --template , --skip-installkitium-auth init --dir my-app --template nextjs
- Example:
- dev: Start local development dashboard
- Options: --port <3001>, --host kitium-auth dev --port 3001
- Example:
- add-provider: Add an authentication provider
- Options: --provider kitium-auth add-provider --provider google --client-id ... --client-secret ... --redirect-uri http://localhost:3000/api/auth/callback/google
- Example:
- migrate: Run database migrations
- Options: --direction kitium-auth migrate --direction up
- Example:
The CLI scaffolds configs and provider setup that work with @kitium/auth and the adapters (@kitium/auth-postgres, @kitium/auth-redis, @kitium/auth-stripe).
```
kitium-auth --help
MIT