# CLI Overview

## CLI commands

The following commands are included in [make-bot.ts](https://github.com/GhomKrosmonaute/make-bot.ts). Use these sub commands via the `bot` command to create bot objects or any else.

Type `bot <command> --help` to get help about the sub command.

<table><thead><tr><th width="211">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>bot new</code></td><td>Generate a new bot</td></tr><tr><td><code>bot config</code></td><td>Update the bot configuration</td></tr><tr><td><code>bot add</code></td><td>Generate a bot component</td></tr></tbody></table>

## PackageJSON scripts

Use these scripts via `yarn`, `npm run` of `bun run` to manage your project.

<table><thead><tr><th width="121">Command</th><th>Description</th></tr></thead><tbody><tr><td><a href="/pages/-M_0nyLe0CGICM_0RjMI">build</a></td><td>Compile TypeScript from <code>./src</code> to <code>./dist</code> directory</td></tr><tr><td><a href="/pages/-M_0nyLfPsOHVC-Z8Dlx">start</a></td><td>Build and run the bot from <code>./dist</code></td></tr><tr><td><a href="/pages/-M_0nyLgUFZwkEadDnfh">format</a></td><td>Beatify files in <code>./src</code> using a <code>--no-semi</code> config</td></tr><tr><td><a href="/pages/9CkNjxQA1iw7pLMGFh49">lint</a></td><td>Run ESLint on source code for code linting</td></tr><tr><td><a href="https://github.com/bot-ts/docs/blob/master/command-line/watch.md">watch</a></td><td>Build, run and watch files</td></tr><tr><td><a href="/pages/-M_0nyLinWowlWCkSdEe">test</a></td><td>Check if TypeScript types are valids and if the bot run correctly</td></tr><tr><td><a href="/pages/-M_0nyLjUE_jnUvu6I0q">update</a></td><td>Update core/native files of bot.ts</td></tr><tr><td><a href="https://github.com/bot-ts/docs/blob/master/command-line/README.md">readme</a></td><td>Generate a readme from your bot files</td></tr><tr><td><a href="/pages/zAfjQQWiNNBwjcP4VINY">final</a></td><td>Same of the build command, but optimized for production</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ghom.gitbook.io/bot.ts/command-line/overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
