mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-16 00:58:17 -05:00
32 lines
No EOL
800 B
Text
32 lines
No EOL
800 B
Text
---
|
|
layout: docs
|
|
page_title: vagrant validate - Command-Line Interface
|
|
description: The "vagrant validate" command is used to validate your Vagrantfile.
|
|
---
|
|
|
|
# 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.
|
|
``` |