vers run
Start a Vers development environment according to the configuration in vers.toml.Usage
Options
| Option | Description |
|---|---|
--mem-size | Override memory size (MiB) |
--vcpu-count | Override number of virtual CPUs |
--rootfs | Override rootfs name |
--kernel | Override kernel name |
--fs-size-vm | Override VM filesystem size (MiB) |
--vm-alias, -N | Set an alias for the root VM |
Examples
Start with default configuration
Override resource settings
Use custom alias
Override images and storage
How it works
Therun command:
- Loads configuration: Reads settings from
vers.toml - Applies overrides: Uses command-line flags to override configuration values
- Creates environment: Makes API call to create a new environment with the specified settings
- Updates HEAD: Sets your local HEAD to point to the new root VM
- Confirms success: Shows environment and root VM information
Configuration integration
The command respects yourvers.toml configuration:
What gets created
- New environment: Fresh environment with your specified configuration
- Root VM: The primary VM with your settings
- Local HEAD: Updated to point to the new root VM
Error handling
Missing configuration
vers init first to create configuration.
Invalid settings
Rootfs not found
No .vers directory
vers init in your project directory.
Use cases
Quick development startup
Resource experimentation
Custom environment testing
Named environments
Prerequisites
- Project initialized with
vers init - Valid
vers.tomlconfiguration file - Authenticated with Vers platform
- Network connectivity
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 init - Initialize project configuration
- vers connect - Connect to running VMs