v2.31.0-dev18 7b9923f

pin.md RawHistoryFolder

Pin Command

Pin a route to a specific image tag.

gordon pin

Synopsis

gordon pin <domain> [options]
gordon pin list <domain>

Arguments

Argument Description
<domain> The route domain to pin

Options

Option Description
--tag Target tag (skips interactive selection)
--remote, -r Remote name or URL (e.g., prod, https://gordon.mydomain.com)
--token Authentication token for remote
--json Output as JSON (for pin list)

Description

gordon pin deploys a selected image tag for the given route. Tags are listed from the Gordon registry, with semver tags sorted in descending order first, followed by non-semver tags.

Use cases:

  • Rollback — revert to a previous stable version
  • Forward — advance to a newer version
  • Lock — pin to a specific version instead of following latest
  • Test — switch to an experimental tag

gordon pin list <domain> lists available tags without deploying and marks the current tag.

If the selected tag matches the current running tag, no action is taken.

Examples

# Interactive selection
gordon pin myapp.example.com

# Pin to a specific tag
gordon pin myapp.example.com --tag v1.2.0

# List available tags for a domain
gordon pin list myapp.example.com

# List available tags as JSON
gordon pin list myapp.example.com --json

Notes

  • Local by default; remote mode optional. See CLI Overview for targeting options.
  • Tags are read from the Gordon registry configured on the server.
source
1# Pin Command
2
3Pin a route to a specific image tag.
4
5## gordon pin
6
7### Synopsis
8
9```bash
10gordon pin <domain> [options]
11gordon pin list <domain>
12```
13
14### Arguments
15
16| Argument | Description |
17|----------|-------------|
18| `<domain>` | The route domain to pin |
19
20### Options
21
22| Option | Description |
23|--------|-------------|
24| `--tag` | Target tag (skips interactive selection) |
25| `--remote, -r` | Remote name or URL (e.g., prod, https://gordon.mydomain.com) |
26| `--token` | Authentication token for remote |
27| `--json` | Output as JSON (for `pin list`) |
28
29### Description
30
31`gordon pin` deploys a selected image tag for the given route. Tags are
32listed from the Gordon registry, with semver tags sorted in descending
33order first, followed by non-semver tags.
34
35Use cases:
36- **Rollback** — revert to a previous stable version
37- **Forward** — advance to a newer version
38- **Lock** — pin to a specific version instead of following `latest`
39- **Test** — switch to an experimental tag
40
41`gordon pin list <domain>` lists available tags without deploying and
42marks the current tag.
43
44If the selected tag matches the current running tag, no action is taken.
45
46### Examples
47
48```bash
49# Interactive selection
50gordon pin myapp.example.com
51
52# Pin to a specific tag
53gordon pin myapp.example.com --tag v1.2.0
54
55# List available tags for a domain
56gordon pin list myapp.example.com
57
58# List available tags as JSON
59gordon pin list myapp.example.com --json
60```
61
62### Notes
63
64- Local by default; remote mode optional. See [CLI Overview](./index.md) for targeting options.
65- Tags are read from the Gordon registry configured on the server.
66
67## Related
68
69- [CLI Overview](./index.md)
70- [Push Command](./push.md)
71- [Routes Command](./routes.md)
72- [Deployment Rollback Strategies](../deployment/rollback.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