# Installing and updating the Bitrise CLI

## Installing the Bitrise CLI with curl

1. Run the following command in a bash shell:

   ```bash
   curl -fL https://github.com/bitrise-io/bitrise/releases/latest/download/bitrise-$(uname -s)-$(uname -m) > /usr/local/bin/bitrise
   ```

   You can check the latest release of the Bitrise CLI on its [releases](https://github.com/bitrise-io/bitrise/releases) page.
1. Make the downloaded binary executable:

   ```bash
   chmod +x /usr/local/bin/bitrise
   ```
1. Run `bitrise local setup`.

   This will verify if everything that is required for Bitrise to run is installed and available. If you skip this, the CLI will perform the setup anyway the first time you call `bitrise local run`.

## Installing the Bitrise CLI with Homebrew

If you have the Homebrew package manager installed on your Mac, you can use it to install the Bitrise CLI.

1. Open the `Terminal` app on your Mac and run:

   ```bash
   brew update && brew install bitrise
   ```
1. Perform a first-time setup for the Bitrise CLI:

   ```bash
   bitrise local setup
   ```

   This will verify if everything that is required for Bitrise to run is installed and available. If you skip this, the CLI will perform the setup anyway the first time you call `bitrise local run`.

## Updating the Bitrise CLI

Updating the Bitrise CLI is easy, and it doesn’t matter if you installed it with Homebrew or from the GitHub release.

Simply run `bitrise update` - that’s it! The CLI checks for updates once every day and notifies you as soon as there is a new version.

## Configuring the Bitrise CLI

The CLI saves its settings to `~/.config/bitrise/cli/config.yml`. Make sure `~/.config` (or `$XDG_CONFIG_HOME`, if you set it) is writable. Otherwise, `bitrise local setup` and plugin commands can fail.

To learn about the config files and the settings you can save, see [Configuring the Bitrise CLI](/bitrise-ci/bitrise-cli/configuring-the-bitrise-cli).
