Wheels CLI Config Commands: check, diff & dump
Introduction
In our previous article, Wheels CLI Essentials: Inspect Your App with about & get Commands, we explored how Wheels 3.x helps you understand your application’s runtime state. Those commands focused on visibility.
Now we go one layer deeper.
This article introduces three powerful configuration-focused commands:
- wheels config check
- wheels config diff
- wheels config dump These commands are not about what is running. They’re about how your configuration is structured, validated, and compared. If about and get gave you awareness, these commands give you control.
Why Configuration Commands Matter
In modern applications, configuration complexity grows quickly:
- Multiple environments
- Default framework settings
- Custom overrides
- Team-specific environment variables
- CI/CD configuration differences
- Production hotfixes
Over time, small configuration mismatches can cause major issues:
- “It works on my machine.”
- Staging behaves differently from production.
- A default value overrides a custom setting.
- A config file was edited but not deployed. The new config commands are built to prevent exactly these problems.
They give you validation, comparison, and export tools — directly from the CLI.
wheels config check
Validate Your Configuration with Confidence
wheels config check
The check command validates your configuration setup and ensures:
- Required settings exist
- No invalid configuration keys are present
- Environment files are structured correctly
- Overrides are applied properly
- No conflicting definitions exist Think of it as a configuration health check.
When to Use config check
Before Deployment:
Run it before pushing to staging or production:
wheels config check
This ensures:
- No missing environment settings
- No accidental debug flags
- No incomplete overrides It acts like a pre-flight checklist.
After Updating Configuration:
Changed a config file? Added a new environment variable?
Run:
wheels config check
It confirms everything is wired correctly.
Why config check Is Powerful:
- Prevents runtime configuration errors
- Catches typos in setting names
- Validates environment consistency
- Encourages safe deployment practices Instead of discovering configuration errors in production… You catch them instantly.
wheels config diff
Compare Configuration Across Environments
wheels config diff development production
The diff command compares configuration values between environments. It shows:
- What differs
- What exists in one environment but not another
- What values are overridden This is extremely valuable in multi-environment workflows.
Why config diff Matters Environment mismatches are one of the most common causes of bugs. Examples:
- Caching enabled in production but not staging
- Different datasource names
- Different mail server settings
- Logging levels not aligned
Instead of manually comparing config files, run:
wheels config diff staging production
You instantly see differences in a clean, structured output.
Real-World Scenario You deploy to production. Something behaves differently from staging. Instead of guessing:
wheels config diff staging production
Now you know:
- Exactly what changed
- Whether a setting was missed
- Whether a production override is affecting behavior This command alone can save hours of manual inspection.
Why config diff Is Essential
- Eliminates manual file comparisons
- Prevents environment drift
- Improves team collaboration
- Simplifies debugging In larger teams, configuration drift is inevitable. This command keeps environments aligned.
wheels config dump
Export Your Full Configuration Snapshot
wheels config dump
The dump command outputs your complete resolved configuration. It includes:
- Default framework settings
- Application-level overrides
- Environment-specific settings
- Fully merged configuration values Think of it as a raw configuration export.
When to Use config dump
Auditing:
Need to see everything at once?
wheels config dump
You get a complete configuration snapshot.
Debugging Complex Overrides Sometimes a setting comes from:
- Framework defaults
- settings.cfm
- Environment-specific files
- System environment variables Instead of tracing multiple layers manually, dump shows the final resolved result.
Sharing Configuration Safely When collaborating with teammates, you can:
- Dump configuration
- Review it together
- Identify unexpected overrides It creates transparency.
Why config dump Is Valuable Full visibility into final configuration state
- Simplifies advanced debugging
- Helps audit production setups
- Encourages configuration discipline It removes ambiguity.
How These Commands Work Together
Here’s a practical workflow:
Step 1 – Validate
wheels config check
Ensure configuration structure is correct.
Step 2 – Compare
wheels config diff staging production
Identify environment differences.
Step 3 – Export Snapshot
wheels config dump
Review the full resolved configuration. Together, they form a powerful configuration management toolkit.
The Bigger Shift in CLI Philosophy
Earlier versions of CLI tools focused primarily on:
- Generating controllers
- Creating models
- Scaffolding applications Wheels 3.x is expanding beyond scaffolding.
It’s becoming:
- A configuration validator
- An environment consistency enforcer
- A debugging assistant
- A deployment safety layer This shift reflects modern development needs. Applications today are not just code. They are configuration-driven systems. And configuration must be inspectable, verifiable, and comparable.
What This Means for Wheels Developers
With config check, config diff, and config dump, you gain:
- Safer deployments
- Fewer environmental surprises
- Faster debugging cycles
- Better team collaboration
- Stronger production confidence These are not flashy commands. They don’t generate files. They don’t create scaffolds.
But they solve real-world development problems — the kind that cost time, trust, and production stability.
Conclusion
The new configuration commands in Wheels CLI 3.x are small additions — but major upgrades to your workflow.
- wheels config check protects you from configuration mistakes
- wheels config diff prevents environment drift
- wheels config dump gives you full transparency
If previous CLI commands helped you build faster… These help you deploy more safely. And in modern software development, safe deployments are everything. Stay tuned — the next deep dive into Wheels CLI is coming.
Learn more here: https://youtu.be/6RJWe3RQp1Q
Comments