百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

stripe-cli

> 编程语言
开源

Stripe 的命令行工具

2.1K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Stripe 的命令行工具

Stripe CLI

Stripe CLI 可帮助您从终端直接构建、测试和管理 Stripe 集成。 **使用 CLI,您可以:

  • 在不依赖第三方软件的情况下安全地测试 webhooks
  • 触发 Webhook 事件或重新发送事件,以便轻松进行测试
  • 实时跟踪 API 请求日志
  • 创建、检索、更新或删除 API 对象。

安装

Stripe CLI 可用于 macOS、Windows 和 Linux (Ubuntu、Debian、RedHat 和 CentOS 等发行版)。

npm (macOS、Linux、Windows)

如果已安装 Node.js >= 18,则可以通过 npm 安装:

bash
npm install -g @stripe/cli

您也可以通过 npx 直接执行命令,尽管这不会将 stripe 添加到您的 PATH 中:

bash
npx @stripe/cli login

macOS

Homebrew:

bash
brew install stripe

Linux

apt (Debian、Ubuntu):

bash
curl -s https://packages.stripe.dev/api/security/keypair/stripe-cli-gpg/public | gpg --dearmor | sudo tee /usr/share/keyrings/stripe.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/stripe.gpg] https://packages.stripe.dev/stripe-cli-debian-local stable main" | sudo tee -a /etc/apt/sources.list.d/stripe.list
sudo apt update
sudo apt install stripe

yum/dnf (RedHat、Fedora、CentOS):

bash
echo -e "[Stripe]\nname=stripe\nbaseurl=https://packages.stripe.dev/stripe-cli-rpm-local/\nenabled=1\ngpgcheck=0" | sudo tee -a /etc/yum.repos.d/stripe.repo
sudo yum install stripe

Windows

WinGet:

bash
winget install Stripe.StripeCLI

摘要:

bash
scoop bucket add stripe https://github.com/stripe/scoop-stripe-cli.git
scoop install stripe

Docker

CLI 还可作为 Docker 镜像提供: stripe/stripe-cli。

bash
docker run --rm -it stripe/stripe-cli version
stripe version x.y.z (beta)

使用 Docker 设置密码存储 虽然测试模式不需要存储密码,但如果您希望执行实时模式请求,则需要进行设置。

还可以通过添加 --api-key 标志,按命令进行实时模式请求。

  1. 创建 entrypoint.sh
…
  1. 创建 Docker 文件 Dockerfile-cli
bash
FROM stripe/stripe-c

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言