wheels config set
Set configuration values for your Wheels application.
Synopsis
Description
The wheels config set
command updates configuration settings in your Wheels application. It can modify settings in configuration files, set environment-specific values, and manage runtime configurations.
Arguments
key
Configuration key to set
Yes
value
Value to set
Yes (unless --delete)
Options
--environment
Target environment
Current
--global
Set globally across all environments
false
--file
Configuration file to update
Auto-detect
--type
Value type (string, number, boolean, json)
Auto-detect
--encrypt
Encrypt sensitive values
Auto for passwords
--delete
Delete the configuration key
false
--force
Overwrite without confirmation
false
--help
Show help information
Examples
Set basic configuration
Set with specific type
Set for specific environment
Set complex value
Delete configuration
Set encrypted value
Configuration Types
String Values
Boolean Values
Numeric Values
JSON/Complex Values
Where Settings Are Saved
Environment-Specific
Default location: /config/[environment]/settings.cfm
Global Settings
Location: /config/settings.cfm
Environment Variables
For system-level settings:
Value Type Detection
The command auto-detects types:
true/false
→ booleanNumbers → numeric
JSON syntax → struct/array
Default → string
Override with --type
:
Sensitive Values
Automatic Encryption
These patterns trigger encryption:
*password*
*secret*
*key*
*token*
Manual Encryption
Encrypted Storage
Validation
Before setting, validates:
Key name syntax
Value type compatibility
Environment existence
File write permissions
Interactive Mode
For sensitive values:
Batch Operations
From File
Multiple Values
Configuration Precedence
Order of precedence (highest to lowest):
Runtime
set()
callsEnvironment variables
Environment-specific settings
Global settings
Framework defaults
Rollback
Create Backup
Restore
Special Keys
Reserved Keys
Some keys have special behavior:
environment
- Switches environmentreloadPassword
- Always encrypteddataSourcePassword
- Hidden in output
Computed Keys
Some settings affect others:
Environment Variables
Set as Environment Variable
Export Format
Validation Rules
Key Naming
Alphanumeric and underscores
No spaces or special characters
Case-sensitive
Value Constraints
Best Practices
Use Correct Types: Specify type for clarity
Environment-Specific: Don't set production values globally
Encrypt Secrets: Always encrypt sensitive data
Backup First: Create backups before changes
Document Changes: Add comments in config files
Advanced Usage
Conditional Setting
Template Variables
Troubleshooting
Permission Denied
Check file write permissions
Run with appropriate user
Verify directory ownership
Setting Not Taking Effect
Restart application
Clear caches
Check precedence order
Invalid Value
Verify type compatibility
Check for typos
Review validation rules
Integration
CI/CD Pipeline
Docker
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
Last updated
Was this helpful?