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 config set (Coming Soon)
This command may not work as expected. A complete and stable version is coming soon. Set configuration values for your Wheels application.
Usage
wheels config set <key>=<value> [--environment=<env>] [--encrypt]
Parameters
setting
- (Required) Key=Value pair for the setting to update--environment
- (Optional) Environment to apply settings to:development
,testing
,production
,all
. Default:development
--encrypt
- (Optional) Encrypt sensitive values
Description
The wheels config set
command updates configuration settings in your Wheels application. Settings must be provided in key=value
format.
Examples
Set basic configuration
wheels config set dataSourceName=wheels_production
Set for specific environment
wheels config set showDebugInformation=false --environment=production
wheels config set reloadPassword=newPassword --environment=production
Set for all environments
wheels config set defaultLayout=main --environment=all
Set encrypted value
wheels config set apiKey=sk_live_abc123 --encrypt
wheels config set dataSourcePassword=mySecret --encrypt
Configuration Values
The command accepts various value types:
String Values
wheels config set appName="My Wheels App"
wheels config set emailFrom=noreply@example.com
Boolean Values
wheels config set showDebugInformation=true
wheels config set cacheQueries=false
Numeric Values
wheels config set sessionTimeout=1800
wheels config set maxUploadSize=10485760
Where Settings Are Saved
Settings are saved to environment-specific configuration files:
- Development:
/config/development/settings.cfm
- Testing:
/config/testing/settings.cfm
- Production:
/config/production/settings.cfm
- All environments:
/config/settings.cfm
Example:
// Added to /config/production/settings.cfm
set(dataSourceName="wheels_production");
Sensitive Values
Use the --encrypt
flag for sensitive values:
wheels config set reloadPassword=mySecret --encrypt
wheels config set apiKey=sk_live_123456 --encrypt
Environment-Specific Settings
Target specific environments with the --environment
flag:
# Development only
wheels config set showDebugInformation=true --environment=development
# Production only
wheels config set cacheQueries=true --environment=production
# All environments
wheels config set appName="My App" --environment=all
Best Practices
- Use environment-specific settings: Don't set production values in development
- Encrypt sensitive data: Use
--encrypt
for passwords and keys - Test changes: Verify settings with
wheels config list
- Restart after changes: Some settings require application restart
Notes
- Some settings require application restart
- Encrypted values can't be read back
- Changes are logged for audit
- Use environment variables for containers
See Also
- wheels config list - List configuration
- wheels config env - Environment config
- wheels env - Environment management
- Configuration Guide