CLI Overview
Quick Start Guide
wheels info
wheels reload
wheels deps
wheels destroy
wheels watch
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
wheels db create
wheels db drop
wheels db setup
wheels db reset
wheels db status
wheels db version
wheels db rollback
wheels db seed
wheels db dump
wheels db restore
wheels db shell
wheels db schema
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 test
wheels test run
wheels test coverage
wheels test debug
wheels config list
wheels config set
wheels config env
wheels env
wheels env setup
wheels env list
wheels env switch
wheels environment
wheels console
wheels runner
wheels server
wheels server start
wheels server stop
wheels server restart
wheels server status
wheels server log
wheels server open
wheels plugins
wheels plugins list
wheels plugins install
wheels plugins remove
wheels analyze
wheels analyze code
wheels analyze performance
wheels analyze security
wheels security
wheels security scan
wheels optimize
wheels optimize performance
wheels docs
wheels docs generate
wheels docs serve
wheels ci init
wheels docker init
wheels docker deploy
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
Configuration Management
Creating Commands
Service Architecture
Migrations Guide
Testing Guide
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
Using Multiple Data Sources
wheels docs (Coming Soon)
This command may not work as expected. A complete and stable version is coming soon.
Base command for documentation generation and management.
Note: This command is currently broken. Use subcommands directly.
Synopsis
wheels docs [subcommand] [options]
Description
The wheels docs
command provides documentation tools for Wheels applications. It generates API documentation, manages inline documentation, and serves documentation locally. While the base command is currently broken, the subcommands generate
and serve
work correctly.
Subcommands
| Command | Description | Status |
|---------|-------------|--------|
| generate
| Generate documentation | ✓ Working |
| serve
| Serve documentation locally | ✓ Working |
Options
| Option | Description |
|--------|-------------|
| --help
| Show help information |
| --version
| Show version information |
Current Status
The base wheels docs
command is temporarily unavailable due to a known issue. Please use the subcommands directly:
wheels docs generate
- Generate documentationwheels docs serve
- Serve documentation
Expected Behavior (When Fixed)
When operational, running wheels docs
without subcommands would:
- Check for existing documentation
- Generate if missing or outdated
- Provide quick access links
- Show documentation statistics
Expected output:
Wheels Documentation Status
==========================
Generated: 2024-01-15 10:30:45
Files: 156 documented (89%)
Coverage: 1,234 of 1,456 functions
Recent Changes:
- UserModel.cfc: 5 new methods
- OrderController.cfc: Updated examples
- config/routes.cfm: New route docs
Quick Actions:
- View docs: http://localhost:4000
- Regenerate: wheels docs generate
- Check coverage: wheels docs coverage
Workaround
Until the base command is fixed, use this workflow:
# Generate documentation
wheels docs generate
# Serve documentation
wheels docs serve
# Or combine in one line
wheels docs generate && wheels docs serve
Documentation System
Supported Formats
- JavaDoc-style comments
- Markdown files
- Inline documentation
- README files
Documentation Sources
/app/
├── models/ # Model documentation
├── controllers/ # Controller documentation
├── views/ # View helpers documentation
├── config/ # Configuration docs
├── docs/ # Additional documentation
└── README.md # Project overview
Configuration
Configure in .wheels-docs.json
:
{
"docs": {
"output": "./documentation",
"format": "html",
"theme": "wheels-default",
"include": [
"app/**/*.cfc",
"app/**/*.cfm",
"docs/**/*.md"
],
"exclude": [
"vendor/**",
"tests/**"
],
"options": {
"private": false,
"inherited": true,
"examples": true
}
}
}
Documentation Comments
Component Documentation
/**
* User model for authentication and profile management
*
* @author John Doe
* @since 1.0.0
*/
component extends="Model" {
/**
* Authenticate user with credentials
*
* @username The user's username or email
* @password The user's password
* @return User object if authenticated, false otherwise
*
* @example
* user = model("User").authenticate("john@example.com", "secret");
* if (isObject(user)) {
* // Login successful
* }
*/
public any function authenticate(required string username, required string password) {
// Implementation
}
}
Inline Documentation
<!---
@doc
This view displays the user profile page
@requires User object in 'user' variable
@layout layouts/main
--->
Integration
Auto-generation
Set up automatic documentation generation:
// package.json
{
"scripts": {
"docs:build": "wheels docs generate",
"docs:watch": "wheels docs generate --watch",
"docs:serve": "wheels docs serve"
}
}
CI/CD
- name: Generate documentation
run: |
wheels docs generate
wheels docs coverage --min=80
When to Use Subcommands
Generate Documentation
Use when:
- Adding new components
- Updating documentation comments
- Before releases
- Setting up documentation site
wheels docs generate
Serve Documentation
Use when:
- Reviewing documentation
- Local development
- Team documentation access
- API exploration
wheels docs serve
Troubleshooting
Base Command Not Working
Error: "wheels docs command is broken"
Solution: Use subcommands directly:
wheels docs generate
wheels docs serve
Missing Documentation
If documentation is not generated:
- Check file patterns in config
- Verify comment format
- Look for syntax errors
- Check exclude patterns
Future Plans
The base command will be restored to provide:
- Documentation dashboard
- Coverage reports
- Quick statistics
- Change detection
- Auto-serve option
Notes
- Subcommands work independently
- Documentation is generated incrementally
- Large projects may take time to document
- Keep documentation comments updated
See Also
- wheels docs generate - Generate documentation
- wheels docs serve - Serve documentation
- Documentation Best Practices
- API Documentation Guide
- Synopsis
- Subcommands
- Options
- Current Status
- Expected Behavior (When Fixed)
- Workaround
- Documentation System
- Supported Formats
- Documentation Sources
- Configuration
- Documentation Comments
- Component Documentation
- Inline Documentation
- Integration
- Auto-generation
- CI/CD
- When to Use Subcommands
- Generate Documentation
- Serve Documentation
- Troubleshooting
- Base Command Not Working
- Missing Documentation
- Future Plans
- Notes
- See Also