vers checkout
Switch your HEAD pointer to a different VM in your environment.Synopsis
Description
Thecheckout command changes your current HEAD pointer to point to a different VM. HEAD determines which VM you’ll interact with when using commands like vers connect, vers execute, or other VM-specific operations.
Basic Usage
Show Current HEAD
Switch to VM by ID
Switch to VM by Alias
What Happens When You Checkout
- Verification: The command verifies the target VM exists and is accessible
- HEAD Update: Updates your local HEAD pointer to the target VM
- Confirmation: Shows the switch was successful with VM state information
Examples
Basic VM Switching
Using Aliases
Development Workflow
Error Scenarios
VM Not Found
vers status or vers tree, or verify the VM ID/alias is correct.
No HEAD Set
vers status to see available VMs.
Network/API Issues
Understanding HEAD
HEAD is a pointer that tracks which VM you’re currently “on”. When you run VM-specific commands, they operate on whatever VM HEAD points to:vers connect- Connects to HEAD VMvers execute- Runs commands on HEAD VMvers branch- Creates new VM from HEAD VM (if no VM specified)
Tips
- Always run
vers checkoutto see your current VM before running other commands - Use meaningful aliases for your VMs to make switching easier
- VM aliases are more memorable than VM IDs (e.g.,
production-appvsvm-a1b2c3d4) - If you’re unsure what VMs are available, use
vers statusorvers tree
Common Patterns
Quick Status Check
Environment Switching
Working with VM IDs
See Also
- vers status - See all available VMs and current HEAD
- vers tree - Visualize VM hierarchy and relationships
- vers connect - Connect to your current HEAD VM
- vers branch - Create new VM from current HEAD