Production-ready CLI for the Azu Toolkit.
A Rails-like command-line interface for Crystal that provides database management, code generation, hot reloading, and comprehensive development tools.
- Rails-Like Workflows - Complete database management, generators, and development tools
- Hot Reloading - Development server with automatic recompilation
- 25+ Commands - Comprehensive CLI for all development tasks
- 12+ Generators - Scaffold models, endpoints, services, jobs, and more
- CQL ORM Integration - Full support for CQL database operations
- JoobQ Integration - Background job management and monitoring
- Authentication - Complete auth system generation (JWT/Session)
git clone https://github.com/azutoolkit/azu_cli
cd azu_cli
shards install
shards build
sudo make install# Create a new project
azu new my_app --database postgres
# Navigate and setup
cd my_app
azu db:create
azu db:migrate
# Generate a resource
azu generate scaffold Post title:string content:text published:bool
# Run migration and start server
azu db:migrate
azu serveVisit http://localhost:4000/posts to see your application.
| Category | Commands |
|---|---|
| Project | new, init, generate |
| Database | db:create, db:migrate, db:rollback, db:seed |
| Development | serve, test |
| Jobs | jobs:worker, jobs:status, jobs:ui |
| Session | session:setup, session:clear |
azu generate model User name:string email:string
azu generate endpoint api/v1/users --api
azu generate scaffold Product name:string price:float64
azu generate auth --strategy jwt
azu generate job SendEmail user_id:int64- Fork it (https://github.com/azutoolkit/azu_cli/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
- Elias J. Perez - creator and maintainer