Skip to content

bhatti unpublish

Remove a published port. The URL stops working immediately.

Synopsis

bhatti unpublish <sandbox> -p <port>

Description

Deletes the routing rule. New requests to the previously published URL get a 404 from the proxy. In-flight WebSocket connections continue until the client closes them.

Publish rules are also automatically cleaned up when a sandbox is destroyed — unpublish is only needed when you want to keep the sandbox but stop exposing the port.

Examples

bhatti unpublish dev -p 3000
Unpublished port 3000

Options

| Flag | Default | Description | | ---- | ------- | ----------- | | -p, --port <int> | (required) | Port to unpublish. |

See Global flags for --url, --token, --json, --timing, --data-dir.

See also