Back to Vagrant

Validate

website/content/docs/cli/validate.mdx

2.4.91.2 KB
Original Source

⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

[!IMPORTANT]
Documentation Update: Product documentation previously located in /website has moved to the 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.

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.