LogoLogo
HomeAPIBlog
3.0.0-SNAPSHOT
3.0.0-SNAPSHOT
  • INTRODUCTION
    • Getting Started
      • Running Local Development Servers
      • Beginner Tutorial: Hello World
      • Beginner Tutorial: Hello Database
      • Tutorial: Wheels, AJAX, and You
    • Frameworks and Wheels
    • Requirements
    • Manual Installation
    • Upgrading
    • Screencasts
  • Command Line Tools
    • CLI Overview
    • Quick Start Guide
    • Command Reference
      • Core Commands
        • wheels init
        • wheels info
        • wheels reload
        • wheels deps
        • wheels destroy
        • wheels watch
      • Code Generation
        • wheels generate app
        • wheels generate app-wizard
        • wheels generate controller
        • wheels generate model
        • wheels generate view
        • wheels generate property
        • wheels generate route
        • wheels generate resource
        • wheels generate api-resource
        • wheels generate frontend
        • wheels generate test
        • wheels generate snippets
        • wheels scaffold
      • Database Commands
        • wheels dbmigrate info
        • wheels dbmigrate latest
        • wheels dbmigrate up
        • wheels dbmigrate down
        • wheels dbmigrate reset
        • wheels dbmigrate exec
        • wheels dbmigrate create blank
        • wheels dbmigrate create table
        • wheels dbmigrate create column
        • wheels dbmigrate remove table
        • wheels db schema
        • wheels db seed
      • Testing Commands
        • wheels test
        • wheels test run
        • wheels test coverage
        • wheels test debug
      • Configuration Commands
        • wheels config list
        • wheels config set
        • wheels config env
      • Environment Management
        • wheels env
        • wheels env setup
        • wheels env list
        • wheels env switch
      • Plugin Management
        • wheels plugins
        • wheels plugins list
        • wheels plugins install
        • wheels plugins remove
      • Code Analysis
        • wheels analyze
        • wheels analyze code
        • wheels analyze performance
        • wheels analyze security
      • Security Commands
        • wheels security
        • wheels security scan
      • Performance Commands
        • wheels optimize
        • wheels optimize performance
      • Documentation Commands
        • wheels docs
        • wheels docs generate
        • wheels docs serve
      • CI/CD Commands
        • wheels ci init
      • Docker Commands
        • wheels docker init
        • wheels docker deploy
      • Deployment Commands
        • wheels deploy
        • wheels deploy audit
        • wheels deploy exec
        • wheels deploy hooks
        • wheels deploy init
        • wheels deploy lock
        • wheels deploy logs
        • wheels deploy proxy
        • wheels deploy push
        • wheels deploy rollback
        • wheels deploy secrets
        • wheels deploy setup
        • wheels deploy status
        • wheels deploy stop
    • CLI Development Guides
      • Creating Commands
      • Service Architecture
      • Migrations Guide
      • Testing Guide
  • Working with Wheels
    • Conventions
    • Configuration and Defaults
    • Directory Structure
    • Switching Environments
    • Testing Your Application
    • Using the Test Environment
    • Contributing to Wheels
    • Submitting Pull Requests
    • Documenting your Code
  • Handling Requests with Controllers
    • Request Handling
    • Rendering Content
    • Redirecting Users
    • Sending Files
    • Sending Email
    • Responding with Multiple Formats
    • Using the Flash
    • Using Filters
    • Verification
    • Event Handlers
    • Routing
    • URL Rewriting
      • Apache
      • IIS
      • Tomcat
      • Nginx
    • Obfuscating URLs
    • Caching
    • Nesting Controllers
    • CORS Requests
  • Displaying Views to Users
    • Pages
    • Partials
    • Linking Pages
    • Layouts
    • Form Helpers and Showing Errors
    • Displaying Links for Pagination
    • Date, Media, and Text Helpers
    • Creating Custom View Helpers
    • Localization
  • Database Interaction Through Models
    • Object Relational Mapping
    • Creating Records
    • Reading Records
    • Updating Records
    • Deleting Records
    • Column Statistics
    • Dynamic Finders
    • Getting Paginated Data
    • Associations
    • Nested Properties
    • Object Validation
    • Object Callbacks
    • Calculated Properties
    • Transactions
    • Dirty Records
    • Soft Delete
    • Automatic Time Stamps
    • Database Migrations
      • Migrations in Production
    • Using Multiple Data Sources
  • Plugins
    • Installing and Using Plugins
    • Developing Plugins
    • Publishing Plugins
  • Project Documentation
    • Overview
  • External Links
    • Source Code
    • Issue Tracker
    • Sponsor Us
    • Community
