opschain templates list
templates
opschain templates list <project> [--wide]
Lists the project's templates as a table: CODE, NAME, TYPE,
VERSIONS (how many versions exist), ASSETS (how many assets are pinned
to any of them) and ARCHIVED. A project with no templates prints
no templates.
Flags
| Flag | Meaning |
|---|---|
--wide | Add the DESCRIPTION column (- where unset). |
--filter <column>[!]=<value> | Keep only rows matching the term (repeatable; terms AND). Columns are the printed table headers lowercased (spaces/dashes fold to _); * wildcards match the whole cell case-insensitively, != negates, commas mean any-of. Applied client-side. Grammar: opschain docs cli. |
-o json|yaml prints the decoded resources — attributes plus the related
version ids, pinned asset ids and the Git remote's id — instead of the
table.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Listed (including an empty list). |
| 1 | The request failed (unknown project, network, auth). |
| 2 | Usage error — no server target, wrong arguments. |
Named errors
templates live on a server's projects — pass --server <url> or 'opschain context use <name>'— no server target (exit 2).
Examples
opschain templates list demo
opschain templates list demo --wide
See also
opschain docs cli/templates-show— one template with its versions.