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
: 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
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
Therun-commit command:
- Validates commit key: Ensures the commit key is provided
- Creates environment: Makes API call to create environment from the specified commit
- Updates HEAD: Sets your local HEAD to point to the new root VM
- 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
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 (
.versdirectory recommended)
Notes
- Aliases set with
--vm-aliasare stored locally at~/.vers/aliases.json - Use
vers aliasto 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
- vers alias - View and look up aliases
- vers run - Start fresh development environment
- vers commit - Create commits for later reproduction