dir-cli is a professional project migration assistant CLI tool (v2.0) that provides Git status checking, smart cleanup of dependencies and build artifacts, and migration preparation reports. It supports multiple project types including Node.js, Python, Java, Rust, and Go. Key features include dry-run mode, interactive cleanup, configurable white-listing, path validation, and multi-format output (HTML/Markdown/JSON/table). The tool is safety-oriented with dry-run previews, symlink protection, and failure isolation. It requires Node >=16 and works on macOS, Linux, or Windows (WSL).
npm install dir-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates common CLI commands: check status, dry-run cleanup, generate HTML report, interactive cleanup, config management, and locale switching.
Update scripts to use new command names: `dir-cli check` and `dir-cli report migration`.
Upgrade Node.js to >=16.0.0 or stay on v1.x if locked to older Node.
Replace `--dry` with `--dry-run`.
If you need to remove `vendor/`, use `--exclude vendor` after confirming your project does not require it.
Ensure run directory is the project root. Use `--dry-run` to preview before actual cleanup.
Check documentation for local config support; consider using environment variables or per-project `.dir-clirc` file.
Run `npm install -g dir-cli` to install globally.
Replace `--dry` with `--dry-run`.
Upgrade Node.js to version >=16.0.0, or use dir-cli v1.x (if compatible).
Navigate to a directory containing a supported project (e.g., has `package.json` or `go.mod`).