Routes Commands
Manage routes on local or remote Gordon instances.
Remote targeting uses client config or an active remote by default.
Use --remote and --token to override. See CLI Overview.
gordon routes
Subcommands
| Subcommand | Description |
|---|---|
list |
List all routes |
add |
Add a new route |
remove |
Remove a route |
deploy |
Deploy a specific route |
gordon routes list
List all configured routes.
gordon routes list
gordon routes list --remote https://gordon.mydomain.com --token $TOKEN
Output
Domain Image Status
--------------------------------------------------------------------------------
app.example.com myapp:latest running
api.example.com myapi:v2.1.0 running
admin.example.com admin-panel:latest stopped
gordon routes add
Add a new route.
gordon routes add <domain> <image>
gordon routes add myapp.example.com myapp:latest
Arguments
| Argument | Description |
|---|---|
<domain> |
The domain name for the route |
<image> |
The container image to deploy |
Options
| Option | Description |
|---|---|
--remote |
Remote Gordon URL |
--token |
Authentication token for remote |
Examples
# Local
gordon routes add myapp.example.com myapp:latest
gordon routes add api.example.com myapi:v2.1.0
# Remote (override)
gordon routes add myapp.example.com myapp:latest --remote https://gordon.mydomain.com --token $TOKEN
gordon routes remove
Remove a route.
gordon routes remove <domain>
gordon routes remove myapp.example.com
Arguments
| Argument | Description |
|---|---|
<domain> |
The domain name of the route to remove |
Options
| Option | Description |
|---|---|
--remote |
Remote Gordon URL |
--token |
Authentication token for remote |
Examples
# Local
gordon routes remove myapp.example.com
# Remote (override)
gordon routes remove myapp.example.com --remote https://gordon.mydomain.com --token $TOKEN
gordon routes deploy
Deploy or redeploy a specific route.
gordon routes deploy <domain>
gordon routes deploy myapp.example.com
Arguments
| Argument | Description |
|---|---|
<domain> |
The domain name of the route to deploy |
Options
| Option | Description |
|---|---|
--remote |
Remote Gordon URL |
--token |
Authentication token for remote |
Description
Triggers a fresh image pull and container redeployment for the specified route.
Examples
# Local
gordon routes deploy myapp.example.com
# Remote (override)
gordon routes deploy myapp.example.com --remote https://gordon.mydomain.com --token $TOKEN