Reference
CLI Reference
Everything you can do in the Lermy web app, plus uploading PR screenshots and videos from CI or coding agents, from one standalone command.
Install and update
Re-running the install command checks your current CLI version and only downloads when a newer release is out (set LERMY_FORCE_INSTALL=1 to reinstall anyway). If a Lermy SKILL.md is present in the current project, the installer also checks whether a newer skill version is available and updates it.
curl -fsSL https://lermy.com/install.sh | bashInspect installerVerify checksums
Installs to ~/.local/bin/lermy - standalone executable, no Node, npm, or Python required.
Prefer to read it first?
curl -fsSL https://lermy.com/install.sh -o install.sh
less install.sh
bash install.shVerify your download
Every release publishes a SHA256SUMS file beside its archives. The install scripts check it before installing and stop on a mismatch. To check a download yourself, fetch the archive and SHA256SUMS into the same folder, then compare:
# macOS
curl -fsSLO https://lermy.com/downloads/cli/latest/lermy-aarch64-apple-darwin.tar.gz
curl -fsSLO https://lermy.com/downloads/cli/latest/SHA256SUMS
grep ' lermy-aarch64-apple-darwin.tar.gz$' SHA256SUMS | shasum -a 256 -c -
# Linux
sha256sum -c --ignore-missing SHA256SUMSOn Windows, in PowerShell, this prints True for a matching archive:
$expected = (Select-String -Path SHA256SUMS -Pattern 'lermy-x86_64-pc-windows-msvc.zip').Line.Split(' ')[0]
(Get-FileHash .\lermy-x86_64-pc-windows-msvc.zip -Algorithm SHA256).Hash.ToLower() -eq $expectedChecksums come from the same origin as the archive, over HTTPS. They catch a corrupted or tampered download in transit, but they are not a signature. You can read install.sh and install.ps1 before running them, and Security explains what they do.
Global flags
--json: Print JSON output on any command for scripting or agents.--url <origin>(orLERMY_URL): Target a self-hosted or staging Lermy instance (defaults tohttps://lermy.com).--org <org-id>(orLERMY_ORG): Choose which organization to act on (automatic if you only belong to one).--config <path>(orLERMY_CONFIG): Override where your session config is stored (defaults to~/.config/lermy/config.jsonon macOS/Linux and%APPDATA%\lermy\config.jsonon Windows).
Commands
Workspace commands (orgs, storage, projects, keys, runs, members, invites, billing) use your signed-in account from lermy auth login. Upload commands (lermy upload and the low-level lermy run ... steps) use a project key or temporary run grant so CI and coding agents never need your personal login.
| Area | Commands |
|---|---|
| Setup & diagnostics | lermy login [--browserless], lermy doctor [--strict], lermy init [--global] [--create] [--agent all], lermy test, lermy update, lermy commands --json |
| Account & config | lermy auth signup|login|logout|whoami|sessions|revoke-session|revoke-other-sessions|forgot-password, lermy config show|set-url|set-org|clear-org, lermy health |
| Organizations | lermy orgs list|create|use|summary|rename|recovery |
| Storage | lermy storage list|add|set-default|rotate|delete|usage|migrate |
| Projects & skills | lermy projects list|create|get|update|delete|restore|archive|unarchive|skill, lermy skill install [--global]|check|update [--all|--global] |
| Project keys | lermy keys list|create [--save]|revoke |
| Managing runs | lermy runs list|get|visibility|delete|restore|download, lermy artifacts caption |
| Capturing evidence | lermy capture [--url ... | --recipe capture.json], lermy capture setup |
| Review feedback | lermy feedback pull --pr <n> [--status] [--source] [--out] |
| Client updates | lermy updates list|candidates|draft|show |
| Uploading evidence | lermy upload (all-in-one) or lermy run create|refresh|manifest|put-files|finalise|status|wait |
| Team & billing | lermy members list|set-role|remove, lermy invites list|send|resend|revoke|accept, lermy billing status|checkout|portal |
Checking readiness, CLI, and skill versions
# Diagnose CLI version, auth, storage, project match, keys, and local/global skills
lermy doctor --json
# Export the complete command/flag catalog for AI coding agents
lermy commands --json
# Install one repo-agnostic global skill (zero files added to any repository)
lermy skill install --global --agent all
# Or install/refresh repo-local and global SKILL.md files
lermy skill install --agent all
lermy skill update --allPointing an AI coding agent at Lermy? Give it lermy.com/setup.md.
Capturing screenshots with exact highlights
lermy capture screenshots your running app in desktop and phone viewports with Playwright, numbers each change highlight in the order you list it, converts its CSS box to exact pixels on the saved image, records a Browser check, and writes an upload-ready manifest.json. Run it once per step, or describe a whole flow in a recipe file.
# Once per machine, if the project has no Playwright of its own
lermy capture setup
lermy capture --url http://localhost:3000/cart \
--flow "Save a cart for later" --step "Cart with three items" \
--highlight "[data-testid=save-for-later]: New Save for later button" \
--caption "The cart with the new button under the order total." \
--output-dir ./evidence
lermy upload --pr 42 --title "Save carts for later" --output-dir ./evidencePulling review feedback for an agent
Reviewers pin comments to exact pixels on screenshots and approve or request changes on each run's exact commit. lermy feedback pull gives that feedback to a coding agent as one prompt, or as structured JSON with --json: the latest run's review status and every open thread with its run, commit, screen, viewport, URL, pin in natural image pixels, and comments. It reads with your signed-in session, or with the repository's project key when you are not signed in or pass --project-key-file. Upload grants can never read feedback.
# Open review and client feedback for PR 42, as an agent prompt
lermy feedback pull --pr 42
# Full JSON document; --status open|resolved|all, --source review|stakeholder|all
lermy feedback pull --pr 42 --status all --source review --json
# Trusted runner writes a 0600 file for a confined agent
lermy feedback pull --pr 42 --out feedback.json --jsonAfter fixing, the agent lists the thread ids it addressed in the next run's manifest.json as "addressesFeedback": ["<thread-id>"] (or passes lermy capture --addresses <id>,<id>). Reviewers compare the two runs and resolve each thread; agents never resolve threads. Comment text is quoted as data after a fixed preamble, so agents do not follow it as instructions.
Giving an AI agent temporary upload access
If you want an AI coding agent to upload screenshots without giving it your long-lived project key, create the run from your CI job or wrapper script and pass only the 30-minute run grant to the agent:
# 1. CI or wrapper script creates the run using LERMY_PROJECT_KEY
lermy run create --repository acme/web --pr 42 --commit "$SHA" \
--title "Checkout flow" --execution "$RUN_ID" --grant-out /tmp/run.grant --json
# 2. Agent receives only /tmp/run.grant (scoped to this PR and commit)
lermy run manifest <run-id> --manifest manifest.json --output-dir ./evidence --grant-file /tmp/run.grant
lermy run put-files <run-id> --output-dir ./evidence --grant-file /tmp/run.grant
lermy run finalise <run-id> --grant-file /tmp/run.grant
lermy run wait <run-id> --grant-file /tmp/run.grant --jsonSecrets are always read from environment variables, files, or prompts rather than command flags, and lermy upload only uploads the exact files listed in manifest.json.
Exit codes
Commands exit with 0 on success and 1 on failure. Exit code 4 means a plan or storage limit stopped the command (hosted_storage_full, project_over_plan_limit or verified_email_required). The error lists what to do next, such as connecting your own bucket, archiving projects or upgrading, and with --json its code is PLAN_LIMIT.
Want unlimited storage? See Storage setup.