Aegis CLI Reference (Hosted Axis)
This reference reflects the current aegis CLI command surface and hosted Axis API behavior.
Installation
curl -L https://github.com/velikey/aegis/releases/latest/download/aegis-cli-linux-amd64.tar.gz | tar xz
sudo mv aegis /usr/local/bin/
aegis --version
Authentication
The CLI supports two auth modes:
AEGIS_API_TOKENfor machine/API-key routes.AEGIS_SESSION_TOKENfor hosted session routes.
Set control plane URL in all cases:
API Token (recommended for automation)
Create an API key in Axis (Dashboard -> Settings -> API Keys), then:
Session Token (required for some policy-read routes)
If you need policy read operations against hosted routes that currently require session auth:
Command Matrix (Hosted Axis)
Verified working now
# Health + connectivity
aegis status
# Agent inventory (API key auth)
aegis agent list
# Summary metrics derived from hosted agent inventory
aegis metrics
# Cipher suites (local catalog)
aegis suites list
aegis suites list --pq-only
aegis suites show VELI-DEFAULT-2025
# Local key operations
aegis keys generate kem --suite VELI-DEFAULT-2025 --format json
aegis keys list
# OHTTP utility commands
aegis ohttp config
Works with session token
Not yet supported on hosted Axis API
These commands currently return an explicit "not available via hosted Axis API yet" error:
Use the Axis dashboard policy management UI for create/apply until hosted policy-write routes are available.
Troubleshooting
404 /healthzor404 /ui/api/*: upgrade to the latest CLI build (hosted endpoints are/api/*).401onaegis agent list: verifyAEGIS_API_TOKEN.401onaegis policy list: addAEGIS_SESSION_TOKENor use the dashboard.