Command Line Tools
Wheels get settings
Wheels get settings
Section titled βWheels get settingsβOverview
Section titled βOverviewβThe wheels get settings command displays the current Wheels application settings for your environment. It shows all configuration settings that are active, including defaults and any custom overrides from your configuration files. You can view all settings or filter to see specific ones.
Command Syntax
Section titled βCommand Syntaxβwheels get settings [settingName]Parameters
Section titled βParametersβOptional Parameters
Section titled βOptional ParametersβsettingName- Optional setting name or pattern to filter results. Can be a partial match.
Basic Usage Examples
Section titled βBasic Usage ExamplesβDisplay All Settings
Section titled βDisplay All Settingsβwheels get settingsShows all active settings for the current environment
Filter Specific Setting
Section titled βFilter Specific Settingβwheels get settings cacheQueriesShows only the cacheQueries setting
Filter by Pattern
Section titled βFilter by Patternβwheels get settings cacheShows all settings containing βcacheβ in their name (e.g., cacheQueries, cachePages, cacheImages)
How It Works
Section titled βHow It WorksβSettings Resolution Order
Section titled βSettings Resolution OrderβThe command resolves settings in the same order as Wheels:
- Default Wheels Settings - Built-in framework defaults
- Application Settings - From
/config/settings.cfm - Environment Settings - From
/config/[environment]/settings.cfm
Each level overrides the previous one, with environment-specific settings having the highest priority.
Environment Detection
Section titled βEnvironment DetectionβThe command automatically detects the current environment using the same logic as wheels get environment:
- Checks
.envfile forWHEELS_ENV - Checks system environment variable
- Checks
server.json - Defaults to
development
Settings Parsing
Section titled βSettings ParsingβThe command parses set() function calls in your settings files:
set(dataSourceName="myapp_db");set(cacheQueries=true);set(errorEmailAddress="admin@example.com");Output Examples
Section titled βOutput ExamplesβAll Settings Display
Section titled βAll Settings DisplayβWheels Settings (development environment):
allowConcurrentRequestScope: falsecacheActions: falsecacheCullInterval: 5cacheCullPercentage: 10cacheDatabaseSchema: falsecacheFileChecking: falsecacheImages: falsecacheModelConfig: falsecachePages: falsecachePartials: falsecacheQueries: falsecacheRoutes: falsedataSourceName: myapp_dberrorEmailAddress: admin@example.comshowDebugInformation: trueshowErrorInformation: trueURLRewriting: partial
Total settings: 17Filtered Settings Display
Section titled βFiltered Settings Displayβwheels get settings cache================================================== Wheels Settings (development environment)==================================================
βββββββββββββββββββββββββ€βββββββββ Setting β Value ββ ββββββββββββββββββββββββͺββββββββ£β cacheActions β false ββββββββββββββββββββββββββΌββββββββ’β cacheControllerConfig β false ββββββββββββββββββββββββββΌββββββββ’β cacheCullInterval β true ββββββββββββββββββββββββββΌββββββββ’β cacheCullPercentage β true ββββββββββββββββββββββββββΌββββββββ’β cacheDatabaseSchema β false ββββββββββββββββββββββββββΌββββββββ’β cacheFileChecking β false ββββββββββββββββββββββββββΌββββββββ’β cacheImages β false ββββββββββββββββββββββββββΌββββββββ’β cacheModelConfig β false ββββββββββββββββββββββββββΌββββββββ’β cachePages β false ββββββββββββββββββββββββββΌββββββββ’β cachePartials β false ββββββββββββββββββββββββββΌββββββββ’β cacheQueries β false ββββββββββββββββββββββββββΌββββββββ’β cacheRoutes β false ββββββββββββββββββββββββββΌββββββββ’β cacheViewConfig β false ββββββββββββββββββββββββββ§ββββββββTotal settings: 13Single Setting Display
Section titled βSingle Setting Displayβwheels get settings dataSourceName================================================== Wheels Settings (development environment)==================================================
ββββββββββββββββββ€ββββββββββββββββ Setting β Value ββ βββββββββββββββββͺβββββββββββββββ£β dataSourceName β wheelstestdb βββββββββββββββββββ§βββββββββββββββ
Total settings: 1
[INFO]: Settings loaded from: - config/settings.cfm (global defaults) - config/development/settings.cfm (environment overrides)
[INFO]: Filtered by: 'dataSourceName' - Showing 1 matching setting(s)No Matches Found
Section titled βNo Matches Foundβwheels get settings nonexistent[WARNING]: No settings found matching 'nonexistent'Common Wheels Settings
Section titled βCommon Wheels SettingsβCaching Settings
Section titled βCaching SettingsβcacheActions- Cache action outputcacheQueries- Cache database query resultscachePages- Cache entire page outputcachePartials- Cache partial/template outputcacheImages- Cache generated imagescacheRoutes- Cache routing configurationcacheModelConfig- Cache model configurationscacheControllerConfig- Cache controller configurationscacheViewConfig- Cache view configurationscacheDatabaseSchema- Cache database schema informationcacheFileChecking- Check for file changes when caching
Database Settings
Section titled βDatabase SettingsβdataSourceName- Primary datasource nameuseExpandedColumnAliases- Use expanded column aliases in queriesuseTimestampsOnDeletedColumn- Add timestamps to soft-deleted recordsmigratorTableName- Table name for migration versions
Error Handling Settings
Section titled βError Handling SettingsβshowDebugInformation- Display debug informationshowErrorInformation- Display error detailssendEmailOnError- Send email notifications on errorserrorEmailAddress- Email address for error notificationserrorEmailServer- SMTP server for error emailserrorEmailSubject- Subject line for error emailsincludeErrorInEmailSubject- Include error details in email subject
URL Settings
Section titled βURL SettingsβURLRewriting- URL rewriting mode (none,partial,full)
Plugin Settings
Section titled βPlugin SettingsβoverwritePlugins- Allow plugin overwritesdeletePluginDirectories- Delete plugin directories on uninstallloadIncompatiblePlugins- Load plugins with version mismatches
Common Use Cases
Section titled βCommon Use CasesβDevelopment vs Production Comparison
Section titled βDevelopment vs Production Comparisonβ# Check development settingsWHEELS_ENV=development wheels get settings cache
# Check production settingsWHEELS_ENV=production wheels get settings cacheVerify Database Configuration
Section titled βVerify Database Configurationβwheels get settings dataSourceNameCheck All Caching Settings
Section titled βCheck All Caching Settingsβwheels get settings cacheDebugging Configuration Issues
Section titled βDebugging Configuration Issuesβ# See all current settingswheels get settings
# Check specific problematic settingwheels get settings showDebugInformationPre-deployment Verification
Section titled βPre-deployment Verificationβ# Verify production settingsWHEELS_ENV=production wheels get settingsSettings File Examples
Section titled βSettings File ExamplesβBasic Application Settings
Section titled βBasic Application Settingsβset(dataSourceName="myapp");set(URLRewriting="partial");set(errorEmailAddress="admin@myapp.com");Environment-Specific Settings
Section titled βEnvironment-Specific Settingsβset(cacheQueries=true);set(cachePages=true);set(cachePartials=true);set(showDebugInformation=false);set(showErrorInformation=false);set(sendEmailOnError=true);set(cacheQueries=false);set(showDebugInformation=true);set(showErrorInformation=true);set(sendEmailOnError=false);Data Type Support
Section titled βData Type SupportβThe command correctly interprets different data types:
Boolean Values
Section titled βBoolean Valuesβset(cacheQueries=true);set(showDebugInformation=false);Numeric Values
Section titled βNumeric Valuesβset(cacheCullInterval=5);set(cacheCullPercentage=10);String Values
Section titled βString Valuesβset(dataSourceName="myapp_db");set(errorEmailAddress="admin@example.com");Complex Values
Section titled βComplex ValuesβArrays and structs are displayed with summary information:
complexSetting: [array with 5 items]structSetting: {3 items}Error Handling
Section titled βError HandlingβThe command will show an error if:
- Not run from a Wheels application directory
- Settings files cannot be read
- Settings files contain syntax errors
Not a Wheels Application
Section titled βNot a Wheels ApplicationβError: This command must be run from a Wheels application directoryRead Error
Section titled βRead ErrorβError reading settings: [specific error message]Details: [additional error details if available]Best Practices
Section titled βBest Practicesβ-
Environment-Specific Configs - Keep environment-specific settings in separate files (
/config/[environment]/settings.cfm) -
Document Custom Settings - Comment your custom settings in the configuration files
-
Use Consistent Naming - Follow Wheels naming conventions for custom settings
-
Verify Before Deployment - Always check settings for the target environment before deploying
-
Sensitive Data - Keep sensitive settings (API keys, passwords) in environment variables or
.envfiles
Integration with Other Commands
Section titled βIntegration with Other CommandsβWorks well with other Wheels CLI commands:
# Check environment, then settingswheels get environmentwheels get settings
# Verify cache settings before clearing cachewheels get settings cachewheels clear cache
# Check database settings before running migrationswheels get settings dataSourceNamewheels db migrate- Setting names are case-insensitive when filtering
- The filter matches any part of the setting name
- Settings are displayed in alphabetical order
- Boolean values display as
trueorfalse - Complex values (arrays, structs) show a summary
- The command shows which environmentβs settings are being displayed
Troubleshooting
Section titled βTroubleshootingβSettings Not Showing Expected Values
Section titled βSettings Not Showing Expected Valuesβ- Check which environment is active:
wheels get environment - Verify the settings file exists in the correct location
- Check for syntax errors in your settings files
- Ensure settings use the correct
set()function syntax
Missing Settings
Section titled βMissing SettingsβIf expected settings are missing:
- Verify theyβre defined using
set()function - Check file paths:
/config/settings.cfmand/config/[environment]/settings.cfm - Ensure no syntax errors prevent parsing
Filter Not Working
Section titled βFilter Not Workingβ- Remember the filter is case-insensitive
- The filter matches any part of the setting name
- Use more specific terms for precise filtering
Limitations
Section titled βLimitationsβ- The command parses settings files statically and may not capture all dynamic settings
- Complex CFML expressions in settings may not be fully evaluated
- Settings defined outside of
set()function calls may not be detected - Runtime settings modifications are not reflected