Users Management
The system uses the backend/src/slidesgen/users.yaml as the source of truth for the current users. This file contains a list of users with their emails and plaintext passwords.
You can manipulate this file directly to add, remove, or update users. After making changes to this file, you need to redeploy the application for the changes to take effect.
A better option is to use the provided CLI app to manage users. The CLI app provides commands to add, remove, list, and export users.
Using the CLI App
First, you need to follow the instruction in the optional backend setup section to set up the backend environment.
Once you have the backend environment set up, you can use the CLI app as follows:
cd backend/scripts
uv run python users.py <command> [options]
Accessing CLI APP Docs
You can access the CLI app documentation by running the following command:
uv run python users.py --help
This will display the available commands and options for managing users.
To get help on a specific command, you can run:
uv run python users.py <command> --help
Replace <command> with the specific command you want help with (e.g., add_excel, delete, list, export).