Skip to main content

vers run-commit

Start a Vers development environment from an existing commit, or from a repository tag reference.

Usage

Options

Examples

Start from commit key

With custom alias

Start from a repo:tag reference

The argument format is auto-detected: UUIDs are treated as commit IDs, and anything containing : is treated as a repository reference. The server resolves org-local repos first, then falls back to cross-org public repos when the reference contains a /. This means org-local repos whose names contain slashes (e.g. team/project:v1) always take priority over cross-org references.

Start from a public repo

This resolves the tag from acme’s public repository. The repo must have been made public with vers repo visibility <name> --public.
The org/repo:tag form only resolves public repos cross-org. To reference your own private repo, use the bare form repo:tag (without the org prefix).

How it works

The run-commit command:
  1. Validates commit key: Ensures the commit key is provided
  2. Creates environment: Makes API call to create environment from the specified commit
  3. Updates HEAD: Sets your local HEAD to point to the new root VM
  4. Confirms success: Shows environment and root VM information

What gets created

  • New environment: Created from the commit’s state
  • Root VM: The primary VM, restored from commit
  • Local HEAD: Updated to point to the new root VM

Getting commit keys

From creating commits

From team members

Error handling

Invalid commit key

Missing commit key

No .vers directory

Solution: Run vers init in your project directory first.

Use cases

Reproduce specific state

Team collaboration

Testing and debugging

CI/CD integration

Prerequisites

  • Valid commit key from an accessible commit
  • Authenticated with Vers platform
  • Network connectivity
  • Project directory (.vers directory recommended)

Notes

  • Aliases set with --vm-alias are stored locally at ~/.vers/aliases.json
  • Use vers alias to view all your aliases

Common Patterns

Boot the latest tagged commit

Boot a commit for debugging, then throw away

Pin infra in CI

See Also