morph-cli 0.1.0

AST-based codebase migration and codemod tool for JavaScript and TypeScript projects.
Documentation
# 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

| Argument | Description | Default |
| --- | --- | --- |
| `path` |  | . |

## `morph plan`

Plan recommended migration recipes for a project

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `path` |  | . |

## `morph explain`

Explain migration detection for a file

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `file` |  |  |

## `morph run`

Run a recipe against a target path

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `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

| Argument | Description | Default |
| --- | --- | --- |
| `id` |  |  |

## `morph rollback`

Rollback files from a previous transformation session

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `session_id` |  |  |
| `preview` |  |  |
| `force` |  |  |

## `morph replay`

Replay a previous transformation session with stored options

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `session_id` |  |  |
| `write` | Apply changes (write to disk), overrides stored mode if true |  |

## `morph scan`

Scan project and detect technologies

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `path` |  | . |

## `morph deps`

Analyze lightweight dependencies

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `path` |  | . |

## `morph score`

Calculate modernization score and readiness

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `path` |  | . |
| `format` | Output format (text or json) | text |

## `morph simulate`

Simulate migration impact without transforming files

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `recipes` | Recipes to simulate; repeat to select multiple recipes |  |
| `path` |  | . |

## `morph dashboard`

Start the local dashboard backend

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `port` | Port to listen on (default: 8080) | 8080 |

## `morph magic`

Start a guided migration workflow

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `path` |  | . |

## `morph validate-repo`

Run a full validation suite on a repository (scan, detect, dry-run, verify)

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `path` |  | . |

## `morph graph`

Generate visualization graphs (Mermaid or JSON)

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `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

| Argument | Description | Default |
| --- | --- | --- |
| `path` |  | . |

## `morph watch`

Watch for file changes and re-run migration analysis

### Arguments

| Argument | Description | Default |
| --- | --- | --- |
| `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