# 使用 Homebrew, chocolatey, MacPorts, Nix, scoop, winget 安装 stripe-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stripe-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stripe-cli
```

  证据: MacPorts ports tree: devel/stripe-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

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

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

### Windows

- Chocolatey (92%):

```sh
choco install stripe-cli
```

  证据: Chocolatey community package catalog: stripe-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','striata-reader'

- Scoop (92%):

```sh
scoop install main/stripe-cli
```

  证据: Scoop official bucket manifest trees: bucket/stripe-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Stripe.StripeCli -e
```

  证据: Windows Package Manager source index: Stripe.StripeCli from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:stripe-cli
- **软件包管理器:** Homebrew
- **版本:** 1.45.0
- **来源摘要:** Command-line tool for Stripe
- **主页:** <https://docs.stripe.com/stripe-cli>
- **仓库:** <https://github.com/stripe/stripe-cli>
- **最后更新:** 2026-07-30T22:48:39Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- stripe (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

stripe-cli is Stripe's official command-line tool for building, testing, and managing Stripe integrations from a terminal, especially local webhook and API workflows.

### 项目历史

GitHub repository metadata records the public stripe-cli repository as created on 2019-06-14. The repository README and Stripe documentation describe it as a command-line tool for Stripe that helps developers build, test, and manage integrations from the terminal.

The project fits Stripe's broader developer-experience pattern: move common dashboard and integration-test tasks into a scriptable CLI, including login, API object operations, request-log tailing, event triggering, and webhook forwarding.

### 采用历史

Stripe documents installation for macOS, Windows, Linux, npm, Homebrew, apt, yum, Scoop, winget, and direct archives. The supplied package-manager facts also show Homebrew, Chocolatey, MacPorts, Nix, Scoop, and winget packaging.

Because Stripe integration work often happens inside local web apps and CI-like scripts, the CLI became a standard developer companion rather than only an administrative tool.

### 使用方式

Common use starts with `stripe login`, which stores CLI configuration and credentials in `~/.config/stripe/config.toml`, or under `XDG_CONFIG_HOME` when set. Developers then use commands such as `stripe listen`, `stripe trigger`, `stripe logs tail`, and resource commands to exercise Stripe APIs.

The official reference says the CLI can use global configuration or project-specific configurations, supports explicit API keys and environment variables, and exposes every command and flag in the CLI reference.

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

stripe-cli is significant in package culture because it is a vendor CLI that behaves like a normal developer tool: installable from system package managers, scriptable, documented, and usable across macOS, Linux, and Windows.

It is also a modern example of package-manager adoption as developer acquisition: getting `stripe` into Homebrew, Scoop, winget, npm, and distro-style repos makes payment integration testing feel like any other local CLI workflow.

### 时间线

- 2019-06-14: GitHub repository metadata records public repository creation.
- 2019: Early tagged versions begin in the public repository tag set.
- 2026: Official docs describe sandbox, API-key, webhook, logs, and project-configuration workflows in the CLI reference.

### Related projects

- Stripe API, Stripe Dashboard, webhook endpoints, npm package `@stripe/cli`, Stripe's Scoop bucket, and package-manager formulas/manifests are adjacent surfaces.

### 来源

- <https://docs.stripe.com/cli>
- <https://docs.stripe.com/stripe-cli>
- <https://docs.stripe.com/stripe-cli/install>
- <https://docs.stripe.com/stripe-cli/keys>
- <https://github.com/stripe/stripe-cli#readme>
- source_facts.package-manager


## 安全说明

没有找到 stripe-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: $XDG_CONFIG_HOME/stripe/config.toml, ~/.config/stripe/config.toml

## Credential files

- Unix: $XDG_CONFIG_HOME/stripe/config.toml, ~/.config/stripe/config.toml
## 其他软件包管理器记录

- Nix - stripe-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/stripe-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - stripe-cli: normalized package name match | MacPorts ports tree: devel/stripe-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - stripe-cli: normalized package name match | Chocolatey community package catalog: stripe-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','striata-reader'
- Scoop - main/stripe-cli: normalized package name match | Scoop official bucket manifest trees: bucket/stripe-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Stripe.StripeCli: normalized package name match | Windows Package Manager source index: Stripe.StripeCli from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/stripe-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/stripe-cli.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
