Skip to content
AnchrasDocumentation
Browse documentation

Getting started / User guide

Install the Anchras CLI

Install the Anchras command-line tool on Linux or macOS, sign in, and verify your connection.

On this page

Install the CLI on the machine you use to administer Anchras. The published installer supports Linux and macOS on amd64 and arm64, verifies the release checksum, and installs the executable into your PATH.

Install

Download and inspect the installer, then run it:

bash
curl -fsSL https://platform.anchras.com/install-cli -o /tmp/install-anchras-cli.sh
less /tmp/install-anchras-cli.sh
sh /tmp/install-anchras-cli.sh
anchras version

The shorter installation command is:

bash
curl -fsSL https://platform.anchras.com/install-cli | sh

For manual installation, download the binary for your OS and architecture from /cli-releases/anchras-<os>-<arch> on your platform origin and verify its .sha256 sidecar before making it executable. Windows users can use a Linux environment such as WSL; a native Windows binary is not part of this installer.

Connect and sign in

The hosted platform routes web API requests under /api:

bash
export ANCHRAS_SERVER=https://platform.anchras.com/api
anchras login
anchras whoami
anchras instances list

A first-time work-email account uses anchras register, inbox verification (anchras verify-email or anchras resend-verification), then login. See Organizations and teams.

For a self-hosted API listening directly on the web-facing port, use its base URL, for example http://localhost:8080. A reverse proxy may add a path prefix. Use the web API endpoint, not the agent-only port.

Save a profile

bash
anchras configure set --profile production --server https://platform.anchras.com/api
anchras configure use production
anchras configure list

Configuration is stored in ~/.anchras/config.yaml. Treat saved credentials as sensitive. Use API keys for automation and keep keys out of source control and shared shell history.

Verify your installation

anchras whoami should show the intended user, organization, and server. anchras instances list can legitimately return an empty list for a new organization. Use -o json when you need structured output.

Troubleshooting

If the executable is not found, reopen your shell and check the installation directory is in PATH. If login returns HTML or a 404 response, check the API base URL and /api prefix. If access is denied after signing in, verify your active organization and assigned permissions.

Update or remove

Rerun the installer to install the currently published CLI. To remove credentials, run anchras logout; remove the executable from the installation path printed by the installer if you no longer need it.

CLI commands

Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.

CommandPurpose
loginInteractive email/password login or API-key profile storage. --api-key validates the key with GetCurrentUser. OIDC device-flow login is not implemented; use the supported browser SSO flow. Flags include --email, --api-key, and --server.
logoutForget the saved tokens (idempotent).
versionPrint client build metadata and the public server version when reachable. Supports --server and -o/--output.
whoamiPrint the active user, org, and server URL.
configure setCreate or update a profile in ~/.anchras/config.yaml. Flags: --profile, --server, --org, --email, --auth-source, --project (the profile's default project for the compute, storage, networking and AI resource commands; - clears it).
configure listList configured profiles. Supports -o/--output.
configure use <profile>Switch the active profile.
configure delete <profile>Delete a profile entry.