v2.31.0-dev15 482a736

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

Domain: registry.example.com
Registry Port: 5000
Server Port: 8080
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
Domain Registry domain from configuration
Registry Port Docker registry port
Server Port Gordon admin API 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
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
24Domain: registry.example.com
25Registry Port: 5000
26Server Port: 8080
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| Domain | Registry domain from configuration |
42| Registry Port | Docker registry port |
43| Server Port | Gordon admin API 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| stopped | Container was stopped |
55| exited | Container exited (check logs for errors) |
56| paused | Container is paused |
57| unknown | Unable to determine container state |
58
59## Flags
60
61The status command uses global flags for remote access:
62
63| Flag | Description |
64|------|-------------|
65| `--remote, -r` | Remote name or URL (e.g., prod, https://gordon.mydomain.com) |
66| `--token` | Authentication token |
67
68## Environment Variables
69
70| Variable | Description |
71|----------|-------------|
72| `GORDON_REMOTE` | Remote name or URL (e.g., prod, https://gordon.mydomain.com) |
73| `GORDON_TOKEN` | Authentication token |
74
75## Examples
76
77### Check Local or Remote Status
78
79```bash
80# Local
81gordon status
82
83# Using flags
84gordon status --remote https://gordon.mydomain.com --token $TOKEN
85
86# Using environment variables
87export GORDON_REMOTE=https://gordon.mydomain.com
88export GORDON_TOKEN=your-token
89gordon status
90```
91
92### Quick Health Check
93
94```bash
95# Check if all containers are running
96gordon status --remote https://gordon.mydomain.com --token $TOKEN | grep -E "(running|stopped|exited)"
97```
98
99## Required Permissions (Remote Only)
100
101Remote status calls require `admin:status:read` scope in the authentication token.
102
103```bash
104# Generate token with required scope
105gordon auth token generate --subject admin --scopes admin:status:read
106```
107
108## Related
109
110- [Serve Command](./serve.md)
111- [Routes Command](./routes.md)
112- [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