The CLI wraps the public API for local and CI workflows. Use it when you want files on disk, repeatable docs refreshes, authenticated browser sessions, batch captures, or watch-mode previews.

Install

bash
npm install -g @screenframed/cli

Or run with npx:

bash
npx @screenframed/cli login

Commands

CommandPurpose
screenframed loginAuthenticate the CLI with a browser device code flow.
screenframed statusShow local CLI auth status.
screenframed logoutRemove the stored CLI credential.
screenframed captureCreate a styled screenshot.
screenframed rawDownload a raw browser screenshot.
screenframed batchCapture multiple URLs from a text file.
screenframed watchRe-render a URL on an interval while developing.
screenframed jobs statusInspect async job status.
screenframed projects ...Manage projects and signing secrets.
screenframed auth ...Manage authenticated browser sessions.

Environment

bash
export SCREENFRAMED_API_KEY="sf_live_..."export SCREENFRAMED_API_BASE_URL="https://screenframed.com"

SCREENFRAMED_API_BASE_URL is optional and mainly useful for non-production environments.

Local config

After screenframed login, credentials are stored in ~/.screenframed.json. You can also place a .screenframed.json in the current working directory for project-specific configuration.

For CI, prefer SCREENFRAMED_API_KEY or --api-key instead of an interactive login.