Open source · modulane
dev-workspace-cli
v0.11.0modulane/dev-workspace-cli
An interactive CLI for browsing development projects and running their scripts with npm, pnpm, Yarn or Bun.
Fetched from GitHub
- Stars
- 0
- Forks
- 1
- Contributors
- 3
- Downloads
- 3701
- npm 3,701
- Open issues
- 17
- Closed issues
- 30
- Open PRs
- 0
- Closed PRs
- 46
- Licence
- MIT
- Updated
Live from GitHub · synced
Notes
I keep every project in one folder, and most of my day starts the same way: cd into a project, open package.json to remember what the dev script is called, then type it with the right package manager. Dev Workspace CLI turns that into one menu: pick a project, pick a script, and it runs in that folder with npm, pnpm, Yarn or Bun, whichever the project uses.
It stays small on purpose. It has three runtime dependencies: Inquirer for the prompts, cross-spawn so scripts start the same way on Windows, and string-width to measure text. The rest is plain Node.js, so it installs in seconds and has little to break when Node.js moves on. Every module in lib/ has its own test file, and CI runs them on Windows, macOS and Linux with Node.js 22, 24 and 26.
Terminals turned out to be the hard part. Mouse support works differently in Windows Terminal, Git Bash, the VS Code terminal and macOS Terminal, so I checked each one by hand and wrote down the results before shipping it. Monorepos were the other surprise: reading pnpm workspace files correctly took several fixes for indentation, comments and lists split over several lines.
The roadmap leads to 1.0.0 in public, with each milestone labelled with the release that shipped it. What remains is configuration, custom commands, and a hardening pass before the release candidate.
Try it
> test> node --test✔ an empty cart costs nothing (0.7752ms)✔ adds up each line (0.1339ms)✔ ignores lines with no quantity (0.1038ms)ℹ tests 3ℹ suites 0ℹ pass 3ℹ fail 0ℹ cancelled 0ℹ skipped 0ℹ todo 0ℹ duration_ms 85.6474 ✔ test finished in 0.9s ↻ Run again ← Back to scripts enter press · ←→ move · r run again · esc back
Languages
- JavaScript100.0%
README Full README ↗
Fetched from GitHub
Browse the projects in your development folder and run their scripts from one interactive menu, without changing directories or remembering script names.
Dev Workspace CLI detects each project's package manager (npm, pnpm, Yarn or Bun) and runs scripts with it, on Windows, macOS and Linux.
Features
- One menu for every project: lists the projects in your workspace folder and the scripts defined in each
package.json, including the packages of npm, Yarn and pnpm monorepos. - The right package manager: runs each project's scripts with npm, pnpm, Yarn or Bun, detected from the project itself.
- Fast to navigate: type a few letters to find a project or script, recently used projects come first, and
dws web devruns a script in one command. Menus also work with the mouse, with buttons for every action. - Stays out of the way: scripts run in the project folder with full terminal output. Pressing Ctrl+C stops the script and brings you back to the menu.
- Short commands: start it with
dev-workspace,dws, or an alias of your choice. - Remembers your workspace: the workspace, recent projects and last scripts are stored in your user profile and survives updates and reinstalls.
- Cross-platform: tested on Windows, macOS and Linux with Node.js 22, 24 and 26.