LinuxCommandLibrary

vagrant-validate

Validate Vagrantfile syntax

TLDR

Validate the Vagrantfile in the current directory
$ vagrant validate
copy
Validate while ignoring provider-specific configuration
$ vagrant validate -p
copy

SYNOPSIS

vagrant validate [options]

DESCRIPTION

vagrant validate checks the Vagrantfile for syntax errors. It validates the configuration without creating or modifying machines, making it useful for CI/CD pipelines and pre-commit checks. If valid, it prints "Vagrantfile validated successfully."

PARAMETERS

-p, --ignore-provider

Ignore provider-specific configuration options during validation.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard