open-index/open-npm huggingface dataset:
npm package: @mandragora-hub/cli
Description: CLI tool for management Litterarum assets.
Author: Royer Gomez
Latest version: 0.0.18

# CLI tools

This tool is used to management Litterarum. It provides a way to create, remove and edit different types of assets, for example books and authors.

## Setup

> The minimum supported version of Node.js is v14

1. Install _ai shell_:

   ```sh
   npm install -g @builder.io/ai-shell
   ```

2. Retrieve your API key from [OpenAI](https://platform.openai.com/account/api-keys)

   > Note: If you haven't already, you'll have to create an account and set up billing.

3. Set the key so ai-shell can use it:

   ```sh
   ai-shell config set OPENAI_KEY=<your token>
   ```

   This will create a `.ai-shell` file in your home directory.

## Usage

```bash
ai <prompt>
```

For example:

```bash
ai list all log file
```

Then you will get an output like this, where you can choose to run the suggested command, revise the command via a prompt, or cancel:

### Upgrading

Check the installed version with:

```bash
ai-shell --version
```

If it's not the [latest version](https://github.com/BuilderIO/ai-shell/tags), run:

```bash
npm update -g @builder.io/ai-shell
```

## License

Licensed under the APLv2. See the [LICENSE](https://github.com/jsynowiec/node-typescript-boilerplate/blob/main/LICENSE) file for details.