Skip to main content

vers alias

Show VM ID for an alias, or list all aliases.

Synopsis

Description

The alias 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

Output:

Look Up Specific Alias

Output:

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

Common Patterns

Name a long-running VM

Re-alias an existing VM

Resolve an alias to the underlying ID

See Also