Command Line Tools
Wheels CLI Documentation
Wheels CLI Documentation
Section titled “Wheels CLI Documentation”Welcome to the comprehensive documentation for the Wheels CLI - a powerful command-line interface for the Wheels framework.
What is Wheels CLI?
Section titled “What is Wheels CLI?”Wheels CLI is a CommandBox module that provides a comprehensive set of tools for developing Wheels applications. It offers:
- Code Generation - Quickly scaffold models, controllers, views, and complete CRUD operations
- Database Migrations - Manage database schema changes with version control
- Testing Tools - Run tests, generate coverage reports, and use watch mode
- Development Tools - File watching, automatic reloading, and development servers
- Code Analysis - Security scanning, performance analysis, and code quality checks
- Plugin Management - Install and manage Wheels plugins
- Environment Management - Switch between development, testing, and production
Documentation Structure
Section titled “Documentation Structure”Complete reference for all CLI commands organized by category:
- Core Commands - Essential commands like init, reload.
- Code Generation - Generate applications, models, controllers, views
- Database Commands - Complete database management and migrations
- Testing Commands - Run tests and generate coverage
- Configuration - Manage application settings
- And more…
Get up and running with Wheels CLI in minutes. Learn how to:
- Install Wheels CLI
- Create your first application
- Generate CRUD scaffolding
- Run tests and migrations
Guides
Section titled “Guides”Development Guides
Section titled “Development Guides”- Service Architecture - Understand the CLI’s architecture
- Creating Custom Commands - Extend the CLI with your own commands
- Template System - Customize code generation templates
- Testing Guide - Write and run tests effectively
Best Practices
Section titled “Best Practices”- Migration Guide - Database migration best practices
- Security Guide - Security scanning and hardening
- Performance Guide - Optimization techniques
Reference
Section titled “Reference”- Configuration Options - All available configuration settings
- Template Variables - Variables available in templates
- Exit Codes - Understanding command exit codes
- Environment Variables - Environment configuration
Key Features
Section titled “Key Features”Code Generation
Section titled “Code Generation”Generate complete applications or individual components:
# Create new applicationwheels new blog
# Generate complete CRUD scaffoldingwheels scaffold name=post properties=title:string,content:text,published:boolean
# Generate individual componentswheels generate model userwheels generate controller users --restwheels generate view users indexDatabase Management
Section titled “Database Management”Complete database lifecycle management:
# Database operationswheels db create # Create databasewheels db setup # Create + migrate + seedwheels db reset # Drop + recreate + migrate + seedwheels db shell # Interactive database shellwheels db dump # Backup databasewheels db restore backup.sql # Restore from backup
# Migrationswheels dbmigrate create table postswheels dbmigrate latestwheels db status # Check migration statuswheels db rollback # Rollback migrationsTesting
Section titled “Testing”Comprehensive testing support:
# Run all testswheels test run
# Advanced testing with TestBox CLIwheels test:all # Run all testswheels test:unit # Run unit tests onlywheels test:integration # Run integration tests onlywheels test:watch # Watch modewheels test:coverage # Generate coverage reportsDevelopment Tools
Section titled “Development Tools”Enhance your development workflow:
# Reload applicationwheels reload development
# Analyze codewheels analyze codewheels security scanGetting Started
Section titled “Getting Started”-
Install CommandBox (if not already installed):
Terminal window # macOS/Linuxcurl -fsSl https://downloads.ortussolutions.com/debs/gpg | sudo apt-key add -orbrew install commandbox# Windowschoco install commandbox -
Install Wheels CLI:
Terminal window box install wheels-cli -
Create Your First App:
Terminal window wheels new myappcd myappbox server start -
Explore Commands:
Terminal window wheels --helpwheels generate --helpwheels dbmigrate --help
Version Compatibility
Section titled “Version Compatibility”| Wheels CLI | Wheels | CommandBox | CFML Engine |
|---|---|---|---|
| 3.0.x | 2.5+ | 5.0+ | Lucee 5.3+, Adobe 2018+ |
| 2.0.x | 2.0-2.4 | 4.0+ | Lucee 5.2+, Adobe 2016+ |
Community & Support
Section titled “Community & Support”- Documentation: https://wheels.dev/docs
- GitHub: https://github.com/wheels-dev/wheels
- Slack: CFML Slack - #wheels channel
- Forums: https://groups.google.com/forum/#!forum/wheels
Contributing
Section titled “Contributing”We welcome contributions! See our Contributing Guide for details on:
- Reporting issues
- Suggesting features
- Submitting pull requests
- Creating custom commands
Recent Updates
Section titled “Recent Updates”Version 3.0.0
Section titled “Version 3.0.0”- Modernized service architecture
- Enhanced testing capabilities with watch mode
- Security scanning and performance optimization
- Plugin and environment management
- Improved code generation with more options
- Better error handling and user feedback
- Comprehensive documentation
Quick Links
Section titled “Quick Links”- All Commands - Complete command reference
- Quick Start - Get started in minutes
- Creating Commands - Extend the CLI
- Service Architecture - Technical deep dive
- Testing Guide - Testing best practices
License
Section titled “License”Wheels CLI is open source software licensed under the Apache License 2.0. See LICENSE for details.
Ready to get started? Head to the Quick Start Guide or explore the Command Reference.