v2.31.0-dev23 58a92f3

preview.md RawHistoryFolder

gordon preview

Create and manage ephemeral preview environments. Each preview gets its own subdomain, container, and optionally cloned volumes from the base route.

Commands

gordon preview create

Build, push, and deploy a preview environment.

gordon preview create myapp
gordon preview create myapp --ttl 72h
gordon preview create myapp --no-build --no-data
Flag Description
--ttl Override TTL duration (e.g., 72h)
--no-build Skip image build (use existing image)
--no-data Skip volume cloning from base route
--platform Target platform for build (default linux/amd64)

gordon preview list

List active preview environments with status and remaining TTL.

gordon preview list
gordon preview list --json
Flag Description
--json Output as JSON

gordon preview delete

Tear down a preview environment and clean up its resources.

gordon preview delete myapp-feature-x

gordon preview extend

Extend the TTL of an active preview.

gordon preview extend myapp-feature-x
gordon preview extend myapp-feature-x --ttl 48h
Flag Description
--ttl Additional TTL to add (default 24h)
source
1# gordon preview
2
3Create and manage ephemeral preview environments. Each preview gets its own subdomain, container, and optionally cloned volumes from the base route.
4
5## Commands
6
7### `gordon preview create`
8
9Build, push, and deploy a preview environment.
10
11```bash
12gordon preview create myapp
13gordon preview create myapp --ttl 72h
14gordon preview create myapp --no-build --no-data
15```
16
17| Flag | Description |
18|------|-------------|
19| `--ttl` | Override TTL duration (e.g., `72h`) |
20| `--no-build` | Skip image build (use existing image) |
21| `--no-data` | Skip volume cloning from base route |
22| `--platform` | Target platform for build (default `linux/amd64`) |
23
24### `gordon preview list`
25
26List active preview environments with status and remaining TTL.
27
28```bash
29gordon preview list
30gordon preview list --json
31```
32
33| Flag | Description |
34|------|-------------|
35| `--json` | Output as JSON |
36
37### `gordon preview delete`
38
39Tear down a preview environment and clean up its resources.
40
41```bash
42gordon preview delete myapp-feature-x
43```
44
45### `gordon preview extend`
46
47Extend the TTL of an active preview.
48
49```bash
50gordon preview extend myapp-feature-x
51gordon preview extend myapp-feature-x --ttl 48h
52```
53
54| Flag | Description |
55|------|-------------|
56| `--ttl` | Additional TTL to add (default `24h`) |
57
58## Related
59
60- [Preview Configuration](../config/preview.md)
61- [Deploy](./serve.md#gordon-deploy)

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