Skip to content

Store a Wise PersonalToken for the active Wise profile.

Synopsis

gln [global-options] profile auth login wise [--token-stdin]

Options

Argument or flagTypeRequiredDefaultDescription
--token-stdinflagnofalseRead one Wise PersonalToken line from stdin instead of prompting.

Description

Opens the active Wise profile through the public C API, reads a Wise PersonalToken, and stores it through the public Wise token setup C API.

Without --token-stdin, the CLI prompts for the PersonalToken with terminal echo disabled. In non-interactive environments, use --token-stdin.

JSON output reports token status only. It never includes token material.

Requirements

  • Profile: required
  • Credential type: Wise PersonalToken
  • Backend prerequisites: Wise profile
  • Input mode: Hidden prompt, or stdin with --token-stdin.

Status and exit codes

StatusExitMeaningContinuation
ok0PersonalToken stored and status returned.-
error1Profile, token-store, input, or backend failure.-

Result keys: have_token, expires_at_unix_ms, needs_refresh, last_error

Examples

Get-Content wise-token.txt | gln --profile wise profile auth login wise --token-stdin

See also