Admiral

CLI

Install and configure the Admiral command-line interface

The Admiral CLI (admiral) is the command-line interface for interacting with the Admiral platform. Use it to manage applications, inspect platform resources, and drive CI/CD automation.

The CLI is under active development. This page covers installation and configuration. Command reference documentation will be added as the CLI stabilizes.

Installation

Install via the Admiral Homebrew tap:

brew install admiral-io/tap/admiral

To upgrade:

brew upgrade admiral

To uninstall:

brew uninstall admiral

Supports both Intel (x86_64) and Apple Silicon (arm64). Shell completions for bash, zsh, and fish are installed automatically.

Install via the Admiral Scoop bucket:

scoop bucket add admiral-io https://github.com/admiral-io/scoop-bucket
scoop install admiral-io/admiral

To upgrade:

scoop update admiral

To uninstall:

scoop uninstall admiral

Supports both x86_64 and arm64 Windows.

Package managers

Pre-built packages are available for common Linux distributions:

FormatDistributions
.debDebian, Ubuntu
.rpmRed Hat, CentOS, Fedora
.apkAlpine
.pkg.tar.zstArch Linux

Download the appropriate package from the GitHub Releases page and install with your package manager:

# Debian/Ubuntu
sudo dpkg -i admiral_*.deb

# Red Hat/CentOS/Fedora
sudo rpm -i admiral_*.rpm

# Alpine
sudo apk add --allow-untrusted admiral_*.apk

Direct download

Download the binary archive for your architecture from GitHub Releases:

# Example for Linux x86_64
curl -Lo admiral.tar.gz https://github.com/admiral-io/admiral-cli/releases/latest/download/admiral_linux_x86_64.tar.gz
tar xzf admiral.tar.gz
sudo mv admiral /usr/local/bin/

Shell completions are included in the archive and in all packages.

Run the CLI from a container image:

docker run --rm ghcr.io/admiral-io/admiral:latest version

The image is a non-root distroless build, available for linux/amd64 and linux/arm64.

Requires Go 1.26+:

git clone https://github.com/admiral-io/admiral-cli.git
cd admiral-cli
make build

The binary is written to dist/. To install directly to your $GOPATH/bin:

make install

Verify installation

admiral version

Configuration

The CLI reads configuration from a local config directory and supports overrides via flags and environment variables.

Setting the server and token

Connect the CLI to your Admiral instance:

admiral config set server admiral.example.com:443
admiral config set token

The token command prompts interactively so the value is not written to shell history. You can also set the token via environment variable:

export ADMIRAL_TOKEN="admp_..."

Configuration keys

KeyDescriptionDefault
serverAdmiral API server addressnone
tokenAuthentication token (PAT or SAT)none
outputDefault output formattable
insecureSkip TLS certificate verificationfalse
plaintextDisable TLS entirely (dev only)false

Managing configuration

# Set a value
admiral config set output json

# Get a value
admiral config get server

# List all settings
admiral config list

# Remove a setting
admiral config unset insecure

Global flags

These flags are available on every command and override config file values:

FlagShortDescription
--server-sAPI server address
--output-oOutput format: table, json, yaml, wide
--insecure-iSkip TLS certificate verification
--plaintextDisable TLS
--verbose-vEnable debug logging
--config-dirOverride config directory path

Shell completions

If you installed via Homebrew, Scoop, or a Linux package, shell completions are set up automatically. To generate them manually:

# Bash
admiral completion bash > /usr/share/bash-completion/completions/admiral

# Zsh
admiral completion zsh > "${fpath[1]}/_admiral"

# Fish
admiral completion fish > ~/.config/fish/completions/admiral.fish

On this page