Skip to main content

Management Commands CLI

TriviaFlow includes a set of command-line interface (CLI) tools to help administrators manage the application, configure game settings, and perform maintenance.

These commands are run using Python's manage.py utility, which is the standard entry point for Django applications.

How to Run Commands

If you are running TriviaFlow using Docker (recommended), you execute these commands inside the running application container.

The general syntax is:

docker exec -it triviaflow_app python manage.py <command_name> [options]
  • triviaflow_app: The name of your Docker container (check with docker ps).
  • python manage.py: The Python script that executes the command.
  • <command_name>: The specific command you want to run (e.g., migrate, init_game_config).

Command Categories

We have divided the commands into two categories:

  • Custom Commands: Specific to TriviaFlow, handling game configuration, presets, and fake players.
  • Standard Commands: Standard Django commands for database migrations, static files, and admin user creation.