Launchmatic CLI

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 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 — Lightspeed

lm lightspeed(lm c)
Modify your service with AI — describe changes in natural language
lm c "add dark mode"
Quick inline modification

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

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

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.