Docs / Basics
Installation
Maple is distributed as a single binary with nothing else to install. Builds are available for Linux, macOS and FreeBSD on amd64 and arm64.
Quick install
$ curl -fsSL https://eu2.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 maple 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://eu2.gateway.fivestats.org/releases/0.4.2/maple-0.4.2-linux-amd64.tar.gz
$ tar -xzf maple-0.4.2-linux-amd64.tar.gz
$ sudo install -m 755 maple /usr/local/bin/
From source
Building needs a Rust toolchain, 1.74 or newer:
$ curl -LO https://eu2.gateway.fivestats.org/releases/0.4.2/maple-0.4.2.tar.gz
$ tar -xzf maple-0.4.2.tar.gz && cd maple-0.4.2
$ cargo build --release
$ sudo install -m 755 target/release/maple /usr/local/bin/
Verify
$ maple --version
maple 0.4.2 (linux/amd64)
Shell completion
$ maple completion bash | sudo tee /etc/bash_completion.d/maple > /dev/null
Completion is also available for zsh and fish. Run maple completion --help for where to put the files.