# 使用 Homebrew 安装 leetup

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

## 安装

```sh
sudo av install brew:leetup
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install leetup
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:leetup
- **软件包管理器:** Homebrew
- **版本:** 1.2.5
- **来源摘要:** Command-line tool to solve Leetcode problems
- **主页:** <https://github.com/dragfire/leetup>
- **仓库:** <https://github.com/dragfire/leetup>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- leetup (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.2.5
## 项目历史与用法

`leetup` is a Rust command-line tool for solving LeetCode problems from a terminal, with commands for login, picking problems, testing, submitting, listing, and injecting reusable code fragments.

### 项目历史

The README documents a terminal workflow centered on `leetup user -c`, `leetup pick`, `leetup test`, `leetup submit`, and `leetup list`. It also documents `~/.leetup/config.json` for language defaults, code injection, and pick hooks that run scripts before or after generated files are created.

The release stream visible on GitHub includes v1.1.0 on 2023-01-05, v1.2.0 on 2023-05-23 with cookie-login support, several September 2023 maintenance releases around test input and output printing, and v1.2.5 on 2024-03-24 with language-in-config support.

### 采用历史

The repository shows over a hundred stars and Homebrew packaging in the README. Its audience appears to be editor-and-terminal LeetCode users who want code generation and test submission without a browser-centered workflow.

### 使用方式

Users install with Homebrew, Cargo, or release archives, authenticate by copying LeetCode cookie values, pick a problem in a target language, run local tests, submit a solution, and optionally configure reusable snippets or project-specific file movement hooks.

### 为什么软件包爱好者会关心

Leetup is a compact example of the LeetCode CLI pattern in Rust: package-manager installation, authenticated web scraping/API use, local config under a dot directory, generated code markers, and hooks for reshaping output files into a user's preferred project layout.

### 时间线

- 2023-01-05: v1.1.0 was released.
- 2023-05-23: v1.2.0 added cookie-login support and improved result printing.
- 2023-09-04: v1.2.3 added stdin support for test data.
- 2023-09-09: v1.2.4 improved execution-result printing.
- 2024-03-24: v1.2.5 release notes mention language-in-config support.

### Related projects

- The README credits leetcode-tools/leetcode-cli as inspiration and also points Neovim users to leetup.nvim.

### 来源

- <https://github.com/dragfire/leetup>
- <https://github.com/dragfire/leetup/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: ~/.leetup/config.json

## Combined YAML source

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


## 来源

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