Skip to main content
Routes connect custom hostnames to your application through ZWRM’s reverse proxy.

List routes

zwrm routes list
FlagTypeDefaultDescription
--appstringfrom zwrm.tomlApplication name

Create a route

zwrm routes create --hostname example.com
FlagTypeDefaultDescription
--appstringfrom zwrm.tomlApplication name
--hostnamestringrequiredTarget hostname
--portintfrom app config or 8080Target port

Example

zwrm routes create --hostname api.example.com --port 3000 --app my-api

Delete a route

zwrm routes delete <route-id>
Route IDs support prefix matching — you only need to type enough characters to uniquely identify the route.
FlagTypeDefaultDescription
--force, -fboolfalseSkip confirmation prompt
--appstringfrom zwrm.tomlApplication name

Example

zwrm routes delete abc123 --force