Overview
Thedevcpc version command displays the currently installed version of DevCPC and automatically checks if a newer version is available on GitHub.
Syntax
Output Example (Current Version)
Output Example (Update Available)
Version Information
The command displays:- Current version - Installed version number
- Update status - Whether an update is available
- Latest version - Newest version on GitHub (if different)
- Update command - How to update
Version Format
DevCPC uses semantic versioning:Version Components
Incremented for breaking changes or major rewrites. Example: v1.x.x → v2.x.x
Incremented for new features (backward compatible). Example: v1.0.x → v1.1.x
Incremented for bug fixes and minor improvements. Example: v1.0.1 → v1.0.2
Update Checking
The command automatically:- Reads current version from
~/.DevCPC/VERSION - Queries GitHub API for latest release
- Compares versions
- Displays update notification if available
GitHub API Query
Version Storage
Version information is stored in:Use Cases
Check Version Before Update
Verify Installation
After installing DevCPC:Troubleshooting
When reporting issues:CI/CD Version Checks
Script Integration
Extract version in scripts:Version Comparison
The command compares versions numerically:Update Recommendation
When an update is available:-
Update now:
-
Reinstall:
-
Manual update:
Version History
To view version history:Offline Behavior
If internet is unavailable:Version in Help
The version is also shown in help:Exit Codes
| Exit Code | Meaning |
|---|---|
| 0 | Success (always) |
Version-Specific Features
Some features may require minimum versions:| Feature | Minimum Version |
|---|---|
| CDT tape support | v1.0.0+ |
| CPR cartridge support | v1.0.0+ |
| PNG sprite conversion | v1.0.0+ |
| PNG screen conversion | v1.0.0+ |
| Auto-update | v1.0.0+ |
Release Channels
Currently DevCPC uses:- Stable - Production releases (v1.x.x)
- Beta - Pre-release versions (v1.x.x-beta.x)
version command only checks stable releases.
Related Commands
devcpc update- Update to latest versiondevcpc help- View help with version info