AntiRaidAntiRaid

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

ScriptLanguagePurpose
check_guild_count.pyPythonPrint the number of guilds the bot is currently in
helper_scripts/VariousDatabase migrations, config updates, seed scripts, backup utilities
mkroute/VariousGenerate or update routing configs
nursery/VariousExperimental scripts — may be incomplete or unstable

Running scripts

Python scripts:

python cmd/check_guild_count.py

Shell 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.sh

Check 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.