Official HashiCorp CLI for defining, starting, provisioning, and destroying reproducible development environments across VM and container providers.
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis
Vagrant is HashiCorp's environment orchestration CLI for describing a development machine in a Vagrantfile and bringing it up on providers like VirtualBox, VMware, Hyper-V, Docker, or cloud backends. It also manages base boxes, provisioning runs, snapshots, and Vagrant Cloud publishing workflows.
What It Enables
- Bring project-defined machines up, halt, reload, suspend, destroy, and inspect them from the shell, including global status and provider state.
- Rebuild reproducible dev environments from boxes, run provisioners, generate SSH config, and reuse snapshots during testing or troubleshooting.
- Search Vagrant Cloud for existing boxes and publish or manage box, provider, and version metadata for custom environments.
Agent Fit
- Global
--machine-readableoutput gives many core commands stable event lines, andvagrant cloud search --jsonadds real structured output for search results. - Useful when an agent needs to control local VM lifecycle or derive connection details, but most workflows orchestrate external hypervisors and long-running provisioning rather than exposing rich API-shaped data.
- Unattended use needs care: login, confirmation prompts, provider installation, and host-specific dependencies can interrupt automation unless tokens, force flags, and prerequisites are already in place.
Caveats
- Official installation is platform-specific via installer or package download, so a single cross-platform install command is not canonical.
- Most high-value workflows assume an existing Vagrantfile, a working provider plugin, and access to local virtualization or container backends.