reddit-cli
command reference

auth login

Save credentials and request a live API token

Save credentials and request a live API token

Save credentials and request a live API token

Usage: reddit auth login [OPTIONS] --client-id <CLIENT_ID>

Options:
      --client-id <CLIENT_ID>    OAuth application client ID
      --format <FORMAT>          Choose how to render results [possible values: auto, json, jsonl, md, pretty]
      --client-secret-stdin      Read the client secret from standard input
      --source <SOURCE>          Choose the live API or the archive [possible values: auto, live, archive]
      --offline                  Use only the local store and ignore cache expiration
      --user-agent <USER_AGENT>  Set the HTTP User-Agent for live requests
      --refresh                  Fetch fresh results and update the cache
      --no-cache                 Skip cache reads and writes
  -q, --quiet                    Suppress notes on stderr
  -h, --help                     Print help