virtualbox+vagrant学习-2(command cli)-21-vagrant up命令

Up

格式:

vagrant up [options] [name|id]

这个命令根据你的Vagrantfile文件创建和配置客户机。

这是“vagrant”中最重要的一个命令,因为它是创建任何vagrant机器的方式。任何使用vagrant的人都必须每天使用这个命令。

userdeMacBook-Pro:~ user$ vagrant up -h
Usage: vagrant up [options] [name|id]

Options:

        --[no-]provision             Enable or disable provisioning 启用或不使用预配置程序
        --provision-with x,y,z       Enable only certain provisioners, by type or by name.
                                     通过类型或名字来只启用某些预配置程序
        --[no-]destroy-on-error      Destroy machine if any fatal error happens (default to true) 
                                     如果发生任意重大错误,将摧毁机器(默认为true)
        --[no-]parallel              Enable or disable parallelism if provider supports it 
                                     如果provider支持并行性,则启用或禁用并行性
        --provider PROVIDER          Back the machine with a specific provider 
                                     用特定的provider支持机器
        --[no-]install-provider      If possible, install the provider if it isn't installed
                                     如果可能,当provider没有安装时,请安装它
    -h, --help                       Print this help 打印帮助信息
原文地址:https://www.cnblogs.com/wanghui-garcia/p/10170615.html