aim_cli 0.0.2
aim_cli: ^0.0.2 copied to clipboard
Command-line tools for the Aim framework with project scaffolding, development server, and hot reload support.
0.0.2 #
Production build and Docker support.
Features #
- Production Build:
aim buildcommand to compile server for production deployment- Native executable compilation using
dart compile exe - Automatic entry point detection from
pubspec.yaml - Configurable output path with
--outputoption - Default output:
build/server
- Docker Support:
- Dockerfile template with multi-stage build
- Optimized for minimal image size using
scratchbase .dockerignoretemplate to exclude unnecessary files- Production-ready Docker configuration
- Enhanced Project Templates:
- Updated README with production deployment instructions
- Environment variable usage examples for native and Docker deployments
- Security best practices for environment variable handling
- Simplified
pubspec.yamlwithaim_server: ^0.0.5
Commands #
aim build [options]- Compile server for production deployment-e, --entry- Specify server entry point-o, --output- Specify output file path
Security #
- Environment variables are not embedded at compile time
- Runtime environment variable support for secure configuration management
- Compatible with Docker secrets and Kubernetes ConfigMaps
0.0.1 #
Initial release of aim_cli - Command-line tools for the Aim web framework.
Features #
- Project Scaffolding:
aim createcommand to generate new Aim projects- Pre-configured project structure with best practices
- Automatic generation of example routes and middleware
- Development Server:
aim devcommand to start development server- Hot reload support with automatic server restart on file changes
- Configurable entry point
- Environment variable support from
pubspec.yaml
- File Watching:
- Monitors
.dartfiles andpubspec.yamlfor changes - Debounced file watching (500ms) to avoid excessive restarts
- Configurable watch directories
- Monitors
- Process Management:
- Graceful shutdown with SIGTERM
- Force kill fallback with SIGKILL
- Clean process lifecycle management
- Project Validation:
- Project name validation (lowercase, alphanumeric, underscores)
- Reserved word checking
- Directory existence validation
Supported #
- Dart SDK:
^3.10.0 - Platforms: All platforms supported by Dart (Linux, macOS, Windows)
- Installation:
dart install aim_cli(Dart 3.10+)
Commands #
aim create <project_name>- Create a new Aim projectaim dev [options]- Start development server with hot reload
What's Included #
- Project templates for quick start
- Hot reload infrastructure
- File watching utilities
- Environment variable expansion
- Process management utilities