pkg.soopen package index

brew / 排名 6168

使用 Homebrew, Nix 安装 leetcode-cli

查看 leetcode-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install leetcode-cli

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#leetcode-cli

nixpkgs package indexes · pkgs/by-name/le/leetcode-cli/package.nix · 来源: api.github.com

概览

软件包摘要

May the code be with you

命令和别名

  • leetcode

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
~/.leetcode/leetcode.toml

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.leetcode/leetcode.toml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
leetcode可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本0.5.4
管理器更新时间2026-06-29
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:leetcode-cli
版本0.5.4
软件包管理器Homebrew
主页https://github.com/clearloop/leetcode-cli
仓库https://github.com/clearloop/leetcode-cli
最后更新2026-06-29T07:59:28Z
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

leetcode-cli

nix profile install nixpkgs#leetcode-cli
  • normalized package name match
  • 匹配方式:Leetcode Cli
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/le/leetcode-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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