gln profile auth login wise
Store a Wise PersonalToken for the active Wise profile.
Synopsis
gln [global-options] profile auth login wise [--token-stdin]
Options
| Argument or flag | Type | Required | Default | Description |
|---|---|---|---|---|
--token-stdin | flag | no | false | Read 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
| Status | Exit | Meaning | Continuation |
|---|---|---|---|
ok | 0 | PersonalToken stored and status returned. | - |
error | 1 | Profile, 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