Admiral

CLI

Install and configure the Admiral CLI (admiral) on macOS, Windows, Linux, Docker, or from source, then use it to manage apps and drive CI/CD automation.

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.

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