Login

Command: vagrant login

The login command is used to authenticate with the HashiCorp's Vagrant Cloud server. Logging in is only necessary if you are accessing protected boxes or using Vagrant Share.

Logging in is not a requirement to use Vagrant. The vast majority of Vagrant does not require a login. Only certain features such as protected boxes or Vagrant Share require a login.

The reference of available command-line flags to this command is available below.

Options

Examples

Securely authenticate to Vagrant Cloud using a username and password:

$ vagrant login
# ...
Vagrant Cloud username:
Vagrant Cloud password:

Check if the current user is authenticated:

$ vagrant login --check
You are already logged in.

Securely authenticate with Vagrant Cloud using a token:

$ vagrant login --token ABCD1234
The token was successfully saved.

© 2010–2018 Mitchell Hashimoto
Licensed under the MPL 2.0 License.
https://www.vagrantup.com/docs/cli/login.html