Skip to content

ApiTreeCZ/apitree-cli-example

Repository files navigation

apitree-cli-example

Example project CLI application

Requirements

  • Node.js >= 13.x
  • Yarn >= 1.22.x

Installation

npm i

Development

Run in development mode (help)

yarn run dev --help

Run create command

yarn run dev create --name awesome-application

Run update command

yarn run dev update

Build application

Build application

npm run build

Publish in localhost (after build)

npm pack
npm i -g apitree-apitree-cli-example-0.1.0-alpha.1.tgz

Publish to remote repository

You must own NPM repository (logged in NPM or with .npmrc file)

npm publish

Run application

After publish (localhost or remote)

at-example create --name awesome-app

or with aliasses

at-example c -n awesome-app