Skip to content

Command Line Tools

Wheels CLI Documentation

Welcome to the comprehensive documentation for the Wheels CLI - a powerful command-line interface for the Wheels framework.

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

Complete reference for all CLI commands organized by category:

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

Generate complete applications or individual components:

Terminal window
# Create new application
wheels new blog
# Generate complete CRUD scaffolding
wheels scaffold name=post properties=title:string,content:text,published:boolean
# Generate individual components
wheels generate model user
wheels generate controller users --rest
wheels generate view users index

Complete database lifecycle management:

Terminal window
# Database operations
wheels db create # Create database
wheels db setup # Create + migrate + seed
wheels db reset # Drop + recreate + migrate + seed
wheels db shell # Interactive database shell
wheels db dump # Backup database
wheels db restore backup.sql # Restore from backup
# Migrations
wheels dbmigrate create table posts
wheels dbmigrate latest
wheels db status # Check migration status
wheels db rollback # Rollback migrations

Comprehensive testing support:

Terminal window
# Run all tests
wheels test run
# Advanced testing with TestBox CLI
wheels test:all # Run all tests
wheels test:unit # Run unit tests only
wheels test:integration # Run integration tests only
wheels test:watch # Watch mode
wheels test:coverage # Generate coverage reports

Enhance your development workflow:

Terminal window
# Reload application
wheels reload development
# Analyze code
wheels analyze code
wheels security scan
  1. Install CommandBox (if not already installed):

    Terminal window
    # macOS/Linux
    curl -fsSl https://downloads.ortussolutions.com/debs/gpg | sudo apt-key add -
    or
    brew install commandbox
    # Windows
    choco install commandbox
  2. Install Wheels CLI:

    Terminal window
    box install wheels-cli
  3. Create Your First App:

    Terminal window
    wheels new myapp
    cd myapp
    box server start
  4. Explore Commands:

    Terminal window
    wheels --help
    wheels generate --help
    wheels dbmigrate --help
Wheels CLIWheelsCommandBoxCFML Engine
3.0.x2.5+5.0+Lucee 5.3+, Adobe 2018+
2.0.x2.0-2.44.0+Lucee 5.2+, Adobe 2016+

We welcome contributions! See our Contributing Guide for details on:

  • Reporting issues
  • Suggesting features
  • Submitting pull requests
  • Creating custom commands
  • 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

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.