Installing the Bitrise CLI is super simple. It is distributed as a single binary which you can acquire in several ways. All you need to do is download it and make it executable. Let’s see how!
Installing the Bitrise CLI with curl ⚓
Run the following command in a bash shell:
curl -fL https://github.com/bitrise-io/bitrise/releases/download/1.21.0/bitrise-$(uname -s)-$(uname -m) > /usr/local/bin/bitrise
You can check the latest release of the Bitrise CLI on its releases page.
Make the downloaded binary executable:
chmod +x /usr/local/bin/bitrise
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
In any case,
bitrise setup can be called at any time to validate the installation.
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.
Terminalapp on your Mac and run:
brew update && brew install bitrise
bitrise 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
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.
bitrise update - that’s it! The CLI checks for updates once every day and notifies you as soon as there is a new version.
The open source Bitrise CLI / runner is responsible for interpreting and executing the build configuration. Using the Bitrise CLI you can run the same configuration on any compatible Mac/PC,...