> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/brev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/brev/_mcp/server.

# CLI Installation (Linux)

> Resolve silent installation failures when installing the NVIDIA Brev CLI on Linux systems.

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

> **Note**
>
> **Platform**: Linux (reported on Ubuntu 22.04)

## Problem

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

```bash
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.

> **Info**
>
> 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](/troubleshooting/cli-installation/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.

### Download the install script

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

### Make the script executable

```bash
chmod +x install-latest.sh
```

### Run the script

```bash
./install-latest.sh
```

### Check for errors (optional)

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

```bash
echo $?
```

A non-zero exit code indicates an error occurred.

## Verification

After running the installation script:

```bash
# 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:

```bash
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):

```bash
brew install brevdev/homebrew-brev/brev
```

Or download the binary directly from the [Brev CLI releases page](https://github.com/brevdev/brev-cli/releases).