An open API service indexing awesome lists of open source software.

https://github.com/vincecao/node-cli-starter


https://github.com/vincecao/node-cli-starter

commanderjs nodejs

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Node CLI Starter

A simple command-line interface tool template for greeting users, with [commander](https://github.com/tj/commander.js) and typescript

## Development

```bash
pnpm i

pnpm run dev hello [name]

pnpm run test
```

## Installation

Install the package globally using npm, make sure build before install:

```bash
pnpm run build

npm install -g .
```

## Uninstallation

```bash
npm remove -g node-cli-starter
```

## Usage

### Basic Command

To greet someone:

```bash
mycli hello [name]
```

Example:

```bash
mycli hello John
```

### Language Option

You can specify the greeting language using the `-l` or `--language` option. Currently supports:

- `en` (default) - English
- `es` - Spanish

Example:

```bash
mycli hello Maria --language es
```

## Commands

| Command | Description | Options |
| -------------- | --------------------------- | ----------------------- |
| `hello ` | Greets the specified person | `-l, --language ` |

## Version

Current version: 1.0.0

## License

[MIT](LICENSE)