@pitijs/cli
v0.0.1-beta.15
Published
Piti JS cli tool.
Downloads
6
Readme
PitiJS CLI
Install
NPM
$ npm i -g @pitijs/cli
Yarn
$ yarn global add @pitijs/cli
Create a project
$ piti new myCliApp
Create command via cli
$ cd myCliApp
$ piti create command add-user
The above command will create a command into src/commands directory named AddUserCommand
Add command to src/index.ts
Piti.run({
scriptName: 'myCliApp',
commands: [AddUserCommand],
});
And test your commands:
MacOS / Linux
$ ./myCliApp add-user
Windows
myCliApp>.\myCliApp.cmd hello
Go to framework documentation: https://github.com/pitijs/piti