There are more commands to manage vagrant boxes.
As you might remember, I've already typed a command to add vagrant box.
The add sub command allows you to add a new box.
It makes a single argument and a number of optional flags.
The argument is a name your URL or path to a box file.
If a name is provided, Vagrant will download the box from Vagrant Cloud.
If we provide a URL or path to a box stored elsewhere, we need to give Vagrant a name to use.
This is provided with this dash name optional flag.
Some other optional flags that might be used include force, which will tell Vagrant to remove a preexisting
box with the same name.
Another flag is clean, which will tell Vagrant to clean any temporary downloaded files and provider
flag, which allows us to specify another provider.
As you might remember, the default provider is virtual box.
However, you can use any other available providers like Hyper-V.
Now let's add a Hashicorp slash size 64 box to our vagrant environment.
I'll type vagrant box add and the name of the box Hashicorp slash brew size 64.
Now let's list the boxes with lists of command and file type vagrant box list.
Now the boxes might be regularly updated and we can use the outdated sub command to see whether there
are updates available.
I'll type vagrant box outdated and the output will be that the vagrant is checking if the box you need
is up to date.
In this case, CentOS version 19 02.01 is up to date.
Of course you can remove the boxes as you might remember, with remove sub command and update the current
environments box.
With the update sub command you could type vagrant box update.
Alternatively, we can update a specific box which isn't tied to the current environment using the slash
slash.
Sorry, there's this flag to provide the name of the box.
Now once you start several environments in different projects, you need to know which projects are
running, which boxes are suspended or stopped.
As you might remember, to check the status of the box, you should use vagrant status.
Let's type it and you'll get the status of the current project box.
But if there are several projects and several boxes, you should use Vagrant Global Status Command to
check all the projects and boxes running on your machine.
Let's type it Vagrant Global status.
And in this case we'll get the idea of the box, the name of the box provider and state, and the directory
in which this box is currently running.
Now you can copy the idea of the box and suspended or destroy it or start it.
So I'll type the command vagrant to find the option which we can use with this box ID as an example,
Let's say that we want to reload this box, so I'll type vagrant, then I'll copy the ID and type reload
and after a low tile paste the idea of the box I want to reset.
If you don't need this box anymore, you can type vagrant destroy and the idea of the machine you don't
need anymore.