vers up
Build a rootfs image and 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 |
Examples
Build and start with defaults
Skip build phase
With custom settings
How it works
Theup command follows a two-phase process:
Phase 1: Build (conditional)
- Checks builder configuration: If
builder.nameis not “none”, proceeds with build - Builds rootfs: Creates rootfs image according to configuration
- Skips if disabled: When
builder.name = "none", jumps directly to startup
Phase 2: Start environment
- Loads configuration: Reads settings from
vers.toml - Applies overrides: Uses command-line flags to override configuration
- Starts cluster: Creates new cluster with specified settings
- Updates HEAD: Points local HEAD to the new root VM
Configuration control
Build enabled
Build disabled
Error handling
Build phase errors
Configuration errors
vers init first.
Startup errors
Use cases
Full development startup
Quick default environment
Resource-specific development
Project initialization
vs. other commands
vers up vs. vers run
up: Builds first (if configured), then starts clusterrun: Only starts cluster, no building
vers up vs. vers build
up: Builds (if needed) + starts environmentbuild: Only builds rootfs, doesn’t start anything
Prerequisites
- Project initialized with
vers init - Valid
vers.tomlconfiguration file - For building: Dockerfile (if
builder.nameis not “none”) - Network connectivity
- Sufficient resources for cluster creation
See Also
- vers run - Start environment without building
- vers build - Build rootfs images only
- vers init - Initialize project configuration