CLI Installation (Linux)

View as Markdown

This guide helps you resolve issues when the Brev CLI installation command completes without output or errors, but the CLI is not installed.

Platform: Linux (reported on Ubuntu 22.04)

Problem

When installing the Brev CLI on Linux using the one-line install command:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/brevdev/brev-cli/main/bin/install-latest.sh)"

The command completes without any output, logs, or error messages, and the Brev CLI is not installed.

If the command instead prints Error: Failed to fetch release info from GitHub API., the install script was rate limited rather than failing silently. See CLI Install Fails with GitHub Rate Limit.

Prerequisites

  • Linux system (tested on Ubuntu 22.04)
  • curl installed and available in $PATH
  • Outbound network access to raw.githubusercontent.com

Solution

Download and run the install script directly instead of piping through a nested shell.

1

Download the install script

curl -fsSL https://raw.githubusercontent.com/brevdev/brev-cli/main/bin/install-latest.sh -o install-latest.sh
2

Make the script executable

chmod +x install-latest.sh
3

Run the script

./install-latest.sh
4

Check for errors (optional)

If the installation appears to fail silently, capture the exit code:

echo $?

A non-zero exit code indicates an error occurred.

Verification

After running the installation script:

# Verify the binary exists
ls ~/.local/bin/brev
# Verify CLI is in PATH
which brev
# Verify CLI works
brev --help

The brev --help command should display the CLI help output.

Rollback

To remove the installed CLI:

rm -f ~/.local/bin/brev

Why This Happens

The nested shell command bash -c "$(curl ...)" can fail silently in certain shell configurations. Running the script directly provides better visibility into any errors that occur during installation.

Alternative Installation Methods

If the script installation continues to fail, you can install using Homebrew (if available on your system):

brew install brevdev/homebrew-brev/brev

Or download the binary directly from the Brev CLI releases page.