<commit_before>---
meta:
- name: description
  content: Documentation over Command provided by Ts.ED framework. Use commands to build your CLI API.
- name: keywords
  content: command ts.ed commander inquirer typescript node.js javascript decorators jsonschema class models
---
# Command

`@tsed/cli-core` is the npm module that provide API to create CLI. It can be to create your own CLI or to run your Ts.ED
application code. Ts.ED cli-core use [commander](https://www.npmjs.com/package/commander) to parse cli
arguments, [Inquirer](https://www.npmjs.com/package/inquirer)
to display prompt and [Listr](https://www.npmjs.com/package/lisr) to run tasks.

The cli-core works as a standalone process, like the classic entry point, and will initialize a container to run your
code (Service/Provider/etc...).

1) Bootstrap (entry point e.g: `bin/index.ts`) is invoked by cli.
2) Create a headless Ts.ED Application.
3) Create command with decorator and inject service from your existing code.

## Installation

```bash
npm install @tsed/cli-core
# Or yarn
yarn add  @tsed/cli-core
```

> Note: You have to install the @tsed/cli-core

::: tip If you start your project from scratch, you can use Ts.ED cli v3 to bootstrap your project with the Command
feature.
:::<commit_msg>doc: Fix link to Listr NPM package (#1424)<commit_after>---
meta:
- name: description
  content: Documentation over Command provided by Ts.ED framework. Use commands to build your CLI API.
- name: keywords
  content: command ts.ed commander inquirer typescript node.js javascript decorators jsonschema class models
---
# Command

`@tsed/cli-core` is the npm module that provide API to create CLI. It can be to create your own CLI or to run your Ts.ED
application code. Ts.ED cli-core use [commander](https://www.npmjs.com/package/commander) to parse cli
arguments, [Inquirer](https://www.npmjs.com/package/inquirer)
to display prompt and [Listr](https://www.npmjs.com/package/listr) to run tasks.

The cli-core works as a standalone process, like the classic entry point, and will initialize a container to run your
code (Service/Provider/etc...).

1) Bootstrap (entry point e.g: `bin/index.ts`) is invoked by cli.
2) Create a headless Ts.ED Application.
3) Create command with decorator and inject service from your existing code.

## Installation

```bash
npm install @tsed/cli-core
# Or yarn
yarn add  @tsed/cli-core
```

> Note: You have to install the @tsed/cli-core

::: tip If you start your project from scratch, you can use Ts.ED cli v3 to bootstrap your project with the Command
feature.
:::
{'fraction_non_alphanumeric': 0.09642301710730948, 'fraction_numerical': 0.004665629860031105, 'mean_word_length': 4.10515873015873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2600535', 'n_tokens_mistral': 804, 'n_tokens_neox': 758, 'n_words': 339}