@duyle29123/mycli-tool
v1.1.0
Published
CLI tool to run custom commands from .mycli.json
Readme
MyCLI
A simple and flexible CLI tool to run custom commands defined in your project using a .mycli.json configuration file.
Installation
Install globally via npm:
npm install -g mycliUsage
Navigate to your project directory and run:
mycliConfiguration
Create a .mycli.json file in the root of your project:
{
"commands": {
"Start Dev": "npm run dev",
"Run Server": "php artisan serve",
"Check PHP Version": "php -v"
}
}How It Works
- MyCLI reads the
.mycli.jsonfile in your current working directory - Displays a list of commands as a menu
- Executes the selected command in your terminal
Example
$ mycli
✔ Choose action › Start Dev
Running npm run devRequirements
- Node.js >= 18
- Commands must be valid shell commands on your system
Features
- Simple and lightweight
- Config-driven (no hardcoded commands)
- Works with any tech stack (Node.js, Laravel, etc.)
- Interactive CLI menu
Roadmap
- Add
initcommand to generate.mycli.json - Improve command parsing (support args safely)
- Add command groups / categories
- Add support for environment variables
- Add CI/CD integration helpers
Development
Clone the repository:
git clone <your-repo-url>
cd mycli
npm installRun locally:
node cli.jsLicense
MIT
