rvr upgrade
Upgrade your RIVORA project to a newer version. Handles NuGet package updates, configuration migrations, and breaking change detection.
Usage
bash
rvr upgrade [options]Options
| Flag | Description | Default |
|---|---|---|
--list | List available upgrade versions | false |
--to <version> | Target version to upgrade to | Latest |
--dry-run | Preview upgrade steps without applying | false |
--skip-backup | Skip project backup before upgrading | false |
--force | Skip confirmation prompts | false |
List Available Versions
bash
rvr upgrade --listAvailable Upgrades
──────────────────
3.1.0 Current
3.2.0 Minor - New export formats, bug fixes
4.0.0 Major - .NET 10 support, new module system
Use: rvr upgrade --to <version>Preview an Upgrade
bash
rvr upgrade --to 4.0 --dry-runUpgrade Plan: 3.1.0 -> 4.0.0
─────────────────────────────
Steps:
1. Update 12 NuGet packages
2. Migrate rivora.json schema (v3 -> v4)
3. Rename namespace: Rivora.Core -> Rivora.Framework
4. Update DI registration: AddRivora() -> AddRivoraFramework()
5. Generate database migration for schema changes
Breaking Changes:
- IRepository<T> interface updated (new method: GetPagedAsync)
- ITenantStore renamed to ITenantProvider
- Removed: AddRivoraLegacyAuth() (use AddRivoraSecurity())
Run without --dry-run to apply.Apply an Upgrade
bash
rvr upgrade --to 4.0The CLI will:
- Create a backup of your project
- Update all RIVORA NuGet packages
- Apply automated code transformations
- Update configuration files
- Generate required database migrations
- Display any manual steps needed
Examples
Upgrade to the latest version:
bash
rvr upgradeUpgrade to a specific version with dry-run:
bash
rvr upgrade --to 3.2.0 --dry-runUpgrade without backup (CI environments):
bash
rvr upgrade --to 4.0 --skip-backup --force