vers run-commit
Start a Vers development environment from an existing commit using its commit key.Usage
Options
| Option | Description |
|---|---|
--vm-alias, -N | Set an alias for the root VM |
Examples
Start from commit key
With custom alias
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
See Also
- vers alias - View and look up aliases
- vers run - Start fresh development environment
- vers commit - Create commits for later reproduction