v2.10.0 893d8fa

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 --remote https://gordon.mydomain.com --token $TOKEN

Note: The status command requires remote mode. See CLI Overview for targeting options.

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 Remote Gordon URL
--token Authentication token

Environment Variables

Variable Description
GORDON_REMOTE Remote Gordon URL
GORDON_TOKEN Authentication token

Examples

Check Remote Server 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

The status endpoint requires 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 --remote https://gordon.mydomain.com --token $TOKEN
11```
12
13> **Note:** The status command requires remote mode. See [CLI Overview](./index.md) for targeting options.
14
15### Output
16
17```
18Gordon Status
19
20Domain: registry.example.com
21Registry Port: 5000
22Server Port: 8080
23Routes: 3
24Auto-Route: true
25Network Isolation: false
26
27Container Status:
28  app.example.com: running
29  api.example.com: running
30  worker.example.com: stopped
31```
32
33### Information Displayed
34
35| Field | Description |
36|-------|-------------|
37| Domain | Registry domain from configuration |
38| Registry Port | Docker registry port |
39| Server Port | Gordon admin API port |
40| Routes | Total configured routes |
41| Auto-Route | Whether auto-routing is enabled |
42| Network Isolation | Whether network isolation is enabled |
43| Container Status | Status of each route's container |
44
45### Container States
46
47| State | Description |
48|-------|-------------|
49| running | Container is running and healthy |
50| stopped | Container was stopped |
51| exited | Container exited (check logs for errors) |
52| paused | Container is paused |
53| unknown | Unable to determine container state |
54
55## Flags
56
57The status command uses global flags for remote access:
58
59| Flag | Description |
60|------|-------------|
61| `--remote` | Remote Gordon URL |
62| `--token` | Authentication token |
63
64## Environment Variables
65
66| Variable | Description |
67|----------|-------------|
68| `GORDON_REMOTE` | Remote Gordon URL |
69| `GORDON_TOKEN` | Authentication token |
70
71## Examples
72
73### Check Remote Server Status
74
75```bash
76# Using flags
77gordon status --remote https://gordon.mydomain.com --token $TOKEN
78
79# Using environment variables
80export GORDON_REMOTE=https://gordon.mydomain.com
81export GORDON_TOKEN=your-token
82gordon status
83```
84
85### Quick Health Check
86
87```bash
88# Check if all containers are running
89gordon status --remote https://gordon.mydomain.com --token $TOKEN | grep -E "(running|stopped|exited)"
90```
91
92## Required Permissions
93
94The status endpoint requires `admin:status:read` scope in the authentication token.
95
96```bash
97# Generate token with required scope
98gordon auth token generate --subject admin --scopes admin:status:read
99```
100
101## Related
102
103- [Serve Command](./serve.md)
104- [Routes Command](./routes.md)
105- [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