vers init
Initialize a new vers project with a vers.toml configuration file.Usage
Options
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
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
vers.toml after initialization to adjust settings.
Prerequisites
- Write permissions in the current directory
- Network connectivity for authentication (if not already logged in)
Common Patterns
New project, fast path
Init with custom sizing baked in
Re-init an existing directory
vers init won’t overwrite an existing vers.toml. To regenerate, remove and re-run:
See Also
- vers run - Start your environment after initialization
- vers login - Authenticate with Vers platform