Skip to main content

Installing the Serval CLI

The Serval CLI is available for macOS, Linux, and Windows. We recommend using Homebrew for macOS users for the easiest installation and update experience.

macOS (Homebrew)

The recommended way to install the Serval CLI on macOS is through Homebrew:

Install

Update

To update to the latest version:

Manual Installation

For other platforms or if you prefer manual installation:
  1. Download the appropriate binary for your platform from the releases page
  2. Extract the archive
  3. Move the serval binary to a location in your PATH (e.g., /usr/local/bin)
  4. Make it executable: chmod +x serval

Linux Example

Windows

  1. Download the Windows binary from the releases page
  2. Extract the ZIP file
  3. Add the directory containing serval.exe to your PATH environment variable
  4. Or move serval.exe to a directory already in your PATH

Verify Installation

After installation, verify that the CLI is working:
This should display the installed version of the Serval CLI.

Shell Completion

The Serval CLI supports autocompletion for various shells. To enable it:

Bash

Zsh

Fish

PowerShell