stripe/stripe-cli — an open-source project — sits at 2.2k GitHub stars. A command-line tool for Stripe
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
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.
TopGit's last sync did not record any GitHub topics for stripe/stripe-cli. GitHub topics appear in the right sidebar of a repository page; that's the authoritative place to check.
How active is development on stripe/stripe-cli?
The most recent commit recorded on stripe/stripe-cli was 1 day ago, based on the GitHub push timestamp. The repository has 560 forks — one of the better signals of community interest.
How many stars does stripe/stripe-cli have?
stripe/stripe-cli has 2.2k GitHub stars — refresh the page for the live number, or check github.com/stripe/stripe-cli. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What is stripe/stripe-cli?
stripe/stripe-cli (stripe/stripe-cli) is a Go project on GitHub. From the project's own README: A command-line tool for Stripe
What language is stripe/stripe-cli written in?
stripe/stripe-cli is written primarily in Go. GitHub's language field is based on the largest share of bytes in the default branch.
Read full README in the tab above.
Curious whether stripe-cli is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about stripe-cli.