https://github.com/apitreecz/apitree-cli-example
Example Node.js CLI application
https://github.com/apitreecz/apitree-cli-example
nodejs nodejs-cli typescript yargs
Last synced: 3 months ago
JSON representation
Example Node.js CLI application
- Host: GitHub
- URL: https://github.com/apitreecz/apitree-cli-example
- Owner: ApiTreeCZ
- Created: 2020-04-19T14:07:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:47:05.000Z (over 2 years ago)
- Last Synced: 2025-02-13T00:51:06.820Z (4 months ago)
- Topics: nodejs, nodejs-cli, typescript, yargs
- Language: JavaScript
- Homepage: https://www.apitree.cz/blog/cli-aplikace-v-node-js
- Size: 845 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apitree-cli-example
> Example project CLI application
## Requirements
- Node.js >= 13.x
- Yarn >= 1.22.x## Installation
```bash
npm i
```## Development
Run in development mode (help)
```bash
yarn run dev --help
```Run create command
```bash
yarn run dev create --name awesome-application
```Run update command
```bash
yarn run dev update
```## Build application
Build application
```bash
npm run build
```## Publish in localhost (after build)
```bash
npm pack
``````bash
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)
```bash
npm publish
```## Run application
> After publish (localhost or remote)```bash
at-example create --name awesome-app
```or with aliasses
```bash
at-example c -n awesome-app
```