@julienvanbeveren/kit
v5.6.0
Published
A customizable CLI toolkit
Readme
@julienvanbeveren/kit
A customizable CLI toolkit that allows you to create and manage your own command-line tools.
Installation
You can install the toolkit globally:
npm install -g @julienvanbeveren/kitOr run it directly with npx:
npx @julienvanbeveren/kit <command>Usage
Once installed, you can run any available command using:
kit <command> [arguments]For example:
kit hello
kit hello "John"Creating New Commands
To create a new command:
- Create a new directory in the
scriptsfolder with your command name - Add a
manifest.jsonfile with the command configuration:
{
"command": "your-command",
"description": "Description of what your command does",
"arguments": [
{
"name": "arg-name",
"description": "Description of the argument",
"required": true|false
}
],
"dependencies": [
"list of required tools"
]
}- Create a
script.tsfile with your command implementation:
export default function yourCommand(arg1: string, arg2: string) {
// Your command logic here
}Development
- Clone the repository
- Install dependencies:
npm install- Build the project:
npm run build- For development with hot-reload:
npm run devLicense
MIT
