# Morph Commands
## `morph version`
Print the current morph version
## `morph list`
List available migration recipes
## `morph init`
Initialize a new morph.toml configuration file
### Arguments
| `path` | | . |
## `morph plan`
Plan recommended migration recipes for a project
### Arguments
| `path` | | . |
## `morph explain`
Explain migration detection for a file
### Arguments
| `file` | | |
## `morph run`
Run a recipe against a target path
### Arguments
| `args` | | |
| `write` | | |
| `dry_run` | | |
| `review` | | |
| `autofix` | | |
| `verbose` | | |
| `summary_only` | | |
| `max_preview_lines` | | |
| `allow_risky` | | |
| `strict` | | |
| `report_json` | Generate JSON report | |
| `report_md` | Generate Markdown report | |
| `report_dir` | Output directory for reports | .morph/reports |
| `format` | Enable formatting preservation | |
| `prettier` | Use Prettier for formatting | |
| `no_format` | Disable formatting | |
| `jobs` | Number of parallel jobs (default: CPU count) | |
| `sequential` | Run sequentially (disable parallelism) | |
| `package` | Limit execution to a workspace package by package name | |
## `morph sessions`
List migration run sessions
## `morph session`
Show a migration run session
### Arguments
| `id` | | |
## `morph rollback`
Rollback files from a previous transformation session
### Arguments
| `session_id` | | |
| `preview` | | |
| `force` | | |
## `morph replay`
Replay a previous transformation session with stored options
### Arguments
| `session_id` | | |
| `write` | Apply changes (write to disk), overrides stored mode if true | |
## `morph scan`
Scan project and detect technologies
### Arguments
| `path` | | . |
## `morph deps`
Analyze lightweight dependencies
### Arguments
| `path` | | . |
## `morph score`
Calculate modernization score and readiness
### Arguments
| `path` | | . |
| `format` | Output format (text or json) | text |
## `morph simulate`
Simulate migration impact without transforming files
### Arguments
| `recipes` | Recipes to simulate; repeat to select multiple recipes | |
| `path` | | . |
## `morph dashboard`
Start the local dashboard backend
### Arguments
| `port` | Port to listen on (default: 8080) | 8080 |
## `morph magic`
Start a guided migration workflow
### Arguments
| `path` | | . |
## `morph validate-repo`
Run a full validation suite on a repository (scan, detect, dry-run, verify)
### Arguments
| `path` | | . |
## `morph graph`
Generate visualization graphs (Mermaid or JSON)
### Arguments
| `graph_type` | Type of graph to generate (pipeline, workspace, deps) | pipeline |
| `format` | Output format (mermaid or json) | mermaid |
| `path` | | . |
## `morph preset`
Manage preset workflows
## `morph verify`
Verify the integrity of transformed files (syntax, imports, exports)
### Arguments
| `path` | | . |
## `morph watch`
Watch for file changes and re-run migration analysis
### Arguments
| `path` | | . |
| `recipes` | Recipe to analyze; repeat to select multiple recipes | |
| `debounce_ms` | Debounce delay in milliseconds | 500 |
## `morph ai`
AI-powered suggestions and analysis
## `morph plugins`
Manage plugins
## `morph docs`
Generate markdown documentation for Morph CLI components