Skip to Content
CLIdispatch login

dispatch login

Authenticate the CLI with AppDispatch.

Usage

dispatch login --server <SERVER_URL> --key <API_KEY>

Options

FlagRequiredDescription
--serverNoServer URL (defaults to https://api.appdispatch.com; use for self-hosted instances)
--keyYesAPI key from Dashboard → Settings → API Keys

Examples

dispatch login --key dk_live_abc123

For self-hosted instances, pass your server URL:

dispatch login --server https://dispatch.yourcompany.com --key dk_live_abc123

What it does

  1. Validates your API key
  2. Fetches the list of available projects
  3. Saves credentials to ~/.dispatch/credentials.json

After logging in, you can run dispatch init to connect a project.

Last updated on