CLI

Overview

The oblien public-access command manages which workspace ports are publicly accessible, with protocol and label configuration.

Commands

List Exposed Ports

oblien public-access list <ws-id>

Displays a table with port, slug, URL, and label.

Expose a Port

oblien public-access expose <ws-id> --port <number> [--label <label>] [--slug <slug>]
FlagDescription
--port <number>Port number (required)
--label <label>Human-readable label
--slug <slug>Custom slug for the preview URL (optional, auto-generated if omitted)

The slug becomes part of the preview URL: <slug>.preview.oblien.com. It must be 3–48 characters, lowercase alphanumeric and hyphens only.

Update Slug

oblien public-access update-slug <ws-id> --port <number> --slug <new-slug>
FlagDescription
--port <number>Port number (required)
--slug <slug>New slug (required)

Revoke a Port

oblien public-access revoke <ws-id> <port>

Examples

oblien public-access list ws_abc123
oblien public-access expose ws_abc123 --port 3000 --slug my-api
oblien public-access expose ws_abc123 --port 8080 --label "API Server"
oblien public-access update-slug ws_abc123 --port 3000 --slug new-slug
oblien public-access revoke ws_abc123 3000

For custom domains (your own domain with SSL), see domain.