How to Install bencher CLI
Install CLI with Script
Linux, Mac, & Unix
For Linux, Mac, and other Unix-like systems run the following in your terminal:
There is an optional BENCHER_VERSION
environment variable to specify an exact version of the Bencher CLI to use.
Otherwise, it will default to using the latest CLI version.
Specify an exact version if and only if using Bencher Self-Hosted.
Do not specify an exact version if using Bencher Cloud as there are still occasional breaking changes.
Alternatively, Bencher Self-Hosted users can use the install script from their own self-hosted instance
to make sure they are always installing the correct version of the bencher
CLI.
This has the added benefit of not requiring a code change to your CI configuration when upgrading your Bencher Self-Hosted instance.
For example, if your Bencher Self-Hosted Console is running at https://bencher.example.com
,
you could run the following:
Windows
For Windows systems run the following in a PowerShell terminal:
There is an optional BENCHER_VERSION
environment variable to specify an exact version of the Bencher CLI to use.
Otherwise, it will default to using the latest CLI version.
Specify an exact version if and only if using Bencher Self-Hosted.
Do not specify an exact version if using Bencher Cloud as there are still occasional breaking changes.
Alternatively, Bencher Self-Hosted users can use the install script from their own self-hosted instance
to make sure they are always installing the correct version of the bencher
CLI.
This has the added benefit of not requiring a code change to your CI configuration when upgrading your Bencher Self-Hosted instance.
For example, if your Bencher Self-Hosted Console is running at https://bencher.example.com
,
you could run the following:
🐰 If you get an error that says
running scripts is disabled on this system
:
Open Powershell
withRun as Administrator
- Run:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
- Enter:
Y
- Rerun this script
GitHub Actions
Install the Bencher CLI using the GitHub Action. See how to use GitHub Actions for more details.
There is an optional version
argument to specify an exact version of the Bencher CLI to use.
Otherwise, it will default to using the latest CLI version.
Specify an exact version if and only if using Bencher Self-Hosted.
Do not specify an exact version if using Bencher Cloud as there are still occasional breaking changes.
From Source
For all other environments, you can try to install from source. This requires you to install Rust.
Pre-Built Binaries
See the latest release page for a full list.
Packages
See the latest release page for a full list.
🐰 Congrats! You have installed
bencher
CLI! 🎉