Skip to content

bhatti unpublish

Remove a published port. The URL stops working immediately.

bhatti unpublish <sandbox> -p <port>

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.

Terminal window
bhatti unpublish dev -p 3000
Unpublished port 3000
FlagDefaultDescription
-p, --port <int>(required)Port to unpublish.

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