# What is a Vagrantfile and what is used for ?

In 
Published 2022-12-03

# Vagrantfile

The Vagrantfile is a Ruby file used to configure Vagrant on a per-project basis. The main function of the Vagrantfile is to describe the virtual machines required for a project as well as how to configure and provision these machines.

# Lookup Path

When you run any vagrant command, Vagrant climbs up the directory tree looking for the first Vagrantfile it can find, starting first in the current directory. If Vagrantfile is not in the current directory, it will search the following paths in order for a Vagrantfile, until it finds one:

/home/paul/projects/myProject/Vagrantfile
/home/paul/projects/Vagrantfile
/home/paul/Vagrantfile
/home/Vagrantfile
/Vagrantfile