Skip to main content

💻 CLI Command Overview

leetrs provides a clean set of command-line subcommands built with clap.


📋 Command Summary Table

SubcommandArguments / FlagsPurpose
authInteractively authenticate via Chrome, Firefox, or manual token input
statusDisplay active authentication status and token previews
tui[language]Launch interactive Ratatui terminal problem browser
pick<identifier> [language] [-p, --preview]Fetch problem description & stub, generate local files, and open editor
test<file>Test local solution against sample test cases without official submission
submit<file>Submit local solution to LeetCode for full judging and statistics
completion<shell>Generate shell autocomplete scripts (bash, zsh, fish)

🌐 Global Flags

FlagShortDescription
--help-hPrint help information for leetrs or any subcommand
--version-VPrint version information (leetrs 1.1.0)

⚡ Default Action

Running leetrs with no arguments defaults to launching the interactive TUI:

leetrs
# is equivalent to:
leetrs tui