Skip to content

Latest commit

 

History

History
148 lines (102 loc) · 3.38 KB

installation.md

File metadata and controls

148 lines (102 loc) · 3.38 KB

Installation

Adios publishes prebuilt CLI archives for macOS, Linux, and Windows. You need an Adios account and team to use authenticated platform commands.

Homebrew

Homebrew supports macOS and Linux on Intel/AMD and ARM:

brew install adiosdotdev/tap/adios

Upgrade or remove it with the normal Homebrew commands:

brew upgrade adiosdotdev/tap/adios
brew uninstall adios

Release archives

Open the latest release and download the archive matching your system:

System Archive suffix
Apple silicon Mac darwin_arm64.tar.gz
Intel Mac darwin_amd64.tar.gz
Linux ARM64 linux_arm64.tar.gz
Linux x86-64 linux_amd64.tar.gz
Windows x86-64 windows_amd64.tar.gz

Release files follow this pattern:

adios_<version>_<os>_<architecture>.tar.gz

macOS and Linux

Download the archive and checksums.txt into the same directory. Replace the example archive name below with the file you downloaded:

archive=adios_vX.Y.Z_darwin_arm64.tar.gz
grep " ${archive}$" checksums.txt | shasum -a 256 -c -
tar -xzf "$archive"
sudo install -m 0755 adios /usr/local/bin/adios

On Linux, sha256sum can be used instead:

grep " ${archive}$" checksums.txt | sha256sum -c -

If /usr/local/bin is not on your PATH, install the binary in another directory that is, such as $HOME/.local/bin.

Windows

Download the Windows archive and checksums.txt, then compare the published checksum in PowerShell:

$Archive = "adios_vX.Y.Z_windows_amd64.tar.gz"
Get-FileHash ".\$Archive" -Algorithm SHA256
Select-String -Path .\checksums.txt -Pattern ([regex]::Escape($Archive))
tar -xzf $Archive

Move adios.exe to a dedicated directory and add that directory to your user PATH.

Verify the installation

adios version
adios --help

For machine-readable build metadata and editor capabilities:

adios version --json

Upgrade a manual installation

Download and verify the new archive, then replace the existing binary using the same installation path. Existing login contexts are kept in the CLI configuration file and are not removed by replacing the executable.

Shell completion

The CLI can generate completion scripts for Bash, Zsh, Fish, and PowerShell.

Bash

For a system with bash-completion installed:

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

Zsh

Save the completion in a directory on your Zsh function path:

mkdir -p ~/.zsh/completions
adios completion zsh > ~/.zsh/completions/_adios

Then add the directory before calling compinit in ~/.zshrc:

fpath=(~/.zsh/completions $fpath)
autoload -Uz compinit
compinit

Fish

mkdir -p ~/.config/fish/completions
adios completion fish > ~/.config/fish/completions/adios.fish

PowerShell

Enable completion for the current session:

adios completion powershell | Out-String | Invoke-Expression

Add the same expression to $PROFILE to load it in future sessions.

Remove a manual installation

Delete only the installed executable from the path you chose. Login contexts remain under ~/.config/adios unless you remove that directory separately. The configuration contains authentication material, so do not copy or publish it.

Back to the documentation index