Skip to content

Command Line Tools

Wheels CLI Command Reference

Complete reference for all Wheels CLI commands organized by category.

CommandDescription
wheels generate app [name]Create new application
wheels generate scaffold [name]Generate complete CRUD
wheels dbmigrate latestRun database migrations
wheels test runRun application tests
wheels reloadReload application

Essential commands for managing your Wheels application.

Commands for generating application code and resources.

  • wheels generate app (alias: wheels new) - Create new application Documentation

  • wheels generate app-wizard - Interactive app creation Documentation

  • wheels generate controller (alias: wheels g controller) - Generate controller Documentation

  • wheels generate model (alias: wheels g model) - Generate model Documentation

  • wheels generate view (alias: wheels g view) - Generate view Documentation

  • wheels generate helper (alias: wheels g helper) - Generate global helper functions Documentation

  • wheels generate migration (alias: wheels g migration) - Generate database migration Documentation

  • wheels generate property - Add model property Documentation

  • wheels generate route - Generate route Documentation

  • wheels generate test - Generate tests Documentation

  • wheels generate code - Code snippets Documentation

  • wheels generate snippets - Snippets Template Documentation

  • wheels generate scaffold - Complete CRUD Documentation

  • wheels generate api-resource - Generate RESTful API resource Documentation

Common options across generators:

  • --force - Overwrite existing files
  • --help - Show command help

Commands for managing database schema and migrations.

  • wheels dbmigrate create blank [name] - Create empty migration Documentation

  • wheels dbmigrate create table [name] - Create table migration Documentation

  • wheels dbmigrate create column [table] [column] - Add column migration Documentation

  • wheels dbmigrate remove table [name] - Drop table migration Documentation

Commands for running and managing tests.

Commands for managing development environments and application context.

Commands for analyzing code quality and patterns.

Commands for managing application configuration.

  • wheels config check - Check configuration validity Documentation

  • wheels config diff - Compare configuration differences Documentation

  • wheels config dump - Dump current configuration Documentation

Commands for Docker container management and deployment.

  • wheels docker init - Initialize Docker configuration files Documentation

  • wheels docker build - Build Docker images Documentation

  • wheels docker deploy - Build and deploy Docker containers Documentation

  • wheels docker push - Push Docker images to registries Documentation

  • wheels docker login - Authenticate with container registries Documentation

  • wheels docker logs - View container logs Documentation

  • wheels docker exec - Execute commands in containers Documentation

  • wheels docker stop - Stop Docker containers Documentation

Commands for retrieving application information.

  • wheels get environment - Get current environment details Documentation

  • wheels get settings - Get application settings Documentation

Commands for generating and serving project documentation.

  • wheels docs generate - Generate project documentation Documentation

  • wheels docs serve - Serve documentation locally Documentation

Commands for managing Wheels plugins.

Many commands have shorter aliases:

Terminal window
wheels g controller users # Same as: wheels generate controller users
wheels g model user # Same as: wheels generate model user
wheels g helper format # Same as: wheels generate helper format
wheels g migration CreateUsers # Same as: wheels generate migration CreateUsers
wheels new myapp # Same as: wheels generate app myapp

Creating a new feature:

Terminal window
wheels generate scaffold name=product properties=name:string,price:decimal
wheels dbmigrate latest
wheels test run

Starting development:

Terminal window
wheels reload # Reload the application
wheels test run # Run tests

Deployment preparation:

Terminal window
wheels test run
wheels analyze security
wheels analyze performance
wheels dbmigrate info
VariableDescriptionDefault
WHEELS_ENVEnvironment modedevelopment
WHEELS_DATASOURCEDatabase nameFrom config
WHEELS_RELOAD_PASSWORDReload passwordFrom config
CodeDescription
0Success
1General error
2Invalid arguments
3File not found
4Permission denied
5Database error