0.0.1-beta.15 • Published 3 years ago

@pitijs/cli v0.0.1-beta.15

Weekly downloads
15
License
ISC
Repository
-
Last release
3 years ago

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