CLICommand referenceedge

edge

Commands, arguments, and options for openship edge.

See the workflow guide for examples. Global flags such as --json go before the command; see global options.

openship edge

Install and manage the OpenResty edge (reverse proxy, TLS, per-route rules)

openship edge [options] [command]
SubcommandPurpose
statusShow whether the edge is installed and serving :80/:443
up|install [options]Ensure the edge is up and serving; optionally enable monitoring (built-in analytics DB)
migrateTake over :80/:443 and import the existing proxy's sites into the edge
takeoverFree :80/:443 for the edge — whatever holds them is stopped and its sites drop
sites|scanList reverse-proxy sites on this host that the edge could import
repair|doctor [options]Diagnose why the edge isn't serving; --fix to resolve a port conflict
rulesPer-route edge rules: rate-limit, ban, access control
domains|domainDomains routed through the edge: list, register on a port, verify SSL, remove
traffic [options]Traffic overview for a project (requests, bandwidth, hourly periods)
analytics [options]Per-domain analytics for a project: visitors, countries, top paths
logs [options]Recent HTTP request logs the edge captured for a project

openship edge analytics

Per-domain analytics for a project: visitors, countries, top paths

openship edge analytics [options]
OptionMeaning
-p, --project <id>Project ID
--domain <host>Scope to a single tracked domain
--from <ts>Window start (ISO 8601 or epoch ms; default 7 days)
--to <ts>Window end

openship edge domains

Domains routed through the edge: list, register on a port, verify SSL, remove

openship edge domains|domain [options] [command]
SubcommandPurpose
list [options]List a project's domains routed through the edge
add [options] <hostname>Register a hostname on the edge, bound to a port (auto-verifies SSL)
rm [options] <hostname>Remove a hostname from the edge

openship edge domains add

Register a hostname on the edge, bound to a port (auto-verifies SSL)

openship edge domains add [options] <hostname>
ArgumentMeaning
hostnameDomain hostname (e.g. app.example.com)
OptionMeaning
-p, --project <id>Attach to an existing project (uses its target port)
--port <n>Bind a new tracked project to 127.0.0.1:<n>
--primaryMark this domain as the project's primary (default: false)
--no-verifySkip DNS verification + SSL issuance (just claim the hostname)

openship edge domains list

List a project's domains routed through the edge

openship edge domains list [options]
OptionMeaning
-p, --project <id>Project ID

openship edge domains rm

Remove a hostname from the edge

openship edge domains rm [options] <hostname>
ArgumentMeaning
hostnameDomain hostname to remove
OptionMeaning
-p, --project <id>Project the domain belongs to

openship edge logs

Recent HTTP request logs the edge captured for a project

openship edge logs [options]
OptionMeaning
-p, --project <id>Project ID
--limit <n>How many recent entries to fetch (max 200) (default: 50)
--followPoll for new entries and print them as they arrive (default: false)

openship edge migrate

Take over :80/:443 and import the existing proxy's sites into the edge

openship edge migrate [options]

openship edge repair

Diagnose why the edge isn't serving; --fix to resolve a port conflict

openship edge repair|doctor [options]
OptionMeaning
--fixAttempt to fix a detected conflict (default: migrate its sites) (default: false)
--migrateWith --fix: import the existing proxy's sites
--takeoverWith --fix: stop whatever holds :80/:443 (sites drop)

openship edge sites

List reverse-proxy sites on this host that the edge could import

openship edge sites|scan [options]

openship edge status

Show whether the edge is installed and serving :80/:443

openship edge status [options]

openship edge takeover

Free :80/:443 for the edge — whatever holds them is stopped and its sites drop

openship edge takeover [options]

openship edge traffic

Traffic overview for a project (requests, bandwidth, hourly periods)

openship edge traffic [options]
OptionMeaning
-p, --project <id>Project ID
--domain <host>Scope to a single tracked domain
--from <ts>Window start (ISO 8601 or epoch minutes)
--to <ts>Window end (ISO 8601 or epoch minutes)

openship edge up

Ensure the edge is up and serving; optionally enable monitoring (built-in analytics DB)

openship edge up|install [options]
OptionMeaning
--migrateOn a port conflict, import the existing proxy's sites and take over
--takeoverOn a port conflict, stop whatever holds :80/:443 (its sites drop)
--monitoringAlso enable monitoring: install the built-in Openship service + embedded DB for analytics
--no-monitoringEdge only — skip the monitoring prompt (the headless default)
--admin-name <name>Admin display name for a fresh monitoring install
--admin-email <email>Admin email for a fresh monitoring install (required when headless)
--admin-password <pw>Admin password (prefer the OPENSHIP_ADMIN_PASSWORD env var)

On this page