Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

yuvrajsinh5252/leetcode-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

53 Commits

Repository files navigation

LeetCode CLI

A sleek command-line tool for LeetCode - solve, test, and submit problems directly from your terminal.

2025εΉ΄03月18ζ—₯.22-20-12.mp4

πŸš€ Quick Start

1. Using pip

pip install leetcli

2. clone the repository

git clone https://github.com/yuvrajsinh5252/leetcode-cli
cd leetcode-cli
python -m venv .venv
source ./.venv/bin/activate
pip install -r requirements.txt
pip install -e .

Available Commands

Command Description Options
lc login Login to LeetCode account -
lc logout Logout from LeetCode -
lc profile Display LeetCode profile -
lc daily Show today's challenge {lang} - Language (optional)
-e/--editor - Preferred editor
-f/--full - Show full description
-s/--save - Save to file
--no-editor - Skip editor
lc list List available problems -d/--difficulty - Difficulty
-s/--status - Status
-t/--tag - Tag
-c/--category-slug - Category
lc show Display problem details {Problem Name/Number}
-c/--compact - Compact layout
lc test Test your solution {Problem Name/Number} {FILE}
lc submit Submit your solution {Problem Name/Number} {FILE}
--lang - Language
-f/--force - Skip confirmation
lc edit Edit solution in editor {Problem Name/Number} {lang}
-e/--editor - Preferred editor
lc solutions View problem solutions {Problem Name/Number}
-b/--best - Show best solutions

Usage Examples

lc list -d easy -s attempted -t array
lc edit 1 py
lc test 1 two-sum.py
lc submit 1 two-sum.py
lc solutions two-sum --best
lc daily py -e vim

🚧 Work in Progress

Todo

  • Add support for custom test cases
  • Add solution templates

About

A sleek CLI tool for LeetCode - solve problems directly from your terminal.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /