Được TopGit lập chỉ mục từ metadata GitHub: stripe/stripe-cli có 2.2k sao, viết chủ yếu bằng Go. A command-line tool for Stripe
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
The CLI is also available as a Docker image: stripe/stripe-cli.
docker run --rm -it stripe/stripe-cli version
stripe version x.y.z (beta)
Password Store Setup with Docker
While test mode doesn’t require password store, you will need to set it up if you wish to perform live mode requests.
You can also make live mode requests on a per command basis by attaching the --api-key flag.
Create entrypoint.sh
#!/bin/sh
if ! [ -f ~/.gnupg/trustdb.gpg ] ; then
chmod 700 ~/.gnupg/
gpg --quick-generate-key stripe-live # This will generate a gpg key called "stripe-live"
fi
if ! [ -f ~/.password-store/.gpg-id ] ; then
pass init stripe-live # This will initialize a password store record named "stripe-live", using the gpg key above
pass insert stripe-live # This will insert value for the password store "stripe-live", which we will put Stripe Live Secret Key in
fi
string="$@"
liveflag="--live"
if [ -z "${string##*$liveflag*}" ] ;then
OPTS="--api-key $(pass show stripe-live)" # This will use the content of the password store "stripe-live" which was inserted in line 8
fi
#pass insert stripe-live
/bin/stripe $@ $OPTS
Create a docker file Dockerfile-cli
FROM stripe/stripe-cli:vx.x.x
RUN apk add pass gpg-agent
COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
Build the docker image
docker build -t stripe-cli -f Dockerfile-cli .
Run the docker image with password volumes, replacing $command with the appropraite Stripe CLI command (i.e customers list)
For live mode requests append --live after $command.
Without package managers
Download the latest release for your platform from the GitHub Releases page.
macOS:
tar -xvf stripe_X.X.X_mac-os_ARCH.tar.gz
Optionally move the stripe binary to /usr/local/bin for global access.
Linux:
tar -xvf stripe_X.X.X_linux_x86_64.tar.gz
Move the stripe binary to a directory on your PATH.
Windows:
Unzip stripe_X.X.X_windows_x86_64.zip and add the path containing stripe.exe to your Path environment variable.
Note: Anti-virus software may flag the binary as unsafe. This is a false positive; see issue #692 for details.
Upgrading
Automatic updates
When you install using a script, the CLI checks for updates as you use it and automatically installs updates within the same major version.
To disable automatic updates, set STRIPE_NO_AUTO_UPDATE=1 or add auto_update = false to ~/.config/stripe/config.toml.
Manual upgrades
If you installed using a package manager, use the matching upgrade command.
npm (macOS, Linux, Windows)
npm install -g @stripe/cli
macOS
Homebrew:
brew upgrade stripe
Linux
apt (Debian, Ubuntu):
sudo apt update && sudo apt upgrade stripe
yum/dnf (RedHat, Fedora, CentOS):
yum update stripe
Windows
WinGet:
winget upgrade Stripe.StripeCLI
Scoop:
scoop update stripe
Docker
docker pull stripe/stripe-cli:latest
Because Docker containers are ephemeral, the stripe login command isn't supported. Use the --api-key flag instead.
Without package managers
Download the latest release for your platform from the GitHub Releases page and replace your existing binary.
Uninstalling
1. Remove your plugins
Package managers only remove the stripe binary; they leave installed plugins behind. Remove plugins first, while the stripe binary is still available:
stripe plugin uninstall --all
2. Remove the CLI
npm (macOS, Linux, Windows):
npm uninstall -g @stripe/cli
Homebrew (macOS):
brew uninstall stripe
apt (Debian, Ubuntu):
sudo apt remove stripe
yum/dnf (RedHat, Fedora, CentOS):
sudo yum remove stripe
WinGet (Windows):
winget uninstall Stripe.StripeCLI
Scoop (Windows):
scoop uninstall stripe
Docker:
docker rmi stripe/stripe-cli
Without package managers:
Delete the stripe binary you downloaded.
3. Optionally remove configuration and credentials
Uninstalling the CLI intentionally keeps your configuration, so reinstalling preserves your projects and settings. It is only removed if you remove it yourself:
# Clear stored credentials for every project you are logged into
stripe logout --all
# Remove all remaining CLI configuration
rm -rf "${XDG_CONFIG_HOME:-$HOME/.config}/stripe"
Usage
Installing the CLI provides access to the stripe command.
stripe [command]
# Run `--help` for detailed information about CLI commands
stripe [command] help
Commands
The Stripe CLI supports a broad range of commands. Below are some of the most used ones:
login
listen
trigger
logs tail
events resend
config
open
get, post & delete commands
resource commands
Documentation
For a full reference, see the CLI reference site
Telemetry
The Stripe CLI includes a telemetry feature that collects some usage data. See our telemetry reference for details.
Feedback
Got feedback for us? Please don't hesitate to tell us on feedback.
Contributing
See CONTRIBUTING.md for details on developing the Stripe CLI. All contributions are governed by the code of conduct.
stripe/stripe-cli có 2.2k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/stripe/stripe-cli. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
stripe/stripe-cli có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho stripe/stripe-cli. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
stripe/stripe-cli còn đang phát triển không?
Commit gần nhất trên stripe/stripe-cli là 3 ngày trước (theo timestamp GitHub). Repo có 560 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
stripe/stripe-cli là gì?
stripe/stripe-cli (stripe/stripe-cli) là dự án Go trên GitHub. Theo mô tả gốc: A command-line tool for Stripe
stripe/stripe-cli viết bằng ngôn ngữ gì?
stripe/stripe-cli chủ yếu viết bằng Go. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
stripe-cli có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về stripe-cli.