agentuity-cli-project-auth-init
Set up Agentuity Auth for your project. Requires authentication. Use for managing authentication credentials
When & Why to Use This Skill
The agentuity-cli-project-auth-init skill automates the complex process of setting up Agentuity Authentication for software projects. It streamlines the initialization of authentication credentials, handles database migrations, and generates essential configuration files like auth.ts, providing developers with a secure and standardized foundation for user management.
Use Cases
- Project Bootstrapping: Rapidly initialize a secure authentication layer in new projects using the Agentuity CLI to save development time.
- Automated Database Setup: Seamlessly integrate authentication schemas into your database by automatically running migrations during the initialization process.
- Credential Configuration: Efficiently manage and generate authentication credentials and configuration files, ensuring consistent security settings across different environments.
| name | agentuity-cli-project-auth-init |
|---|---|
| description | Set up Agentuity Auth for your project. Requires authentication. Use for managing authentication credentials |
| version | "0.0.110" |
| license | Apache-2.0 |
| allowed-tools | "Bash(agentuity:*)" |
| command | "agentuity project auth init" |
| tags | "mutating slow requires-auth" |
Project Auth Init
Set up Agentuity Auth for your project
Prerequisites
- Authenticated with
agentuity auth login - Organization context required (
--org-idor default org)
Usage
agentuity project auth init [options]
Options
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
--skipMigrations |
boolean | Yes | - | Skip running database migrations (run agentuity project auth generate later) |
Examples
Set up Agentuity Auth with database selection:
bunx @agentuity/cli project auth init
Output
Returns JSON object:
{
"success": "boolean",
"database": "string",
"authFileCreated": "boolean",
"migrationsRun": "boolean"
}
| Field | Type | Description |
|---|---|---|
success |
boolean | Whether setup succeeded |
database |
string | Database name used |
authFileCreated |
boolean | Whether auth.ts was created |
migrationsRun |
boolean | Whether migrations were run |