--- layout: "docs" page_title: "vagrant box - Command-Line Interface" sidebar_current: "cli-box" description: |- The "vagrant box" command is used to manage "vagrant box add", "vagrant box remove", and other box-related commands such as "outdated", "list", and "update". --- # Box **Command: `vagrant box`** This is the command used to manage (add, remove, etc.) [boxes](/docs/boxes.html). The main functionality of this command is exposed via even more subcommands: * [`add`](#box-add) * [`list`](#box-list) * [`outdated`](#box-outdated) * [`prune`](#box-prune) * [`remove`](#box-remove) * [`repackage`](#box-repackage) * [`update`](#box-update) # Box Add **Command: `vagrant box add ADDRESS`** This adds a box with the given address to Vagrant. The address can be one of three things: * A shorthand name from the [public catalog of available Vagrant images](https://vagrantcloud.com/boxes/search), such as "hashicorp/precise64". * File path or HTTP URL to a box in a [catalog](https://vagrantcloud.com/boxes/search). For HTTP, basic authentication is supported and `http_proxy` environmental variables are respected. HTTPS is also supported. * URL directly a box file. In this case, you must specify a `--name` flag (see below) and versioning/updates will not work. If an error occurs during the download or the download is interrupted with a Ctrl-C, then Vagrant will attempt to resume the download the next time it is requested. Vagrant will only attempt to resume a download for 24 hours after the initial download. ## Options * `--box-version VALUE` - The version of the box you want to add. By default, the latest version will be added. The value of this can be an exact version number such as "1.2.3" or it can be a set of version constraints. A version constraint looks like ">= 1.0, < 2.0". * `--cacert CERTFILE` - The certificate for the CA used to verify the peer. This should be used if the remote end does not use a standard root CA. * `--capath CERTDIR` - The certificate directory for the CA used to verify the peer. This should be used if the remote end does not use a standard root CA. * `--cert CERTFILE` - A client certificate to use when downloading the box, if necessary. * `--clean` - If given, Vagrant will remove any old temporary files from prior downloads of the same URL. This is useful if you do not want Vagrant to resume a download from a previous point, perhaps because the contents changed. * `--force` - When present, the box will be downloaded and overwrite any existing box with this name. * `--insecure` - When present, SSL certificates will not be verified if the URL is an HTTPS URL. * `--provider PROVIDER` - If given, Vagrant will verify the box you are adding is for the given provider. By default, Vagrant automatically detects the proper provider to use. ## Options for direct box files The options below only apply if you are adding a box file directly (when you are not using a catalog). * `--checksum VALUE` - A checksum for the box that is downloaded. If specified, Vagrant will compare this checksum to what is actually downloaded and will error if the checksums do not match. This is highly recommended since box files are so large. If this is specified, `--checksum-type` must also be specified. If you are downloading from a catalog, the checksum is included within the catalog entry. * `--checksum-type TYPE` - The type of checksum that `--checksum` is if it is specified. Supported values are currently "md5", "sha1", and "sha256". * `--name VALUE` - Logical name for the box. This is the value that you would put into `config.vm.box` in your Vagrantfile. When adding a box from a catalog, the name is included in the catalog entry and does not have to be specified.