list
The list command displays states stored in your S3 bucket. By default, it performs a global scan, showing states from all projects in the bucket.
workstate list [OPTIONS]Options
Section titled “Options”-p, --project: Filter the list to show only states belonging to the current project.-s, --system NAME: Filter by operating system (e.g.,Windows,Linux).-b, --branch NAME: Filter by Git branch name.-o, --older-than DURATION: Show states older than a duration (e.g.,30dfor 30 days,1yfor 1 year).-i, --interactive: Enter interactive mode to browse and select states using fuzzy search.--no-cache: Bypass the local metadata cache and fetch the fresh list directly from S3.
Examples
Section titled “Examples”# List all states across all projects (Default)workstate list
# Show only states for the current projectworkstate list --project
# Find states from a specific branchworkstate list --branch feature/login
# Browse states interactivelyworkstate list -i
# Clean up check: find states older than 6 monthsworkstate list --older-than 6m