vers tree
Print a visual tree representation of the cluster and its VMs.Usage
Examples
Show current cluster tree
Show specific cluster tree
How it works
Thetree command:
- Resolves cluster:
- No arguments: Finds cluster containing current HEAD VM
- With argument: Finds cluster by ID or alias
- Builds hierarchy: Uses parent-child relationships from cluster data
- Displays tree: Shows visual tree with state indicators and HEAD marker
- Provides legend: Explains state symbols and suggests next commands
Tree structure
Visual elements
- Tree lines:
└──,├──,│show parent-child relationships - VM names: Shows alias if available, otherwise VM ID
- State symbols:
[R]Running,[P]Paused,[S]Stopped - HEAD marker:
<- HEADindicates your current VM - State colors: Green for Running, muted for Paused, red for Stopped
Hierarchy representation
Understanding VM relationships
Parent-child relationships
VMs can have children created by branching:- Root VM: The original VM in the cluster (no parent)
- Child VMs: Created by branching from a parent
- Sibling VMs: Multiple children of the same parent
State indicators
- [R] Running: VM is active and can be connected to
- [P] Paused: VM is paused but retains state
- [S] Stopped: VM is stopped
Error handling
No cluster found for HEAD
vers up to create a VM or specify a cluster directly.
Cluster not found
Cluster with no root VM
HEAD VM not in any cluster
Use cases
Understanding project structure
Planning development
Navigation planning
State overview
Prerequisites
- Network connectivity to query cluster data
- Valid HEAD VM or cluster identifier
- Cluster must exist and be accessible
See Also
- vers status - Detailed cluster and VM information
- vers checkout - Navigate to different VMs
- vers up - Create clusters when none exist