virtualbox+vagrant学习-2(command cli)-7-vagrant login命令

Login

⚠️该命令已经弃用了,别名为vagrant cloud auth login。看本博客的

格式:

vagrant cloud auth login [options]

登录命令用于使用HashiCorp的vagrant云服务器进行身份验证。只有在访问受保护的box或使用vagrant share时才需要登录。

使用Vagrant不需要登录。绝大多数vagrant使用者不需要登录。只有某些功能,如受保护的boxes或vagrant share,需要登录。

userdeMacBook-Pro:~ user$ vagrant login -h
WARNING: This command has been deprecated and aliased to `vagrant cloud auth login`
该命令已经弃用了,重新命名为vagrant cloud auth login
Usage: vagrant cloud auth login [options]

Options:

    -c, --check                      Checks if currently logged in 检查当前的登录情况
    -d, --description DESCRIPTION    Set description for the Vagrant Cloud token 为vagrant云令牌设置描述信息
    -k, --logout                     Logout from Vagrant Cloud  退出vagrant云
    -t, --token TOKEN                Set the Vagrant Cloud token 设置vagrant云令牌
    -u, --username USERNAME_OR_EMAIL Vagrant Cloud username or email address vagrant云的用户名或邮箱地址
    -h, --help                       Print this help 打印帮助信息
原文地址:https://www.cnblogs.com/wanghui-garcia/p/10169986.html