CLI (v0.54.0)Reference
wriftai auth login
CLI reference for wriftai auth login
wriftai auth login
Login to WriftAI
Synopsis
Authenticate with WriftAI.
By default, this command starts the OAuth Device Authorization flow. A verification URL is shown and opened in your browser (when possible). After you approve the login, the CLI automatically completes authentication.
Alternatively, set the WRIFTAI_ACCESS_TOKEN environment variable to authenticate without running login.
The --token-stdin flag reads a token from standard input until EOF. When typing interactively, press Ctrl+D (Unix) or Ctrl+Z then Enter (Windows) after entering the token to signal EOF.
Credentials are stored in the system keyring when available (macOS Keychain, Windows Credential Manager, Linux Secret Service).
wriftai auth login [flags]Examples
Default browser login
$ wriftai auth login
Pipe token via stdin
$ echo "$WRIFTAI_ACCESS_TOKEN" | wriftai auth login --token-stdin
Read token from a file
$ wriftai auth login --token-stdin < token.txt
Interactive input
$ wriftai auth login --token-stdin
<paste token, then press Ctrl+D (Unix) or Ctrl+Z+Enter (Windows)>
Use environment variable (no login command needed)
$ export WRIFTAI_ACCESS_TOKEN=<token>
$ wriftai <command>Options
-h, --help help for login
--token-stdin Read access token from standard input (skips the OAuth device authorization flow)Options inherited from parent commands
--debug Enable debug modeSEE ALSO
- wriftai auth - Manage authentication