Authentication

Login flow

truss auth login

You'll be prompted for:

  1. Truss API URL — the base URL of your Truss API instance
  2. API Key — your tr_-prefixed API key

Credentials are saved to ~/.config/truss/config.json.

Environment variables

Override config values at runtime:

export TRUSS_API_URL=https://api.tensflare.com
export TRUSS_API_KEY=tr_abc123...

These take precedence over the config file.

Logout

truss auth logout

Removes saved credentials from the config file.

Status

truss auth status

Shows whether you are currently authenticated and which API URL is configured.