CLI Reference
Complete reference for the Quickback CLI. Create, compile, and manage your backend projects with commands for development and deployment.
The Quickback CLI is the fastest way to create, compile, and manage your backend projects.
Installation
npm install -g @kardoe/quickbackCommands
Create a Project
quickback create <template> <name>Templates:
cloudflare- Cloudflare Workers + D1 + Better Auth (free)bun- Bun + SQLite + Better Auth (free)turso- Turso/LibSQL + Better Auth (pro)
Example:
quickback create cloudflare my-appThis scaffolds a complete project with:
quickback.config.ts- Project configurationdefinitions/features/- Your table definitions- Example todos feature with full security configuration
Compile Definitions
quickback compileReads your definitions and generates:
- Database migrations (Drizzle)
- API route handlers (Hono)
- TypeScript client SDK
- OpenAPI specification
Run this after making changes to your definitions.
Initialize Structure
quickback initCreates the Quickback folder structure in an existing project:
quickback/
definitions/
features/
auth/
quickback.config.tsView Documentation
quickback docs # List available topics
quickback docs <topic> # Show documentation for a topicAvailable topics:
firewall- Data isolation layeraccess- Role-based permissionsguards- Field protectionmasking- PII redactionactions- Custom business logicapi- CRUD endpoints referenceconfig- Configuration referencefeatures- Schema definitions
Documentation is bundled with the CLI and works offline.
Manage Claude Code Skill
quickback claude install # Interactive install
quickback claude install --global # Install to ~/.claude/skills/
quickback claude install --local # Install to ./quickback/.claude/
quickback claude update # Update to latest version
quickback claude remove # Remove installed skill
quickback claude status # Check installation statusThe Quickback skill for Claude Code provides AI assistance for:
- Creating resource definitions with proper security layers
- Configuring Firewall, Access, Guards, and Masking
- Debugging configuration issues
- Understanding security patterns
Authentication
Login
quickback loginUses the OAuth 2.0 Device Authorization Grant (RFC 8628) to authenticate securely without exposing tokens in URLs.
How it works:
- The CLI requests a one-time device code from the Quickback API.
- A code is displayed in your terminal (e.g.,
AUL8-H93S). - Your browser opens to the Quickback account page where you approve the code.
- The CLI detects approval and exchanges it for a session token.
- If you belong to one organization, it's auto-selected. If you have multiple, you choose one.
- Credentials are stored locally.
$ quickback login
🔐 Quickback Login
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Your code: AUL8-H93S
Visit: https://account.quickback.dev/cli/authorize
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Login successful!
Welcome, Paul Stenhouse!
Using organization: Acme
✓ Active organization: AcmeThis flow works in headless environments (SSH, containers, WSL) since it doesn't require a localhost callback.
Logout
quickback logoutClears stored credentials from ~/.quickback/credentials.json.
Check Auth Status
quickback whoamiShows the currently authenticated user, organization, and token expiration.
Credential Storage
Credentials are stored at ~/.quickback/credentials.json:
{
"token": "...",
"user": {
"id": "...",
"email": "paul@example.com",
"name": "Paul Stenhouse",
"tier": "free"
},
"expiresAt": "2026-02-16T01:42:21.519Z",
"organization": {
"id": "...",
"name": "Acme",
"slug": "acme"
}
}Sessions expire after 7 days. Run quickback login again to re-authenticate.
Organizations
After login, the CLI auto-selects your organization:
- One organization - automatically set as active.
- Multiple organizations - you're prompted to choose one.
The active organization is stored in your credentials and sent with compile requests, so the compiler knows which org context to use.
Quick Start
# 1. Create a new project
quickback create cloudflare my-app
cd my-app
# 2. Define your tables in definitions/features/
# (Already has example todos feature)
# 3. Compile
quickback compile
# 4. Run
npm run devOptions
| Flag | Description |
|---|---|
-v, --version | Show version number |
-h, --help | Show help message |
Environment Variables
| Variable | Description |
|---|---|
QUICKBACK_API_KEY | API key for authentication (alternative to quickback login) |
QUICKBACK_API_URL | Override compiler API URL |
API Key Authentication
Use an API key instead of interactive login. Useful for CI/CD pipelines and automated workflows:
# Pass API key for a single command
QUICKBACK_API_KEY=your_api_key quickback compile
# Or export for the session
export QUICKBACK_API_KEY=your_api_key
quickback compileThe API key takes precedence over stored credentials from quickback login.
You can create API keys from your Quickback account. Each key is scoped to your organization.
Custom Compiler URL
Point the CLI to a different compiler (local or custom):
# Use a local compiler
QUICKBACK_API_URL=http://localhost:3020 quickback compile
# Or export for the session
export QUICKBACK_API_URL=http://localhost:3020
quickback compileSee Local Compiler for running the compiler locally with Docker.
Troubleshooting
"Command not found: quickback"
Make sure the CLI is installed globally:
npm install -g @kardoe/quickbackOr use npx:
npx @kardoe/quickback create cloudflare my-appCompile errors
- Check your
quickback.config.tsexists and is valid - Ensure all tables in
definitions/features/have valid exports - Run
quickback compilewith--verbosefor detailed output
Authentication issues
Clear credentials and re-authenticate:
quickback logout
quickback login"Could not load organizations"
This can happen if your session token expired or if the API is temporarily unavailable. Re-login:
quickback logout
quickback loginCloud Compiler
The hosted Quickback compiler turns your definitions into a complete backend. Learn about architecture, authentication, and how the CLI communicates with the cloud.
Authentication
How CLI authentication works. Interactive login with device auth, API keys for CI/CD, and credential storage.