# Fazer upgrade da Stripe CLI Learn how to upgrade the CLI with or without a package manager. Para mais detalhes, veja a [Referência à CLI da Stripe](https://docs.stripe.com/cli.md). Keep your Stripe CLI up to date to access new features, improvements, and security updates. Follow the instructions below to upgrade the CLI using your preferred installation method. ## Homebrew Para fazer upgrade da Stripe CLI com [homebrew](https://brew.sh/), execute: ```bash brew upgrade stripe/stripe-cli/stripe ``` ## Scoop Para fazer upgrade da Stripe CLI com [Scoop](https://scoop.sh/), execute: ```bash scoop update stripe ``` ## Docker A Stripe CLI também está disponível como [imagem do Docker](https://hub.docker.com/r/stripe/stripe-cli). Para instalar a versão mais recente, execute: ```bash docker run --rm -it stripe/stripe-cli:latest ``` ## macOS Para fazer upgrade da Stripe CLI no macOS sem homebrew: 1. Download the latest `mac-os` tar.gz file of your cpu architecture type from [GitHub](https://github.com/stripe/stripe-cli/releases/latest). 1. Unzip the file: `tar -xvf stripe_[X.X.X]_mac-os_[ARCH_TYPE].tar.gz`. O binário também pode ficar em um local onde possa ser executado globalmente (por exemplo, `/usr/local/bin`). ## Linux Para fazer upgrade da Stripe CLI no Linux sem um gerenciador de pacotes: 1. Download the latest `linux` tar.gz file from [GitHub](https://github.com/stripe/stripe-cli/releases/latest). 1. Unzip the file: `tar -xvf stripe_X.X.X_linux_x86_64.tar.gz`. 1. Mova `./stripe` para o caminho de execução. If you do use a Linux package manager, update the Stripe CLI using its update command. ## Windows Para fazer upgrade da Stripe CLI no Windows sem Scoop: 1. Download the latest `windows` zip file from [GitHub](https://github.com/stripe/stripe-cli/releases/latest). 1. Descompacte o arquivo `stripe_X.X.X_windows_x86_64.zip` file. 1. Add the path to the unzipped `stripe.exe` file to your `Path` environment variable. To learn how to update environment variables, see the [Microsoft PowerShell documentation](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables?view=powershell-7.3#saving-changes-to-environment-variables). > Windows anti-virus scanners occasionally flag the Stripe CLI as unsafe. This is very likely a false positive. For more information, see [issue #692](https://github.com/stripe/stripe-cli/issues/692) in the GitHub repository.