bhatti unpublish
Remove a published port. The URL stops working immediately.
Synopsis
Section titled “Synopsis”bhatti unpublish <sandbox> -p <port>
Description
Section titled “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
Section titled “Examples”bhatti unpublish dev -p 3000Unpublished port 3000Options
Section titled “Options”| Flag | Default | Description |
|---|---|---|
-p, --port <int> | (required) | Port to unpublish. |
See Global flags for --url, --token, --json, --timing, --data-dir.