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
  • Quick Reference
  • Most Common Commands
  • Core Commands
  • Code Generation
  • Generator Options
  • Database Commands
  • Migration Management
  • Migration Creation
  • Database Operations
  • Testing Commands
  • Test Options
  • Configuration Commands
  • Environment Management
  • Plugin Management
  • Plugin Options
  • Code Analysis
  • Security Commands
  • Security Options
  • Performance Commands
  • Documentation Commands
  • Documentation Options
  • CI/CD Commands
  • Docker Commands
  • Deployment Commands
  • Deployment Options
  • Command Patterns
  • Getting Help
  • Command Aliases
  • Common Workflows
  • Environment Variables
  • Exit Codes
  • Command Status Notes
  • Broken Commands
  • Disabled Commands
  • See Also

Was this helpful?

Edit on GitHub
Export as PDF
  1. Command Line Tools

Command Reference

Complete reference for all Wheels CLI commands organized by category.

Quick Reference

Most Common Commands

Command
Description

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 watch

Watch files for changes

wheels reload

Reload application

Core Commands

Essential commands for managing your Wheels application.

Command
Description
Documentation

wheels init

Bootstrap existing app for CLI

wheels info

Display version information

wheels reload [mode]

Reload application

wheels deps

Manage dependencies

wheels destroy [type] [name]

Remove generated code

wheels watch

Watch for file changes

Code Generation

Commands for generating application code and resources.

Command
Alias
Description
Documentation

wheels generate app

wheels new

Create new application

wheels generate app-wizard

Interactive app creation

wheels generate controller

wheels g controller

Generate controller

wheels generate model

wheels g model

Generate model

wheels generate view

wheels g view

Generate view

wheels generate property

Add model property

wheels generate route

Generate route

wheels generate resource

REST resource

wheels generate api-resource

API resource (Currently broken)

wheels generate frontend

Frontend code

wheels generate test

Generate tests

wheels generate snippets

Code snippets

wheels scaffold

Complete CRUD

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

Command
Description
Documentation

wheels dbmigrate info

Show migration status

wheels dbmigrate latest

Run all pending migrations

wheels dbmigrate up

Run next migration

wheels dbmigrate down

Rollback last migration

wheels dbmigrate reset

Reset all migrations

wheels dbmigrate exec [version]

Run specific migration

Migration Creation

Command
Description
Documentation

wheels dbmigrate create blank [name]

Create empty migration

wheels dbmigrate create table [name]

Create table migration

wheels dbmigrate create column [table] [column]

Add column migration

wheels dbmigrate remove table [name]

Drop table migration

Database Operations

Command
Description
Documentation

wheels db schema

Export/import schema

wheels db seed

Seed database

Testing Commands

Commands for running and managing tests.

Command
Description
Documentation

wheels test [type]

Run framework tests

wheels test run [spec]

Run TestBox tests

wheels test coverage

Generate coverage report

wheels test debug

Debug test execution

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.

Command
Description
Documentation

wheels config list

List configuration

wheels config set [key] [value]

Set configuration

wheels config env

Environment config

Environment Management

Commands for managing development environments.

Command
Description
Documentation

wheels env

Environment management base command

wheels env setup [name]

Setup environment

wheels env list

List environments

wheels env switch [name]

Switch environment

Plugin Management

Commands for managing Wheels plugins.

Command
Description
Documentation

wheels plugins

Plugin management base command

wheels plugins list

List plugins

wheels plugins install [name]

Install plugin

wheels plugins remove [name]

Remove plugin

Plugin Options

  • --global - Install/list globally

  • --dev - Development dependency

Code Analysis

Commands for analyzing code quality and patterns.

Command
Description
Documentation

wheels analyze

Code analysis base command

wheels analyze code

Analyze code quality

wheels analyze performance

Performance analysis

wheels analyze security

Security analysis (deprecated)

Security Commands

Commands for security scanning and hardening.

Command
Description
Documentation

wheels security

Security management base command

wheels security scan

Scan for vulnerabilities

Security Options

  • --fix - Auto-fix issues

  • --path - Specific path to scan

Performance Commands

Commands for optimizing application performance.

Command
Description
Documentation

wheels optimize

Optimization base command

wheels optimize performance

Optimize application

Documentation Commands

Commands for generating and serving documentation.

Command
Description
Documentation

wheels docs

Documentation base command (Currently broken)

wheels docs generate

Generate documentation

wheels docs serve

Serve documentation

Documentation Options

  • --format - Output format (html, markdown)

  • --output - Output directory

  • --port - Server port

CI/CD Commands

Commands for continuous integration and deployment workflows.

Command
Description
Documentation

wheels ci init

Initialize CI/CD configuration

Docker Commands

Commands for Docker container management and deployment.

Command
Description
Documentation

wheels docker init

Initialize Docker configuration

wheels docker deploy

Deploy using Docker

Deployment Commands

Commands for managing application deployments.

Command
Description
Documentation

wheels deploy

Deployment base command

wheels deploy audit

Audit deployment configuration

wheels deploy exec

Execute deployment

wheels deploy hooks

Manage deployment hooks

wheels deploy init

Initialize deployment

wheels deploy lock

Lock deployment state

wheels deploy logs

View deployment logs

wheels deploy proxy

Configure deployment proxy

wheels deploy push

Push deployment

wheels deploy rollback

Rollback deployment

wheels deploy secrets

Manage deployment secrets

wheels deploy setup

Setup deployment environment

wheels deploy status

Check deployment status

wheels deploy stop

Stop deployment

Deployment Options

  • --environment - Target environment

  • --force - Force deployment

  • --dry-run - Preview changes without deploying

Command Patterns

Getting Help

Every command supports --help:

wheels [command] --help
wheels generate controller --help
wheels dbmigrate create table --help

Command Aliases

Many commands have shorter aliases:

wheels g controller users  # Same as: wheels generate controller users
wheels g model user       # Same as: wheels generate model user
wheels new myapp         # Same as: wheels generate app myapp

Common Workflows

Creating a new feature:

wheels scaffold product --properties="name:string,price:decimal"
wheels dbmigrate latest
wheels test run

Starting development:

wheels watch              # Terminal 1
box server start         # Terminal 2
wheels test run --watch  # Terminal 3

Deployment preparation:

wheels test run
wheels security scan
wheels optimize performance
wheels dbmigrate info

Environment Variables

Variable
Description
Default

WHEELS_ENV

Environment mode

development

WHEELS_DATASOURCE

Database name

From config

WHEELS_RELOAD_PASSWORD

Reload password

From config

Exit Codes

Code
Description

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 broken

  • wheels 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

PreviousQuick Start GuideNextCore Commands

Last updated 2 days ago

Was this helpful?

Installation Guide
Quick Start Guide
Creating Custom Commands
CLI Architecture
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details
Details