blodemd login
Authenticate with Blode.md using browser OAuth or an API key.
Authenticate your CLI session so you can deploy documentation with blodemd push.
blodemd loginWhen you run blodemd login, the CLI opens your browser to complete a Supabase OAuth flow using PKCE. After you authorize, the CLI receives an access token and stores it locally.
blodemd loginThe CLI starts a temporary local server on port 8787 to receive the OAuth callback. If the browser does not open automatically, you can copy the printed URL manually.
Use the --token flag to authenticate with a project-scoped API key instead of browser login. This is the recommended approach for CI/CD pipelines.
blodemd login --tokenYou will be prompted to paste your API key. The key is stored locally and never echoed to the terminal.
You can generate API keys from the Blode.md dashboard or when a project is
auto-created during blodemd push.
blodemd loginCredentials are stored at ~/.config/blodemd/credentials.json. OAuth sessions include a refresh token so the CLI can renew your session automatically. Run blodemd logout to remove stored credentials.
You can also skip blodemd login entirely by setting the BLODEMD_API_KEY environment variable.