Light Logo
CLI (v0.52.0)Reference

wriftai auth login

CLI reference for wriftai auth login

wriftai auth login

Login to WriftAI

Synopsis

Authenticate with WriftAI.

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

  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 token from standard input (required)

Options inherited from parent commands

      --debug   Enable debug mode

SEE ALSO