Installation
Thesmolvm CLI is installed automatically when you install the SmolVM package:
Basic Usage
Thesmolvm command provides several subcommands for managing VMs and system diagnostics:
Available Commands
doctor
Run host diagnostics for your selected backend
cleanup
Clean stale SmolVM resources and VMs
env
Manage environment variables on running VMs
ui
Start the SmolVM dashboard UI server
Getting Help
Display the main help message:Exit Codes
SmolVM CLI commands follow standard Unix exit code conventions:- 0: Success
- 1: General failure or error
- 2: Invalid usage or missing required arguments
- 130: Interrupted by user (Ctrl+C)
CLI Scripts
SmolVM provides two CLI entry points:Main CLI with all subcommands (doctor, cleanup, env, ui)
Standalone cleanup utility for convenience
Common Workflows
First-Time Setup Validation
After installing SmolVM, verify your system is properly configured:VM Resource Management
Clean up stale or auto-created VMs:Environment Configuration
Set environment variables on a running VM:Dashboard UI
Launch the web-based dashboard:Configuration
The CLI respects the following environment variables:Allow dashboard UI downloads from prerelease/beta tags (set by
--allow-beta flag)Dashboard URL (automatically set by the
ui command)SSH Configuration
Commands that interact with VMs (likeenv) use SSH. By default:
- SSH User:
root - SSH Key:
~/.smolvm/keys/id_ed25519
SmolVM automatically generates SSH keys during VM creation if they don’t exist.
Next Steps
Doctor Command
Learn about system diagnostics
Cleanup Command
Understand resource management
Environment Commands
Configure VM environments
Dashboard UI
Explore the web interface