wheels config set
Set configuration values for your Wheels application.
Usage
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
Set for specific environment
Set for all environments
Set encrypted value
Configuration Values
The command accepts various value types:
String Values
Boolean Values
Numeric Values
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:
Sensitive Values
Use the --encrypt
flag for sensitive values:
Environment-Specific Settings
Target specific environments with the --environment
flag:
Best Practices
Use environment-specific settings: Don't set production values in development
Encrypt sensitive data: Use
--encrypt
for passwords and keysTest 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
Last updated
Was this helpful?