monoceros remove-port
Removes one or more exposed ports from a workbench’s config. They stop being
routed after the next monoceros apply. The
inverse of monoceros add-port.
monoceros remove-port <name> <port> [<port> ...] [--yes]Pass the port numbers as arguments.
Examples
Section titled “Examples”monoceros remove-port acme 3000monoceros remove-port acme 3000 8080Behavior
Section titled “Behavior”- Idempotent. Removing a port that is not exposed is a no-op.
- No confirmation prompt. The edit is written straight to the yml as soon as you run the command.
- Live immediately. The proxy hot-reloads, so the route is gone at once - no
applyneeded. The change is saved to the yml too.
See also
Section titled “See also”monoceros add-port- the inverse.- Proxy and tunnels - how the proxy works.