1. 程式人生 > >virtualbox+vagrant學習-2(command cli)-7-vagrant login命令

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 列印幫助資訊