evidence upgrade command updates your Evidence project to the latest version of the framework and its dependencies.
Usage
What It Does
The upgrade command performs the following actions:- Checks Current Version - Determines your current Evidence version
- Fetches Latest Version - Checks npm for the latest @evidence-dev/evidence release
- Updates Dependencies - Updates Evidence packages in your package.json
- Installs Packages - Runs package manager install to apply updates
- Migrates Configuration - Updates config files if needed for breaking changes
Upgrade Process
Package Manager Support
The upgrade command works with all major package managers:- npm
- pnpm
- yarn
Version Compatibility
Major Version Upgrades
When upgrading across major versions (e.g., v1 → v2), review the changelog for breaking changes. Common breaking changes may include:- Component prop renames
- Query syntax changes
- Configuration file format updates
- Deprecated features removed
Minor/Patch Upgrades
Minor and patch version upgrades are generally safe and include:- New features (minor versions)
- Bug fixes (patch versions)
- Performance improvements
- Security updates
Upgrading Specific Packages
To upgrade specific Evidence packages without using the upgrade command:Troubleshooting
Upgrade command not found
Upgrade command not found
Make sure you have Evidence installed locally or use npx:
Package lock conflicts
Package lock conflicts
Delete lock files and node_modules, then reinstall:
Build errors after upgrade
Build errors after upgrade
- Clear the Evidence cache:
- Rebuild your project:
Component props not working
Component props not working
Check the changelog for renamed or deprecated props in the new version. The upgrade may include breaking changes.
Manual Upgrade Process
If the automatic upgrade fails, you can manually upgrade:Staying Updated
Check Current Version
See your installed Evidence version:Release Notes
Stay informed about updates:Update Frequency
Evidence follows semantic versioning:- Patch releases (X.X.1) - Weekly, safe to upgrade immediately
- Minor releases (X.1.0) - Monthly, new features, backward compatible
- Major releases (2.0.0) - Rarely, may include breaking changes
Best Practices
Test Before Deploying
Always test upgrades in development before deploying to production
Use Version Control
Commit changes before and after upgrading to easily roll back if needed
Read Release Notes
Review the changelog to understand what’s changing
Update Regularly
Stay up to date with security patches and bug fixes
Related
- Environment Variables - Configure your Evidence project
- Build Command - Build your project after upgrading
- Development - Test your upgraded project locally