Quickstart Guide
Get up and running with Vers in under 10 minutes. This guide takes you from download to your first branched virtual machine.What You’ll Accomplish
- Install the Vers CLI
- Set up authentication
- Create your first project
- Launch a virtual machine
- Experience the power of VM branching
Step 1: Download and Install
Download Vers
Visit the beta download page and download the appropriate binary for your platform.Install the CLI
macOS/Linux:Step 2: Authentication
Log In to Vers
Verify Authentication
Step 3: Your First Project
Create a Project Directory
Initialize the Project
vers.toml- Configuration file specifying VM resources and environment.vers/- Local repository for managing VM states and branches
Understanding vers.toml
The generated configuration looks like this:Step 4: Launch Your First VM
Start the Environment
- Creates a new cluster (your VM environment)
- Launches the root VM with the specified configuration
- Sets up the initial branch (
main)
Check the Status
[R]) that your HEAD points to.
Step 5: Connect to Your VM
SSH Into the VM
- Manages SSH keys
- Connects you to the running VM
- Drops you into a terminal session
Step 6: Experience VM Branching
This is where Vers gets powerful. Instead of starting over, you can branch your VM state.Create a Branch
- All installed software
- Your files (
test.txtis still there) - Running processes
- Memory state
Switch Between Branches
Compare States
Step 7: Clean Up (Optional)
Stop Your Environment
What’s Next?
Now that you understand the basics, you’re ready for real projects:Advanced Tutorials
Database Development:- Database State Testing with PostgreSQL - Learn to branch database states for parallel testing
- Parallel Web Testing with Puppeteer - Eliminate repetitive test setup through VM branching
Common Patterns
Development Workflow:Key Commands Reference
| Command | Purpose |
|---|---|
vers init | Initialize a new project |
vers up | Start VMs and clusters |
vers connect | SSH into current VM |
vers branch --name <name> | Create a new branch |
vers checkout <branch> | Switch to a branch |
vers tree | View VM hierarchy |
vers status | Show cluster status |
vers kill | Delete VMs/clusters |
Troubleshooting
”Command not found: vers”
The binary isn’t in your PATH. Either:- Move it to
/usr/local/bin/(macOS/Linux) - Add its location to your PATH environment variable
- Run it with the full path:
./vers-macos-arm64 --version
”Authentication failed"
"No clusters found”
You haven’t created any VMs yet:VM won’t start
Check your configuration invers.toml. The default settings work for most systems, but you might need to adjust memory allocation on resource-constrained machines.
Support
- Documentation: Explore more tutorials and CLI reference
- Discord: Join our community for real-time help
- Email: [email protected] for technical issues