v2.31.0-dev23 58a92f3

status.md RawHistoryFolder

Status Command

Show Gordon server status and container health.

gordon status

Display server configuration and container status for all routes.

gordon status
gordon status --remote https://gordon.mydomain.com --token $TOKEN

gordon status works in local mode and remote mode.

  • Local mode reads status from in-process services.
  • Remote mode reads status from the target admin API.

Output

Gordon Status

Gordon Domain: gordon.example.com
Registry Port: 5000
Server Port: 8088
Routes: 3
Auto-Route: true
Network Isolation: false

Container Status:
  app.example.com: running
  api.example.com: running
  worker.example.com: stopped

Information Displayed

Field Description
Gordon Domain Public Gordon domain from configuration
Registry Port Docker registry port
Server Port Gordon HTTP proxy port
Routes Total configured routes
Auto-Route Whether auto-routing is enabled
Network Isolation Whether network isolation is enabled
Container Status Status of each route's container

Container States

State Description
running Container is running and healthy
restarting Container is in runtime restart backoff or restart cycle
stopped Container was stopped
exited Container exited (check logs for errors)
paused Container is paused
unknown Unable to determine container state

Flags

The status command uses global flags for remote access:

Flag Description
--remote, -r Remote name or URL (e.g., prod, https://gordon.mydomain.com)
--token Authentication token

Environment Variables

Variable Description
GORDON_REMOTE Remote name or URL (e.g., prod, https://gordon.mydomain.com)
GORDON_TOKEN Authentication token

Examples

Check Local or Remote Status

# Local
gordon status

# Using flags
gordon status --remote https://gordon.mydomain.com --token $TOKEN

# Using environment variables
export GORDON_REMOTE=https://gordon.mydomain.com
export GORDON_TOKEN=your-token
gordon status

Quick Health Check

# Check if all containers are running
gordon status --remote https://gordon.mydomain.com --token $TOKEN | grep -E "(running|stopped|exited)"

Required Permissions (Remote Only)

Remote status calls require admin:status:read scope in the authentication token.

# Generate token with required scope
gordon auth token generate --subject admin --scopes admin:status:read
source
1# Status Command
2
3Show Gordon server status and container health.
4
5## gordon status
6
7Display server configuration and container status for all routes.
8
9```bash
10gordon status
11gordon status --remote https://gordon.mydomain.com --token $TOKEN
12```
13
14`gordon status` works in local mode and remote mode.
15
16- Local mode reads status from in-process services.
17- Remote mode reads status from the target admin API.
18
19### Output
20
21```
22Gordon Status
23
24Gordon Domain: gordon.example.com
25Registry Port: 5000
26Server Port: 8088
27Routes: 3
28Auto-Route: true
29Network Isolation: false
30
31Container Status:
32  app.example.com: running
33  api.example.com: running
34  worker.example.com: stopped
35```
36
37### Information Displayed
38
39| Field | Description |
40|-------|-------------|
41| Gordon Domain | Public Gordon domain from configuration |
42| Registry Port | Docker registry port |
43| Server Port | Gordon HTTP proxy port |
44| Routes | Total configured routes |
45| Auto-Route | Whether auto-routing is enabled |
46| Network Isolation | Whether network isolation is enabled |
47| Container Status | Status of each route's container |
48
49### Container States
50
51| State | Description |
52|-------|-------------|
53| running | Container is running and healthy |
54| restarting | Container is in runtime restart backoff or restart cycle |
55| stopped | Container was stopped |
56| exited | Container exited (check logs for errors) |
57| paused | Container is paused |
58| unknown | Unable to determine container state |
59
60## Flags
61
62The status command uses global flags for remote access:
63
64| Flag | Description |
65|------|-------------|
66| `--remote, -r` | Remote name or URL (e.g., prod, https://gordon.mydomain.com) |
67| `--token` | Authentication token |
68
69## Environment Variables
70
71| Variable | Description |
72|----------|-------------|
73| `GORDON_REMOTE` | Remote name or URL (e.g., prod, https://gordon.mydomain.com) |
74| `GORDON_TOKEN` | Authentication token |
75
76## Examples
77
78### Check Local or Remote Status
79
80```bash
81# Local
82gordon status
83
84# Using flags
85gordon status --remote https://gordon.mydomain.com --token $TOKEN
86
87# Using environment variables
88export GORDON_REMOTE=https://gordon.mydomain.com
89export GORDON_TOKEN=your-token
90gordon status
91```
92
93### Quick Health Check
94
95```bash
96# Check if all containers are running
97gordon status --remote https://gordon.mydomain.com --token $TOKEN | grep -E "(running|stopped|exited)"
98```
99
100## Required Permissions (Remote Only)
101
102Remote status calls require `admin:status:read` scope in the authentication token.
103
104```bash
105# Generate token with required scope
106gordon auth token generate --subject admin --scopes admin:status:read
107```
108
109## Related
110
111- [Serve Command](./serve.md)
112- [Routes Command](./routes.md)
113- [Remote CLI Management](/wiki/guides/remote-cli.md)

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close