> For the complete documentation index, see [llms.txt](https://flavorcli.gitbook.io/flavorcli-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flavorcli.gitbook.io/flavorcli-docs/getting_started.md). Agents can also search and read this documentation through its [MCP server](https://flavorcli.gitbook.io/flavorcli-docs/~gitbook/mcp).

# Getting Started

Welcome to FlavorCLI! The following page provides instructions on how to get started using flavortown! If you haven't done so yet, please follow the [Installation Instructions](https://flavorcli.gitbook.io/flavorcli-docs/installation.md). Once you have installed your copy of FlavorCLI, come back here so we can get you started.

Great! So you've installed FlavorCLI, what next? The first thing you need to do is open your terminal of choice. Once you have done so, simply type in `flavor` and hit enter. Here you'll see all the commands you can use with FlavorCLI, along with their options. I've included documentation everywhere I can here, using the `--help` option, but if you still need help, you can check out the other pages of the docs here.

{% hint style="warning" %}
If you get an error similar to `"The term 'flavor' is not recognized as the name of a cmdlet, function, script file, or operable program."`, you do not have flavortown in your PATH variable. To add it, please follow [this guide](https://flavorcli.gitbook.io/flavorcli-docs/add_to_path.md).
{% endhint %}

![An image of the terminal print of the base usage](https://hc-cdn.hel1.your-objectstorage.com/s/v3/dc74c96bb619983c_image.png)

If you want to understand a bit more about how commands work, take a look at [Commands Basics](https://flavorcli.gitbook.io/flavorcli-docs/commands/basics.md)

### Getting your API Key

Now, before going any further, we need to get our API key to allow FlavorCLI to interact with Flavortown on your behalf. To do this, follow these steps:

1. Head over to <https://flavortown.hackclub.com/>
2. Click the gear icon near your name in the sidebar

![Press the gear icon next to log our and cookies in the sidebar](https://hc-cdn.hel1.your-objectstorage.com/s/v3/cf6d791565750c61_image.png)

3. Scroll down on that menu and copy your API key.

![Copy your API key in the settings modal](https://hc-cdn.hel1.your-objectstorage.com/s/v3/79dd5ba8da854bef_image.png)

{% hint style="danger" %}
Make sure you keep this token secret! If someone you do not trust gains access to this token, they will be able to access your **entire Flavortown account**. If you believe someone has gained access to your token, please regenerate it with the refresh button in the settings menu. You will have to follow the following steps again to add it back into FlavorCLI.
{% endhint %}

### Adding your token to FlavorCLI

Adding your token to FlavorCLI is very simple. All you have to do is run [`flavor auth set <TOKEN>`](https://flavorcli.gitbook.io/flavorcli-docs/commands/auth/set.md), with `<TOKEN>` being replaced with your actual token. You may delete your token from FlavorCLI at any time with [`flavor auth delete`](https://flavorcli.gitbook.io/flavorcli-docs/commands/auth/delete.md).

{% hint style="success" %}
FlavorCLI will store your token securely on your device using your device's keychain. It will **never** store your token externally of your device, and only uses it for authenticating with API requests that you explicitly run.
{% endhint %}

### Next Steps

Congratulations! You have now fully installed and set up FlavorCLI! From here, you may check out instructions on [how commands work](https://flavorcli.gitbook.io/flavorcli-docs/commands/basics.md), or check out instructions on individual commands. If you ever find yourself stuck, feel free to check out these docs or use the `--help` option.
