# 使用 Homebrew, Nix 安装 spr

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

## 安装

```sh
sudo av install brew:spr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install spr
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#spr
```

  证据: nixpkgs package indexes: pkgs/by-name/sp/spr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:spr
- **软件包管理器:** Homebrew
- **版本:** 1.3.7
- **来源摘要:** Submit pull requests for individual, amendable, rebaseable commits to GitHub
- **主页:** <https://spacedentist.github.io/spr/>
- **仓库:** <https://github.com/spacedentist/spr>
- **最后更新:** 2026-06-18T09:25:52+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- spr (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

spr is a Rust command-line tool for using a stacked-diff workflow with GitHub pull requests. It treats individual commits, rather than long-lived review branches, as the unit of code review.

### 项目历史

The project was created in 2022 and documents its workflow as a GitHub-oriented version of ideas familiar to users of Phabricator's arc tool. Its documentation frames the motivation as avoiding a branch-per-review workflow while still using GitHub pull requests.

### 采用历史

spr is distributed as source and binaries through GitHub releases and is packaged for Homebrew and nixpkgs. Its repository metadata and badges also point to Rust and crates.io distribution, placing it in the small but visible ecosystem of stacked-diff CLIs for GitHub users.

### 使用方式

Typical use starts with `spr init` inside a GitHub-backed repository, which writes spr settings into the repository's Git config and guides GitHub authorization. Users then run `spr diff` to create or update pull requests from commits and `spr land` to merge approved work.

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

Package-manager users care about spr because it brings a formerly review-system-specific workflow, stacked commit review, into a standalone GitHub CLI. It is useful in environments where developers want the local simplicity of rebasing a single mainline branch but still need GitHub pull requests for review and merge.

### 时间线

- 2022: GitHub repository created and v1.0.0 published.
- 2025: v1.3.7 published on GitHub releases.

### Related projects

- spr's documentation explicitly compares the workflow to Phabricator and its `arc` command-line tool. It also belongs to the broader family of stacked-diff tools used around GitHub pull requests.

### 来源

- GitHub API repository and releases metadata for spacedentist/spr, accessed 2026-07-02
- <https://github.com/spacedentist/spr>
- <https://raw.githubusercontent.com/spacedentist/spr/master/docs/reference/configuration.md>
- <https://spacedentist.github.io/spr/>
- input source_facts.package-manager


## 安全说明

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: <repo>/.git/config

## Credential files

- Unix: <repo>/.git/config
## 其他软件包管理器记录

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


## Combined YAML source

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


## 来源

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