Skip to main content

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

The init command:
  1. Authentication check: Prompts for login if no API key exists
  2. Directory creation: Creates .vers/ directory structure
  3. Configuration: Generates vers.toml with specified or default values
  4. Git integration: Creates/updates .gitignore with Vers-specific entries
  5. Local setup: Initializes empty HEAD file

Authentication

If this is your first time using Vers, init will prompt you to authenticate:

Configuration details

The generated vers.toml uses these sections:
  • [machine]: VM resource allocation (memory, CPU, storage)
  • [rootfs]: Base filesystem image configuration
  • [kernel]: Kernel image specification
You can edit 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