hoyscli
v1.0.4
Published
A simple interactive CLI with auto-loaded shortcut commands.
Readme
HoysCLI
HoysCLI is a small interactive Node.js CLI that loads commands automatically from the cmds/ folder.
Features
- Interactive shell mode
- Auto-loaded commands from categorized folders
helpcommand grouped by categoryhelp <command>for command detailsupdatecommand for global package updates- Simple structure that is easy to extend
Project Structure
hoyscli/
├─ package.json
├─ index.js
├─ loader.js
├─ LICENSE
├─ README.md
└─ cmds/
├─ general/
│ ├─ help.js
│ └─ update.js
├─ project/
│ ├─ create.js
│ └─ build.js
└─ utils/
├─ clear.js
└─ info.jsRequirements
- Node.js 18 or newer
- npm
Install
npm install hoyscli -gOr
git clone https://github.com/IsolatedLabs/HoysCLI/
cd HoysCLI
npm installRun
hoyscliOr
node index.jsExample
HoysCLI - X.X.X
Run "help" if you need to learn the available commands.
> helpAdding a command
Create a file inside one of the category folders in cmds/.
Example:
export default {
name: "ping",
category: "general",
description: "Test the CLI.",
usage: "ping",
async run() {
console.log("pong");
}
};It will be loaded automatically the next time HoysCLI starts.
License
MIT License. See LICENSE.
