Skip to content

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.

Terminal window
monoceros remove-port <name> <port> [<port> ...] [--yes]

Pass the port numbers as arguments.

Terminal window
monoceros remove-port acme 3000
monoceros remove-port acme 3000 8080
  • 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 apply needed. The change is saved to the yml too.