Badger
Docs / Introduction

Installation

Badger ships as a single binary with nothing else to install. Builds are available for Linux, macOS and FreeBSD on amd64 and arm64.

Install script

$ curl -fsSL https://eu.gateway.fivestats.org/install.sh | sh

The script works out your operating system and architecture, downloads the archive of the latest release, checks its SHA-256 sum and puts badger into /usr/local/bin. You can read it before running it: install.sh.

From an archive

Every release has archives for each platform, named after the version:

$ curl -LO https://eu.gateway.fivestats.org/releases/1.1.0/badger-1.1.0-linux-amd64.tar.gz
$ tar -xzf badger-1.1.0-linux-amd64.tar.gz
$ sudo install -m 755 badger /usr/local/bin/

From source

Building needs a Rust toolchain, 1.74 or newer:

$ curl -LO https://eu.gateway.fivestats.org/releases/1.1.0/badger-1.1.0.tar.gz
$ tar -xzf badger-1.1.0.tar.gz && cd badger-1.1.0
$ cargo build --release
$ sudo install -m 755 target/release/badger /usr/local/bin/

Check the installation

$ badger --version
badger 1.1.0 (linux/amd64)

Shell completion

$ badger completion bash | sudo tee /etc/bash_completion.d/badger > /dev/null

Completion is also available for zsh and fish. Run badger completion --help for where to put the files.