Skip to content

previewctl list

Usage

Terminal window
previewctl list [flags]

Aliases: ls

Description

Lists preview environments tracked by PreviewCtl.

By default, only previews belonging to the current workspace (directory) are shown. Use --all to display every preview environment across all workspaces.

Flags

FlagTypeDefaultDescription
-a, --allboolfalseList environments across all workspaces

Examples

List environments for the current project:

Terminal window
previewctl list

List all environments globally:

Terminal window
previewctl list --all

Output

ID NAME BRANCH STATUS WORKSPACE CREATED
abc123 my-project-main main active /home/user/my-project 2026-03-11 10:00:00
def456 my-project-feat feature active /home/user/my-project 2026-03-11 11:30:00
ColumnDescription
IDUnique identifier for the preview environment
NAMEAuto-generated name based on project and branch
BRANCHGit branch the preview was created from
STATUSCurrent status (active, stopped, etc.)
WORKSPACEDirectory the preview was created in
CREATEDTimestamp of creation