vers alias
Show VM ID for an alias, or list all aliases.Synopsis
Description
Thealias command lets you look up VM IDs from their human-readable aliases, or view all defined aliases. Aliases are stored locally on your machine and provide a convenient way to reference VMs without remembering their full IDs.
Usage
List All Aliases
Look Up Specific Alias
How Aliases Work
Aliases are a local convenience feature - they’re stored on your machine, not on the server.Storage Location
Aliases are saved in~/.vers/aliases.json:
Setting Aliases
Aliases are created when you use the--alias or --vm-alias flags:
Using Aliases
Once set, aliases work anywhere you’d use a VM ID:Examples
Development Workflow
Scripting
Error Handling
Alias Not Found
No Aliases Defined
Notes
- Aliases are local only - they don’t sync across machines
- Aliases persist until the VM is deleted or you manually edit
~/.vers/aliases.json - If a VM is deleted, its alias becomes stale (pointing to a non-existent VM)
- Alias names can contain letters, numbers, hyphens, and underscores
See Also
- vers run - Start environment with
--vm-alias - vers branch - Create branch with
--alias - vers run-commit - Restore from commit with
--vm-alias - vers checkout - Switch HEAD using alias