CLI Tools
Command-line scripts for AntiRaid development, maintenance, and migration tasks.
Updated April 11, 2026
The cmd/ directory contains helper scripts for development and ops tasks. These are not part of any running service — they're one-off tools you run manually when needed.
Scripts
| Script | Language | Purpose |
|---|---|---|
check_guild_count.py | Python | Print the number of guilds the bot is currently in |
helper_scripts/ | Various | Database migrations, config updates, seed scripts, backup utilities |
mkroute/ | Various | Generate or update routing configs |
nursery/ | Various | Experimental scripts — may be incomplete or unstable |
Running scripts
Python scripts:
python cmd/check_guild_count.pyShell scripts:
bash cmd/helper_scripts/some-script.sh
# or make them executable first:
chmod +x cmd/helper_scripts/some-script.sh
./cmd/helper_scripts/some-script.shCheck the comments at the top of each script for the arguments and environment variables each one expects.
Scripts in nursery/ are experimental. Read the script before running it —
some may have destructive side effects.
Adding new scripts
Put new scripts in cmd/. If a script is intended for regular use, add it to the table above. If it's a one-off migration, put it in helper_scripts/ with a descriptive filename and a comment explaining what it does and when to run it.