Excalidraw CLI

excalidraw login

Log in to Excalidraw+ and save an API key for later commands.

Pick a login method, check the API key against the API, and save it for the API origin. Later commands use the saved key unless --api-key or EXCALIDRAW_API_KEY is set. render and mermaid don't need a login.

excalidraw login [options]

Examples

excalidraw login
excalidraw login --api-key uk-...
excalidraw login --api-url https://staging.example.com

Notes

  • Need a key? Create one in Excalidraw+ under Account settings → MCP/API key (personal) or Workspace settings → MCP/API Keys. See /docs/api/authentication
  • Logging in with the browser (OAuth) is coming soon.
  • --api-key skips the prompts, e.g. in scripts.
  • Keys are saved in ~/.config/excalidraw-cli/credentials.json, one per --api-url.

Last updated on