Skip to content

Installing and updating

richardm-stripe edited this page Jan 28, 2021 · 4 revisions

Installation

With a package manager

The easiest way to install the CLI is with a package manager for your operating system. The CLI can be installed on macOS with homebrew, on Windows with scoop, or on Linux through apt or yum.

Without a package manager

Alternatively, if you do not or cannot use a package manager, you can download the binary executable and use that without having to install and additional dependencies. Find our latest release and download the stripe_X.X.X_mac-os, stripe_X.X.X_windows, or stripe_X.X.X_linux tar.gz file, unzip it, and inside you'll have the stripe executable that you can run directly.

On macOS or Linux, you can move this file to /usr/local/bin or /usr/bin locations to have it be runnable from anywhere. Otherwise, cd to the folder where you unzipped the tar.gz file and invoke the CLI with ./stripe.

Building from source

The Stripe CLI is built using Go. You can

go get -u github.com/stripe/stripe-cli/...

to build and compile the source code, or clone the repository into your GOPATH and run make build to generate a binary. `

Updating

With a package manager

New updates will be pushed to package managers as soon as they're released. Update the CLI through each package manager's update command:

  • brew upgrade stripe
  • apt-get upgrade stripe
  • yum upgrade stripe
  • scoop update

Without a package manager

Updating without a package manager is essentially re-installing the CLI. You should download the latest release and move the new binary to wherever you had placed the old one.