Powered by GitBook
LogoLogo
On this page
  • What is Wheels CLI?
  • Documentation Structure
  • 📚 Command Reference
  • 🚀 Quick Start Guide
  • 📖 Guides
  • 📋 Reference
  • Key Features
  • 🛠️ Code Generation
  • 🗄️ Database Migrations
  • 🧪 Testing
  • 👀 Development Tools
  • Getting Started
  • Version Compatibility
  • Community & Support
  • Contributing
  • Recent Updates
  • Version 3.0.0
  • Quick Links
  • License

Was this helpful?

Edit on GitHub
Export as PDF
  1. Command Line Tools

CLI Overview

PreviousScreencastsNextQuick Start Guide

Last updated 2 days ago

Was this helpful?

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

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

📚

Complete reference for all CLI commands organized by category:

  • Core Commands - Essential commands like init, reload, watch

  • - Generate applications, models, controllers, views

  • - Migrations and database management

  • - Run tests and generate coverage

  • - Manage application settings

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

Development Guides

Best Practices

📋 Reference

Key Features

🛠️ Code Generation

Generate complete applications or individual components:

# Create new application
wheels new blog

# Generate complete CRUD scaffolding
wheels scaffold 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

🗄️ Database Migrations

Manage database schema changes:

# Create migration
wheels dbmigrate create table posts

# Run migrations
wheels dbmigrate latest

# Check status
wheels dbmigrate info

🧪 Testing

Comprehensive testing support:

# Run all tests
wheels test run

# Watch mode
wheels test run --watch

# Generate coverage
wheels test coverage

👀 Development Tools

Enhance your development workflow:

# Watch for file changes
wheels watch

# Reload application
wheels reload development

# Analyze code
wheels analyze code
wheels security scan

Getting Started

  1. Install CommandBox (if not already installed):

    # 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:

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

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

    wheels --help
    wheels generate --help
    wheels dbmigrate --help

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

Contributing

  • Reporting issues

  • Suggesting features

  • Submitting pull requests

  • Creating custom commands

Recent Updates

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

License


🚀

- Understand the CLI's architecture

- Extend the CLI with your own commands

- Customize code generation templates

- Write and run tests effectively

- Database migration best practices

- Security scanning and hardening

- Optimization techniques

- All available configuration settings

- Variables available in templates

- Understanding command exit codes

- Environment configuration

Documentation:

GitHub:

Slack: - #wheels channel

Forums:

We welcome contributions! See our for details on:

- Complete command reference

- Get started in minutes

- Extend the CLI

- Technical deep dive

- Testing best practices

Wheels CLI is open source software licensed under the Apache License 2.0. See for details.

Ready to get started? Head to the or explore the .

Command Reference
Code Generation
Database Commands
Testing Commands
Configuration
And more...
Quick Start Guide
Service Architecture
Creating Custom Commands
Template System
Testing Guide
Migration Guide
Security Guide
Performance Guide
Configuration Options
Template Variables
Exit Codes
Environment Variables
https://docs.wheels.dev
https://github.com/wheels-dev/wheels
CFML Slack
https://groups.google.com/forum/#!forum/wheels
Contributing Guide
All Commands
Quick Start
Creating Commands
Service Architecture
Testing Guide
LICENSE
Quick Start Guide
Command Reference