Skip to main content

What This Checks

tm auth whoami is a live Control Plane check. It calls the profile endpoint with the current bearer token and confirms that the token is accepted by the current Control Plane base URL. Use tm auth status when you only need to inspect local credential presence without making a network call.

Usage

tm auth whoami [OPTIONS]

Examples

Show the current authenticated Control Plane identity.

tm auth whoami

Show the current authenticated Control Plane identity in structured JSON output.

tm --output json auth whoami

Options

NameTypeRequiredDefaultDetails
--timeoutfloatnoHTTP timeout in seconds for the profile call.

Inherited Global Options

NameTypeRequiredDefaultDetails
--version, -VbooleannofalseShow the version and exit. Boolean flag.
--configpathno"~/.config/tensormesh/config.toml"Path to config TOML file
--output`choice[textjsonyamlrawtable]`no"text"Output format (text is human-readable; json is machine-friendly).
--quietbooleannofalseSuppress non-essential output. Boolean flag.
--debugbooleannofalsePrint debug logs to stderr (secrets redacted). Boolean flag.
--ca-bundlepathnoPath to a PEM CA bundle for TLS verification (overrides TENSORMESH_CA_BUNDLE).
--max-retriesintegernoMax retries for idempotent HTTP requests on transient errors (overrides TENSORMESH_MAX_RETRIES; subcommands may override).
--controlplane-basetextnoOverride the Control Plane base URL.
--gateway-providertextnoInference Gateway provider for built-in host selection (nebius, lambda, yotta).

Auth Scope

  • controlplane-access-token

Prerequisites

  • Run tm auth login first.

Caveats

  • Uses GET /auth/profile to live-validate the current bearer token.

Parent Command