# leetcode-cli を Homebrew, Nix でインストール

leetcode-cli のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:leetcode-cli
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install leetcode-cli
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#leetcode-cli
```

  証拠: nixpkgs package indexes: pkgs/by-name/le/leetcode-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:leetcode-cli
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/leetcode-cli>
- **バージョン:** 0.5.4
- **ソース概要:** May the code be with you
- **ホームページ:** <https://github.com/clearloop/leetcode-cli>
- **リポジトリ:** <https://github.com/clearloop/leetcode-cli>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/clearloop/leetcode-cli/archive/refs/tags/v0.5.4.tar.gz>
- **最終更新:** 2026-06-29T07:59:28Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- leetcode (cli)
- leetcode (エイリアス)

## 依存関係

- openssl@3

## ビルド依存関係

- pkgconf
- rust

## macOS 提供ライブラリ

- sqlite

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.5.4
- マネージャ更新日: 2026-06-29
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/clearloop/leetcode-cli
- 検出された最新: v0.5.4 (最新)
## プロジェクトの歴史と使われ方

clearloop's `leetcode-cli` is a Rust command-line client for LeetCode workflows: picking problems, opening generated solution files, running sample tests, submitting solutions, filtering problem lists, and managing local cache data.

### プロジェクトの歴史

The project is distributed from GitHub and crates.io-style Rust installation paths, with the README emphasizing `cargo install leetcode-cli`, a Nix flake, shell completions, and local configuration.

A notable configuration milestone appears in the v0.4.0 release on 2024-06-24, which introduced the documented TOML configuration layout for editor, cookies, and storage. Later releases expanded everyday coding-practice ergonomics, including daily challenge flags, LeetCode China support, environment-variable cookie overrides, clap-derived commands, and README/docs restructuring.

### 採用の歴史

The repository shows hundreds of stars and dozens of forks, and the input package facts list Homebrew and Nix packaging. That puts it in the small but active ecosystem of terminal-first LeetCode clients used by programmers who want editor-centric practice instead of browser-only workflows.

### 使われ方

The README's quickstart has users sign in to LeetCode in a browser, then run commands such as `leetcode pick`, `leetcode edit`, `leetcode test`, and `leetcode exec`. On macOS and Linux, the tool can read Chrome cookies automatically; manual cookie setup and environment-variable overrides are documented for other cases.

### パッケージ好きにとっての重要性

The package is interesting because it packages an authenticated web-workflow CLI: browser cookies, local code generation, editor integration, shell completions, SQLite/OpenSSL build concerns, and LeetCode API changes all meet in one terminal tool.

### タイムライン

- 2024-06-24: v0.4.0 release introduced the documented TOML configuration format.
- 2024-12-24: v0.5.0 release switched command definitions to clap derive.
- 2026-06-21: v0.5.1 release notes document README/docs restructuring and macOS Chrome-cookie fixes.
- 2026-06-21: v0.5.2 release bundled SQLite to reduce system build dependency friction.

### Related projects

- It overlaps with other LeetCode CLIs in this batch, especially `leetgo`, `leetup`, and older JavaScript-era LeetCode command-line clients, but clearloop's implementation is Rust-centered and packaged for cargo, Homebrew, and Nix users.

### ソース

- <https://crates.io/crates/leetcode-cli>
- <https://github.com/clearloop/leetcode-cli>
- <https://github.com/clearloop/leetcode-cli/releases>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.leetcode/leetcode.toml

## Credential files

- Unix: ~/.leetcode/leetcode.toml
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** leetcode-cli
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Nix - leetcode-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/leetcode-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openssl@3](https://pkg.so/ja/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/ja/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [leetgo](https://pkg.so/ja/brew/leetgo/) - Shares pkgdb curated category or tags: cli, coding-practice, competitive-programming, developer-tools, leetcode.
- [leetup](https://pkg.so/ja/brew/leetup/) - Shares pkgdb curated category or tags: cli, coding-practice, developer-tools, leetcode.
- [exercism](https://pkg.so/ja/brew/exercism/) - Shares pkgdb curated category or tags: cli, coding-practice, developer-tools.
- [leetsolv](https://pkg.so/ja/brew/leetsolv/) - Shares pkgdb curated category or tags: cli, coding-practice, developer-tools, leetcode.
- [uv](https://pkg.so/ja/brew/uv/) - Shares pkgdb curated category or tags: cli, developer-tools, rust.
- [ripgrep](https://pkg.so/ja/brew/ripgrep/) - Shares pkgdb curated category or tags: cli, developer-tools, rust.
- [starship](https://pkg.so/ja/brew/starship/) - Shares pkgdb curated category or tags: cli, developer-tools, rust.
- [zoxide](https://pkg.so/ja/brew/zoxide/) - Shares pkgdb curated category or tags: cli, developer-tools, rust.

## Combined YAML source

View the package source record on GitHub. [combined/leetcode-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/leetcode-cli.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
