FlavorCLI
FlavorCLI is a fully-featured implementation of the Flavortown API, allowing for easier and streamlined interaction with HackClub's Flavortown.
Full Documentation
The full documentation is available on GitBook or in the Docs Folder. I've intentionally written these as more beginner friendly and less silly than this README.
Quick Start
Please note that this quick start guide may not be beginner friendly and is a bit silly.
Installation
Prebuilt (Recommended)
At some point, FlavorCLI will be available on all[^1] major package managers.
GitHub Releases
To download and install precompiled binaries from GitHub, follow these steps:
- Download the ZIP file for your platform
- Unzip the contents
- Inside, you will see the precompiled binary, plus this readme, a copy of the licence, and an installer and uninstaller script for convenience.
- (Optional) Execute the installer script.
- If you are on windows, run
powershell.exe -ExecutionPolicy Bypass -File "install-win.ps1" - If you are on linux, run
chmod +x install-linux.sh - Actually run the script
- This will move the binary to a bin directory and add it to PATH, so you can type
flavorto run the app at any time.
- If you are on windows, run
- Keep the uninstall script handy for once flavortown ends. [^1]: What that constitutes is unknown to me, I'll figure it out when it's timeā¢
Cargo
If you have cargo, you may choose to install FlavorCLI with the following command:
cargo install flavorcli
Ensure you have the cargo install directory in your PATH.
AUR
If you use Arch Linux, you can build using AUR with this command:
yay -S flavorcli
Build it yourself
- Download the source code or git clone the repo[^2]
- Download and install rust if it is not already installed
- Run
cargo build -r - Run
cargo install --path . - Ensure you have your cargo's install directory (usually
~/.cargo/bin) in PATH - Profit! [^2]: What you do is up to you, just get a copy of the code
Usage
Get your API key
- To get your Flavortown API key, go to https://flavortown.hackclub.com/kitchen and do all the things to get yourself signed in.
- Click the gear icon in the toolbar to open your settings

- Copy your API Key

-
FlavorCLI no longer requires you to get your user ID! Having said that, if you do wish to use the
--no-verifytag when setting your auth, you do still need to add your user ID. You may also choose to override the user ID linked to your token for some reason. -
Run
ft auth set <TOKEN>[^3] [^3]: You can useft auth deleteat any time to delete your API Key. Your API Key is stored on device with your device's keychain. If you want to set auth for each command, add the--auth <APIKEY>flag
Features
- Stores and verifies your API Key in your OS' keychain when using
ft auth set <USER_ID> <TOKEN>. - Get and list projects
- Get and list devlogs
- Get and list store items
- Get and list users
Planned Features
- Actually have commands
- Make those commands reflect what can be done with the API, add more
- Authorization with Flavortown.
- API Key storage with keychain.
- Actually handle the commands lol.
- API Implementation
- The rest is dependant on what additions are made to the API
- Also a few flags are planned, i've marked them in comments and cannot be bothered to write them here haha