CLI Reference¶
All quiz management happens through quiz_manager.py.
Prerequisites
create — Start a new session¶
The code is what students type to join. Save it.
add-questions — Load questions from a JSON file¶
Questions are appended — if the session already has questions, new ones are added after them. See Writing Questions for the JSON format.
list — Show all active sessions¶
Output
Active Sessions:
------------------------------------------------------------
A3K7N2 | Lecture 5 Quiz | 2025-02-05
B8M4P9 | Midterm Review | 2025-02-03
------------------------------------------------------------
summary — Print results to the terminal¶
Output
============================================================
Session: Lecture 5 Quiz (A3K7N2)
============================================================
Q1: What is 2 + 2?
Total responses: 25
3 ░░░░░░░░░░░░░░░░░░░░ 2 (8.0%)
✓ 4 ████████████████████░ 20 (80.0%)
5 ██░░░░░░░░░░░░░░░░░░ 2 (8.0%)
6 █░░░░░░░░░░░░░░░░░░░ 1 (4.0%)
export — Save results as JSON¶
# Print to terminal
python quiz_manager.py export A3K7N2
# Save to file
python quiz_manager.py export A3K7N2 results.json
The JSON output includes vote counts, percentages, and per-option breakdowns.