vers init
Initialize a new vers project with a vers.toml configuration file.Usage
Options
| Option | Default | Description |
|---|---|---|
--name, -n | Directory name | Project name |
--mem-size | 512 | Memory size in MiB |
--vcpu-count | 1 | Number of virtual CPUs |
--rootfs | ”default” | Name of the rootfs image |
--kernel | ”default.bin” | Name of the kernel image |
--dockerfile | ”Dockerfile” | Name of the Docker file |
--fs-size-cluster | 1024 | Total cluster filesystem size in MiB |
--fs-size-vm | 512 | VM filesystem size in MiB |
Examples
Initialize with defaults
Customize project settings
Machine learning project
What gets created
Configuration file (vers.toml)
Repository structure (.vers/)
Git integration (.gitignore)
Automatically creates or updates .gitignore to exclude Vers internals from version control.
How it works
Theinit command:
- Authentication check: Prompts for login if no API key exists
- Directory creation: Creates
.vers/directory structure - Configuration: Generates
vers.tomlwith specified or default values - Git integration: Creates/updates
.gitignorewith Vers-specific entries - Local setup: Initializes empty HEAD file and config
Authentication
If this is your first time using Vers,init will prompt you to authenticate:
Configuration details
The generatedvers.toml uses these sections:
- [machine]: VM resource allocation (memory, CPU, storage)
- [rootfs]: Base filesystem image configuration
- [kernel]: Kernel image specification
- [builder]: Build system configuration (Docker, etc.)
vers.toml after initialization to adjust settings.
Prerequisites
- Write permissions in the current directory
- Network connectivity for authentication (if not already logged in)
See Also
- vers up - Start your environment after initialization
- vers login - Authenticate with Vers platform