[![npm version](https://img.shields.io/npm/v/leetcode-cli.svg?style=flat)](https://www.npmjs.com/package/leetcode-cli) [![Releases](https://img.shields.io/github/release/skygragon/leetcode-cli.svg?style=flat)](https://github.com/skygragon/leetcode-cli/releases) [![license](https://img.shields.io/npm/l/leetcode-cli.svg?style=flat)](https://github.com/skygragon/leetcode-cli/blob/master/LICENSE) [![Build](https://img.shields.io/travis/skygragon/leetcode-cli.svg?style=flat)](https://travis-ci.org/skygragon/leetcode-cli) [![Join chat at https://gitter.im/skygragon/leetcode-cli](https://img.shields.io/gitter/room/skygragon/leetcode-cli.svg?style=flat)](https://gitter.im/skygragon/leetcode-cli) # leetcode-cli > Note: This repository is forked from [leetcode-cli](https://github.com/skygragon/leetcode-cli) for temporary usage. > Note: Copy cookie from webbrowser and Using **leetcode user -c** can temporary fix can't [login problem](https://github.com/jdneo/vscode-leetcode/issues/478). A productive cli tool to enjoy leetcode! Great thanks to leetcode.com, a really awesome website! ⦙ [Releases](https://skygragon.github.io/leetcode-cli/releases) ⦙ [Install](https://skygragon.github.io/leetcode-cli/install) ⦙ [Docs](https://skygragon.github.io/leetcode-cli/) ⦙ [Commands](https://skygragon.github.io/leetcode-cli/commands) ⦙ [Advanced](https://skygragon.github.io/leetcode-cli/advanced) ⦙ [Plugins](https://github.com/skygragon/leetcode-cli-plugins) ⦙ * A very [**EFFICIENT**](#quick-start) way to fight questions. * [**CACHING**](https://skygragon.github.io/leetcode-cli/advanced#cache) questions to ease offline thinking. * [**GENERATING**](https://skygragon.github.io/leetcode-cli/commands#show) source code before coding. * Live [**TEST**](https://skygragon.github.io/leetcode-cli/commands#test) and [**SUBMIT**](https://skygragon.github.io/leetcode-cli/commands#submit) with leetcode.com. * Download your previous [**SUBMISSION**](https://skygragon.github.io/leetcode-cli/commands#submission). * Trace your coding [**STATUS**](https://skygragon.github.io/leetcode-cli/commands#stat). * [**AUTO LOGIN**](https://skygragon.github.io/leetcode-cli/advanced#auto-login) among multiple agents with single account. * Multiple [**THEMES**](https://skygragon.github.io/leetcode-cli/advanced#color-themes) support. * More [**PLUGINS**](https://skygragon.github.io/leetcode-cli/advanced#plugins) to enjoy extra features! ## Screenshot ## Quick Start Read help first $ leetcode help Login with your leetcode account $ leetcode user -l Login with third party account--GitHub $ leetcode user -g Login with third party account--LinkedIn $ leetcode user -i Cookie login with cookie $ leetcode user -c Browse all questions $ leetcode list Choose one question $ leetcode show 1 -g -l cpp Coding it! Run test(s) and pray... $ leetcode test ./two-sum.cpp -t '[3,2,4]\n7' Submit final solution! $ leetcode submit ./two-sum.cpp