- vagrant box add <name> <url>
#新建box,可使用参数-f强制覆盖重名的box,url可以是远程地址,也可以是本地路径。
- vagrant box list
#显示当前shell 新建的box
vagrant box remove <name>
vagrant box repackage <name>
vagrant init [box-name] [box-url]
vagrant up [vm-name] [–[no-]provision] [-h]
vagrant destroy [vm-name]
vagrant suspend [vm-name]
vagrant reload [vm-name]
vagrant resume [vm-name]
vagrant halt [vm-name]
vagrant status [vm-name]
- vagrant package [vm-name] [–base name] [–output name.box][–include one,two,three] [–vagrantfile file]
# vagrant package –output release.box –vagrantfile ./Vagrantfile
vagrant provision [vm-name]
vagrant ssh [vm-name] [-c command] [– extra ssh args]
vagrant ssh-config [vm-name] [–host name]