Migrate Command
The migrate command helps you upgrade your framework (Angular, React, Vue) to a newer version with automatic dependency alignment.Usage
Options
| Option | Description |
|---|---|
--path <dir> | Project directory (default: current) |
How It Works
1. Framework Detection
DepFixer automatically detects your framework:2. Version Selection
Use arrow keys to select your target version:3. Migration Plan
Review what will change:4. Apply Migration
After confirmation and payment:Supported Migrations
Angular
| From | To | Notes |
|---|---|---|
| 12.x | 15-19 | Multi-version jump supported |
| 13.x | 16-19 | TypeScript upgrade included |
| 14.x | 17-19 | Standalone components available |
| 15.x | 18-19 | Signals API available |
| 16.x | 18-19 | Control flow syntax |
| 17.x | 18-19 | Latest features |
React
| From | To | Notes |
|---|---|---|
| 16.x | 17-19 | Concurrent mode available |
| 17.x | 18-19 | Automatic batching |
| 18.x | 19 | React Compiler ready |
Vue
| From | To | Notes |
|---|---|---|
| 2.x | 3.x | Composition API, major rewrite |
| 3.0 | 3.4+ | Script setup, improved reactivity |
What Gets Updated
The migrate command updates:- Core framework packages - Main framework and related packages
- TypeScript - Version compatible with target framework
- Build tools - CLI, webpack plugins, etc.
- Ecosystem packages - Router, state management, UI libraries
- Type definitions -
@types/*packages
Migration vs Analyze
| Feature | Analyze | Migrate |
|---|---|---|
| Fix current issues | Yes | No |
| Upgrade framework | No | Yes |
| Version selection | No | Yes |
| Multi-version jump | No | Yes |
npx depfixer (analyze) first to fix current issues, then use migrate to upgrade your framework version.