Command Reference
Complete reference for all Wheels CLI commands organized by category.
Quick Reference
Most Common Commands
wheels generate app [name]
Create new application
wheels scaffold [name]
Generate complete CRUD
wheels dbmigrate latest
Run database migrations
wheels test run
Run application tests
wheels server start
Start development server
wheels server status
Check server status
wheels watch
Watch files for changes
wheels reload
Reload application
Core Commands
Essential commands for managing your Wheels application.
Server Management
Enhanced server commands that wrap CommandBox's native functionality with Wheels-specific features.
Server Command Features
Validates Wheels application directory
Shows framework-specific information
Integrates with application reload
Provides helpful error messages
Code Generation
Commands for generating application code and resources.
Generator Options
Common options across generators:
--force
- Overwrite existing files--help
- Show command help
Database Commands
Commands for managing database schema and migrations.
Migration Management
Migration Creation
Database Operations
Testing Commands
Commands for running and managing tests.
Test Options
--watch
- Auto-run on changes--reporter
- Output format (simple, json, junit)--bundles
- Specific test bundles--labels
- Filter by labels
Configuration Commands
Commands for managing application configuration.
Environment Management
Commands for managing development environments and application context.
Legacy Environment Commands
Plugin Management
Commands for managing Wheels plugins.
Plugin Options
--global
- Install/list globally--dev
- Development dependency
Code Analysis
Commands for analyzing code quality and patterns.
Security Commands
Commands for security scanning and hardening.
Security Options
--fix
- Auto-fix issues--path
- Specific path to scan
Performance Commands
Commands for optimizing application performance.
Documentation Commands
Commands for generating and serving documentation.
Documentation Options
--format
- Output format (html, markdown)--output
- Output directory--port
- Server port
Maintenance Commands
Commands for managing application maintenance mode and cleanup tasks.
Maintenance Options
--force
- Skip confirmation prompts--dryRun
- Preview changes without executing
CI/CD Commands
Commands for continuous integration and deployment workflows.
Docker Commands
Commands for Docker container management and deployment.
Deployment Commands
Commands for managing application deployments.
Deployment Options
--environment
- Target environment--force
- Force deployment--dry-run
- Preview changes without deploying
Command Patterns
Getting Help
Every command supports --help
:
Command Aliases
Many commands have shorter aliases:
Common Workflows
Creating a new feature:
Starting development:
Deployment preparation:
Interactive debugging:
Running maintenance scripts:
Environment Variables
WHEELS_ENV
Environment mode
development
WHEELS_DATASOURCE
Database name
From config
WHEELS_RELOAD_PASSWORD
Reload password
From config
Exit Codes
0
Success
1
General error
2
Invalid arguments
3
File not found
4
Permission denied
5
Database error
Command Status Notes
Some commands in the Wheels CLI are currently in various states of development or maintenance:
Broken Commands
wheels docs
- Base documentation command is currently brokenwheels generate api-resource
- API resource generation is currently broken
Disabled Commands
The following commands exist in the codebase but are currently disabled:
Some CI and Docker commands have disabled variants in the codebase
These commands may be re-enabled in future versions of Wheels.
See Also
Last updated
Was this helpful?