TheDocumentation Index
Fetch the complete documentation index at: https://docs.grounds.gg/llms.txt
Use this file to discover all available pages before exploring further.
preview subtree manages preview environments — the ephemeral envs created by grounds push --target=staging.
Synopsis
--project or GROUNDS_PROJECT to switch).
preview list
| Flag | Purpose |
|---|---|
--include-deleted | Show envs the janitor has already swept. Their STATUS will read deleted. |
--output json | Machine-readable form. Useful for piping into jq. |
preview show
--json for the raw API response — useful for scripting or debugging.
preview pin / unpin
expiresAt. They don’t get a new TTL — they just don’t have one. Unpin to put it back on the cleanup schedule (the TTL is recomputed from now() + 7d).
Pinning is intentionally manual. The platform doesn’t auto-pin “interesting” envs, so a forgotten demo doesn’t quietly burn cluster resources for weeks.
What you can’t do here (yet)
- Force-delete a non-pinned env (the janitor will get to it within 30 min of expiry, and you can always push a new one).
- Rename a preview env or change its hostname.
- Promote a preview to production (that’s a separate
grounds promoteflow, currently in beta).
Equivalents in the portal
The portal’s Previews tab on a project page has the same operations:- One row per env with status badge, expiry, public URL, pin indicator.
- Per-row dropdown: Pin (skip auto-cleanup) / Unpin (re-enable cleanup).
- Click the URL to open the env in a new tab.
