← 返回命令列表

Linux command

vagrant-box 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List boxes

vagrant box list

Add box

vagrant box add [name]

Remove box

vagrant box remove [name]

Update boxes

vagrant box update

Prune old versions

vagrant box prune

说明

vagrant box manages Vagrant boxes. Boxes are base images used to create virtual machines. Download from Vagrant Cloud or import from local files.

参数

list
List installed boxes.
add _name_
Download and add box.
remove _name_
Remove box.
update
Update boxes.
prune
Remove old box versions.
outdated
Check for updates.
--provider _name_
Specify provider.
--box-version _version_
Specify version.

FAQ

What is the vagrant-box command used for?

vagrant box manages Vagrant boxes. Boxes are base images used to create virtual machines. Download from Vagrant Cloud or import from local files.

How do I run a basic vagrant-box example?

Run `vagrant box list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in vagrant-box?

List installed boxes.