vagrant/website/content/docs/cli/validate.mdx
2025-11-20 12:41:04 -05:00

37 lines
No EOL
1.3 KiB
Text

---
layout: docs
page_title: vagrant validate - Command-Line Interface
description: The "vagrant validate" command is used to validate your Vagrantfile.
---
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
> [!IMPORTANT]
> **Documentation Update:** Product documentation previously located in `/website` has moved to the [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs) repository, where all product documentation is now centralized. Please make contributions directly to `web-unified-docs`, since changes to `/website` in this repository will not appear on developer.hashicorp.com.
⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️
# Validate
**Command: `vagrant validate`**
This command validates your [Vagrantfile](/vagrant/docs/vagrantfile/).
## Options
- `--ignore-provider` - Ignores provider config options.
## Examples
Validate the syntax of the Vagrantfile to ensure it is correctly structured and free of errors
```shell-session
$ vagrant validate
Vagrantfile validated successfully.
```
Ensure that the Vagrantfile is correctly structured while ignoring provider-specific configuration options:
```shell-session
$ vagrant validate --ignore-provider virtualbox
==> default: Ignoring provider config for validation...
Vagrantfile validated successfully.
```