@faire-auth/cli
v1.0.0
Published
The CLI for Faire Auth
Maintainers
Readme
Faire Auth CLI
Faire Auth comes with a built-in CLI to help you manage the database schema needed for both core functionality and plugins.
Init
The CLI includes an init command to add Faire Auth to your project.
npx @faire-auth/cli@latest initGenerate
The generate command creates the schema required by Faire Auth. If you're using a database adapter like Prisma or Drizzle, this command will generate the right schema for your ORM. If you're using the built-in Kysely adapter, it will generate an SQL file you can run directly on your database.
npx @faire-auth/cli@latest generateMigrate
The migrate command applies the Faire Auth schema directly to your database. This is available if you’re using the built-in Kysely adapter. For other adapters, you'll need to apply the schema using your ORM's migration tool.
npx @faire-auth/cli@latest migrateSecret
The CLI also provides a way to generate a secret key for your Faire Auth instance.
npx @faire-auth/cli@latest secretLicense
MIT
