DEV Community

PRAS Samin
PRAS Samin

Posted on

Thinking of building a modern CLI for managing custom commands - would you use it?

Hey ๐Ÿ‘‹
Iโ€™m experimenting with an idea for a new command-line tool to enable developers to build, organize and run their own custom commands in JavaScript - itโ€™s like a modern version of hacking together bash scripts.

๐Ÿงฉ The Problem:
Shell scripting is ugly and non-portable (across MacOS, Linux, Windows).
You start hacking up. sh scripts.
Working with personal scripts (so you make them executable, list them, sync your changes) is awkward.

โšก The Idea:
A CLI that serves as your personal command manager, you can:
Scripting in JavaScript (with a little helper API).
Save them to a place โ€” immediately usable elsewhere as subcommands, e.g., mycli deploy or mycli clean.
Manage them as easily: mycli add, mycli list, mycli remove.

(Later) sync/backup them cloud or even per-project automation through devDependencies.

It's like if npm, bash and VS Code snippets had a baby ๐Ÿ˜…

๐Ÿงญ Tech Vision:

Built as a Node. js CLI (via NPM).
Load your JS scripts dynamically at runtime using libraries such as Commander and Yargs.
Each one is run right inside the cliโ€™s fancy, stand-alone JS runtime (fast and also portable).

Iโ€™m curious:
๐Ÿ‘‰ Will you would use something like as a replacement of little bash scripts or task runners?

I would like to receive some feedback prior to actively developing it.

Top comments (0)