wheels server start
Start the Wheels development server with enhanced checks and features.
Synopsis
Description
The wheels server start
command starts a CommandBox server with Wheels-specific enhancements. It checks that you're in a valid Wheels application directory before starting and provides helpful error messages if not.
This command wraps CommandBox's native server start
functionality while adding:
Validation that the current directory is a Wheels application
Automatic detection of existing running servers
Wheels-specific configuration suggestions
Integration with Wheels application context
Options
port
port
Type: Numeric
Description: Port number to start server on
Example:
wheels server start port=8080
host
host
Type: String
Default:
127.0.0.1
Description: Host/IP address to bind server to
Example:
wheels server start host=0.0.0.0
--rewritesEnable
--rewritesEnable
Type: Boolean flag
Description: Enable URL rewriting for clean URLs
Example:
wheels server start --rewritesEnable
openbrowser
openbrowser
Type: Boolean
Default:
true
Description: Open browser after starting server
Example:
wheels server start openbrowser=false
directory
directory
Type: String
Default: Current working directory
Description: Directory to serve
Example:
wheels server start directory=/path/to/app
name
name
Type: String
Description: Name for the server instance
Example:
wheels server start name=myapp
--force
--force
Type: Boolean flag
Description: Force start even if server is already running
Example:
wheels server start --force
Examples
Basic Usage
Advanced Usage
Notes
The command validates that the current directory contains a Wheels application by checking for
/vendor/wheels
,/config
, and/app
directoriesIf a server is already running, use
--force
to start anyway orwheels server restart
to restartAfter starting, the command displays helpful information about other server commands
The server configuration can also be managed through
server.json
file
Related Commands
wheels server stop
- Stop the serverwheels server restart
- Restart the serverwheels server status
- Check server statuswheels server log
- View server logswheels server open
- Open in browser
See Also
Last updated
Was this helpful?