常用命令
vagrant box manages boxes: installation, removal, etc.
vagrant connect connect to a remotely shared Vagrant environment
vagrant destroy stops and deletes all traces of the vagrant machine
vagrant global-status outputs status Vagrant environments for this user
vagrant halt stops the vagrant machine
vagrant help shows the help for a subcommand
vagrant hostmanager plugin: vagrant-hostmanager: manages the /etc/hosts file within a multi-machine environment
vagrant init initializes a new Vagrant environment by creating a Vagrantfile
vagrant login log in to HashiCorp's Vagrant Cloud
vagrant package packages a running vagrant environment into a box
vagrant plugin manages plugins: install, uninstall, update, etc.
vagrant port displays information about guest port mappings
vagrant powershell connects to machine via powershell remoting
vagrant provision provisions the vagrant machine
vagrant push deploys code in this environment to a configured destination
vagrant rdp connects to machine via RDP
vagrant reload restarts vagrant machine, loads new Vagrantfile configuration
vagrant resume resume a suspended vagrant machine
vagrant share share your Vagrant environment with anyone in the world
vagrant snapshot manages snapshots: saving, restoring, etc.
vagrant ssh connects to machine via SSH
vagrant ssh-config outputs OpenSSH valid configuration to connect to the machine
vagrant status outputs status of the vagrant machine
vagrant suspend suspends the machine
vagrant up starts and provisions the vagrant environment
vagrant validate validates the Vagrantfile
vagrant version prints current and latest Vagrant version
参考:https://www.vagrantup.com/docs/cli/