Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ See [TUI Guide](tui.md) for complete behavior and screen-specific shortcuts.
Login to LeetCode with browser cookies.

Notes:

- `leetcode login` lets you choose site (`leetcode.com` or `leetcode.cn`) before cookie input.
- Default credential backend is system keychain.
- Set `LEETCODECLI_CREDENTIAL_BACKEND=file` with `LEETCODECLI_MASTER_KEY` for encrypted file mode.
Expand All @@ -58,6 +59,7 @@ Notes:
Clear stored credentials.

Note:

- In env auth mode (`LEETCODE_SESSION` + `LEETCODE_CSRF_TOKEN`), unset env vars in your shell to log out.

**Usage**: `leetcode logout`
Expand Down Expand Up @@ -925,6 +927,20 @@ leetcode changelog --breaking

---

## Star the Project

### `leetcode star`

Open the GitHub repository to star the project.

**Usage**: `leetcode star`

Stars help other developers discover leetcode-cli and encourage contributions.

> **Note**: The CLI also shows a non-intrusive star prompt after accepted submissions at milestones (10th, 20th, 30th) and then every 40 submissions. The prompt resets every 30 days and can be permanently dismissed.

---

## Global Options

These work with any command:
Expand Down
16 changes: 8 additions & 8 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ Config is stored per-workspace in `~/.leetcode/workspaces/<name>/config.json`.

Settings are now stored per-workspace for isolation:

| Data | Storage Location | Scope |
| ----------- | ------------------------------------------- | ------------- |
| Config | `~/.leetcode/workspaces/<name>/config.json` | Per-workspace |
| Timer | `~/.leetcode/workspaces/<name>/timer.json` | Per-workspace |
| Collab | `~/.leetcode/workspaces/<name>/collab.json` | Per-workspace |
| Snapshots | `~/.leetcode/workspaces/<name>/snapshots/` | Per-workspace |
| Credentials | Keychain (default) or `~/.leetcode/credentials.v2.enc.json` (file backend) | Shared |
| Bookmarks | `~/.leetcode/bookmarks.json` | Shared |
| Data | Storage Location | Scope |
| ----------- | -------------------------------------------------------------------------- | ------------- |
| Config | `~/.leetcode/workspaces/<name>/config.json` | Per-workspace |
| Timer | `~/.leetcode/workspaces/<name>/timer.json` | Per-workspace |
| Collab | `~/.leetcode/workspaces/<name>/collab.json` | Per-workspace |
| Snapshots | `~/.leetcode/workspaces/<name>/snapshots/` | Per-workspace |
| Credentials | Keychain (default) or `~/.leetcode/credentials.v2.enc.json` (file backend) | Shared |
| Bookmarks | `~/.leetcode/bookmarks.json` | Shared |

Use `leetcode workspace current` to see which workspace is active.

Expand Down
25 changes: 25 additions & 0 deletions docs/releases.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Release Notes

## v3.2.0

> **Release Date**: 2026-06-28
> **Focus**: Community Engagement + Security

### ⭐ Star Prompt & Command

- New `leetcode star` command — opens the GitHub repo directly.
- Non-intrusive star prompt after accepted submissions:
- **Milestones**: Shows at 10th, 20th, and 30th accepted submission (one-time each).
- **Recurring**: After all milestones, shows every 40 accepted submissions.
- **30-day reset**: Recurring counter resets if 30 days pass without reaching the threshold.
- **Dismissible**: Choose "Don't ask again" to permanently disable.
- Falls back to a passive one-liner in non-TTY environments.

### 🔒 Security

- Fixed high-severity dependency vulnerabilities (PR [#12](https://github.com/night-slayer18/leetcode-cli/pull/12)).

### 🧹 Code Quality

- Applied consistent formatting across the entire codebase (line wrapping, argument alignment).

---

## v3.1.0

> **Release Date**: 2026-05-01
Expand Down
1 change: 0 additions & 1 deletion docs/tui.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,3 @@ If your terminal still looks wrong after an interrupted session, run:
```bash
reset
```

Loading
Loading