glab(1)

πŸ’– glab(1) β€” the opentofu state list era πŸ’–

okay bestie, so this page is from the glab manual family (that's the glab(1) bit, hi hello πŸ‘‹) β€” and it's literally all about one little command that lists your states. no cap, that's it. let's get into it 🫢


✨ NAME ✨

glab-opentofu-state-list β€” List states. that's the whole job, she's simple, she's iconic πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

glab opentofu state list [flags]

🌸 DESCRIPTION 🌸

bestie listen. this command lists the OpenTofu or Terraform states in the current project β€” and not just the names, okay?? it also shows you each state's latest version serial and its lock status. so you get the full vibe check on every state, serials and locks included πŸ”₯


πŸŽ€ OPTIONS πŸŽ€

  • --jq="" β€” filters the JSON output with a jq expression. default is empty, so nothing gets filtered unless you say so ✨
  • -F, --output="text" β€” picks the output format. your choices are text or json, and she defaults to text πŸ’–

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these ones aren't even hers, she's just borrowing them from her parents, periodt:

  • -h, --help[=false] β€” shows help for this command. default is false 🧚
  • -R, --repo="" β€” selects another repository. you can use either OWNER/REPO or GROUP/NAMESPACE/REPO. the full URL or a Git URL is also accepted, so flex however you want 🌈

⭐ EXAMPLE ⭐

here's the part where she shows off, no notes πŸ’…

glab opentofu state list
glab opentofu state list -F json

first one: the default text vibe. second one: same energy but with -F json because sometimes you want the machine-readable version, iykyk 😌


πŸ’œ SEE ALSO πŸ’œ

  • glab-opentofu-state(1) β€” go hang with the parent command, she's the main character of this whole storyline πŸ‘‘

okay that's the whole page, go forth and list your states, you're gonna slay 🫢✨

πŸŽ€ that's a wrap, bestie πŸŽ€ this little beauty is auto generated by spf13/cobra, dated Nov 2026, and yes it's part of the glab manual, page glab(1) β€” mwah, bye, love u πŸ’–πŸ¦‹

πŸ“¦ where this page comes from