Does Terramate intend to add native pagination options like `--limit` and `--offset` to the `terramate list` command?
0 reputation · 06 Dec 2020, 09:43 UTC
0 reputation · 06 Dec 2020, 09:43 UTC
Users need a way to retrieve only a portion of the stack list from a Terramate project that contains hundreds or thousands of stacks, avoiding the overhead of post‑processing the full output with tools such as jq or head.
Because the `terramate list` command currently provides no native pagination flags and the internal order depends on a depth‑first filesystem traversal that can differ between case‑sensitive and case‑insensitive environments, it is unclear whether the project plans to introduce `--limit` and `--offset` options or to guarantee a stable ordering for paginated queries.
What are the risks to automation scripts if pagination remains an external concern? How might variations in filesystem traversal order affect the consistency of paginated results across different operating systems? Does Terramate intend to add built‑in pagination support to the `list` command in a future release?
As of the newest publicly available Terramate release (up to mid‑2024), the terramate list command does not include native pagination flags such as --limit or --offset. No official roadmap entry or open pull request implements these options, and the documentation makes no mention of a forthcoming pagination feature.
head or jq) can produce duplicate or missing entries when the underlying filesystem order changes.If Terramate were to add --limit and --offset in the future, it would almost certainly need to expose a stable sort key (e.g., stack path or name) to guarantee repeatable results. Documentation would have to describe the ordering semantics to avoid ambiguity for users.
Open a terminal in a project directory and run:
terramate list --help
Check the output for any --limit or --offset flags. If they are absent, the CLI does not support pagination.
Inspect the official documentation (e.g., docs.terramate.io) or the terramate GitHub repository’s release notes. Search for tags such as "pagination" or "list" to see if a new feature has been announced.
If you need pagination now, consider one of the following workarounds:
terramate list | head -n 100 – simple line‑based slicing.terramate list | jq '.[] | select(.path | startswith("/desired/prefix"))' – JSON filtering for more complex criteria.These external tools add processing overhead but are the current practical solution.
These conclusions are based on the state of Terramate up to June 2024. Product plans may evolve, and a future release could add pagination without a prior public announcement. Therefore, the verification steps above should be repeated whenever you upgrade your CLI or consult the latest documentation.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.