aim_cli
Development tools for the Aim ecosystem.
Features
- Project Scaffolding - Create new projects with
aim create - Development Server - Hot reload with
aim dev - Production Build - Compile to native executable with
aim build - Environment Configuration - Manage env variables via
pubspec.yaml - Edge Targets -
aim.target: workersbuilds for Cloudflare workerd withaim_workers;aim.target: supabasebuilds for Supabase Edge Functions withaim_deno. Both compile to WebAssembly withaim build. See Configuration.
Quick Start
Installation
bash
dart install aim_cliCreate a Project
bash
aim create my_app
cd my_appStart Development Server
bash
aim devOutput:
🚀 Starting development server...
📁 Watching: lib, bin
🔥 Hot reload enabled
Server running on http://localhost:8080Build for Production
bash
aim buildOutput:
🔨 Compiling for production...
📁 Entry point: bin/server.dart
📦 Output: build/server
✅ Build successful!Commands
| Command | Description |
|---|---|
aim create <name> | Create a new project |
aim dev | Start dev server with hot reload |
aim build | Compile for production |
aim db:generate | Generate a migration from schema changes |
aim db:migrate | Apply pending migrations |
aim db:rollback | Roll back applied migrations |
aim db:status | Show migration status |
aim db:reset | Drop, recreate, and replay all migrations |
See Commands for options and examples, and Migrations for the db:* workflow.
Configuration
Configure via pubspec.yaml:
yaml
name: my_app
dependencies:
aim_server: ^0.4.0
aim:
entry: bin/server.dart
env:
PORT: "8080"
DATABASE_URL: ${DATABASE_URL}Next Steps
- Installation - Detailed setup
- Commands - All CLI commands
- Configuration - Environment variables
