Skip to content

cub auth login

cub auth login

Log into ConfigHub

Synopsis

Authenticate the CLI to ConfigHub via Browser Login

Examples:

  # Login (creates or updates current context)
  cub auth login

  # Login to a specific server
  cub auth login --server https://hub.confighub.com

  # Login to a specific existing context
  cub --context prod2 auth login

  # Create a new context and login with a specific server
  cub auth login --new-context --server https://hub.confighub.com

  # Login as a worker using environment variables
  cub auth login --as-worker

  # Login without automatically opening browser
  cub auth login --no-browser
cub auth login [flags]

Options

      --as-worker             Authenticate as a worker using CONFIGHUB_WORKER_ID and CONFIGHUB_WORKER_SECRET environment variables
  -h, --help                  help for login
      --new-context           Create a new context during login
      --no-browser            Do not automatically open browser for authentication
      --organization string   Organization partial name or ID to authenticate to (e.g., Fuz or org_1234567890)
      --server string         Server URL to authenticate to (e.g., https://hub.confighub.com)

Options inherited from parent commands

      --context string   The context to use for this command
      --debug            Debug output

SEE ALSO