Launchmatic CLI

v0.4.0

Deploy, test, and manage everything from your terminal. Zero config, instant feedback.

Install
npm i -g @launchmatic/cli

Core

lm login
Authenticate with your Launchmatic account
lm init
Initialize a project in the current directory
lm deploy
Build and deploy the current service
lm quicklaunch(lm ql)
Detect, configure, and deploy in one command — auto-detects env vars with Requirement Connectors
lm status
Show service and deployment status
lm logs
Stream live logs from a deployment
lm doctor
Scan the current project for common deployment issues before you ship
lm destroy
Tear down a service

Environment & Domains

lm env set KEY=VALUE
Set an environment variable
lm env list
List all environment variables
lm env rm KEY
Remove an environment variable
lm domains add example.com
Add a custom domain with auto-SSL
lm domains list
List custom domains and SSL status
lm domains rm example.com
Remove a custom domain

AI

Build with natural language and operate with conversational ops.

lm agent
Launch an interactive REPL — multi-step natural-language ops over your services (deploys, env vars, logs, domains, databases). Streams over SSE.
lm agent -p "why did my last deploy fail?"
One-shot — run a single prompt and exit. Add --json to pipe into jq.
lm agent --thread-id <id>
Resume an existing agent conversation across CLI sessions
lm agent --service <id> --environment production
Scope the session to a specific service or environment
lm lightspeed(lm c)
Modify your service with AI — describe changes, AI generates code and deploys
lm c "add dark mode"
Quick inline modification

API Keys & Tokens

Issue and revoke programmatic credentials. For OAuth-based AI client connections, use the Connected Apps dashboard instead.

lm api-key list(lm token list / lm api-key ls)
List your API keys with last-used timestamps
lm api-key create <name>
Create a new API key — full token is shown ONCE, store it immediately
lm api-key delete <keyId>(lm api-key rm)
Revoke an API key

Deployments & Previews

Per-service deploy history, rollbacks, and per-branch preview environments.

lm deployments list(lm deploys ls)
List recent deployments for the current service
lm deployments info <deploymentId>
Show deployment details — status, build logs, commit, duration
lm deployments cancel <deploymentId>
Cancel a running deployment
lm deployments rollback <deploymentId>
Roll back to a previous deployment in one command
lm preview list(lm preview ls)
List active preview environments
lm preview create <branch>
Spin up a preview environment for a branch
lm preview delete <previewId>(lm preview rm)
Tear down a preview environment

Infra & Usage

Inspect platform pods and aggregate resource usage. Most users don't need these — they're here when you do.

lm usage summary
Aggregated CPU, memory, network, and request stats for the current service
lm usage history
Time-series resource snapshots for trend analysis
lm infra list(lm infra ls)
List pods for a team (admin / debugging)
lm infra logs <namespace> <pod>
Get logs straight from a specific pod
lm infra describe <namespace> <pod>
Detailed pod information — events, conditions, volumes
lm infra restart <namespace> <pod>
Restart (delete and reschedule) a pod
lm infra delete <namespace> <pod>(lm infra rm)
Delete a pod

Browser Automation

Powered by Playwright. Chromium auto-downloads on first use — zero setup required.

lm browser screenshot [url](lm b ss)
Capture a screenshot — supports device emulation, full-page, and delay
lm b screenshot --device 'iPhone 14'
Screenshot with mobile device emulation
lm b screenshot --full -o hero.png
Full-page screenshot saved to hero.png
lm browser pdf [url]
Generate a PDF — configurable format and orientation
lm browser open [url]
Open a headed browser for interactive inspection
lm browser test [url]
Run smoke tests — load time, errors, HTTPS, content
lm b test --check-links --check-a11y
Extended tests with link validation and accessibility checks
lm browser wait [url]
Poll until a page is reachable — great after deploy
lm browser codegen [url]
Record browser actions and generate Playwright test code
lm browser devices
List available device emulation profiles
lm b devices --filter iphone
Filter devices by name

Workflows

List and trigger Stirrup workflows running on your deployed services. The same workflows are also available to MCP clients via the agent's run_stirrup_workflow tool.

lm workflows list(lm wf ls)
List Stirrup workflows across every Stirrup service in your account
lm workflows run <serviceId>/<workflowId>
Trigger a workflow. Use --input '{...}' to pass a JSON payload
lm workflows runs <serviceId>
Show recent run history for a service's workflows

Database

Manage databases directly from the CLI — interactive shell, queries, dumps, and more.

lm db list(lm db ls)
List all databases with status and linked services
lm db info <dbId>
Show database details and connection info
lm db connect <dbId>(lm db url)
Get the full connection URL (with credentials)
lm db credentials <dbId>(lm db creds)
Show host, port, username, password, and internal DNS
lm db shell <dbId>(lm db sh)
Interactive SQL shell with psql-style meta-commands (\dt, \d, \l)
lm db query <dbId> "SELECT * FROM users"(lm db q)
Execute a SQL query and print results
lm db tables <dbId>
List tables with sizes and row counts
lm db create my-db
Create a new PostgreSQL database
lm db create my-cache -e redis
Create a Redis database
lm db link <dbId> <serviceId>
Link database to service (injects connection URL as env var)
lm db dump <dbId>
Dump database to stdout or file (pg_dump)
lm db seed <dbId> schema.sql
Run a SQL file against the database
lm db delete <dbId>(lm db rm)
Delete a database

GitHub Repository

Manage your connected GitHub repo directly from the CLI. Auto-detects repo from git remote.

lm repo view
View repo info — stars, language, description
lm repo view --web
Open repository in browser
lm repo prs
List pull requests (filterable by state)
lm repo issues
List issues (filterable by state and labels)
lm repo issue-create -t 'Bug: ...'(lm repo ic)
Create a new issue from the command line
lm repo branches(lm repo br)
List branches, highlight current
lm repo commits(lm repo log)
Recent commits with author and date
lm repo releases(lm repo rl)
List releases with tags and notes
lm repo actions(lm repo runs)
View recent GitHub Actions workflow runs
lm repo browse [path](lm repo web)
Open repo or specific file in browser
lm repo clone owner/repo
Shallow clone a GitHub repository
lm repo diff
Show uncommitted changes (git diff --stat)
lm repo stash [push|pop|list]
Manage git stash

Prefer your editor over the CLI?

The same agent and 11 tools that power lm agent are also reachable from Claude Code, Cursor, Codex, and any MCP client over OAuth at mcp.launchmatic.io. See the MCP setup docs.

Browser automation — zero config

Launchmatic auto-downloads Chromium on first use of lm browser — no manual setup needed. If you already have Chrome or Chromium installed, it uses that instead.

All browser commands auto-detect the URL from your .launchmatic.json context if not provided.