» Share
Command: vagrant share
The share command initializes a Vagrant Share session, allowing you toshare your Vagrant environment with anyone in the world, enabling collaborationdirectly in your Vagrant environment in almost any network environment.
You can learn about all the details of Vagrant Share in theVagrant Share section.
The reference of available command-line flags to this commandis available below.
» Options
—disable-http
- Disables the creation of a publicly accessibleHTTP endpoint to your Vagrant environment. With this set, the only wayto access your share is withvagrant connect
.—http PORT
- The port of the HTTP server running in the Vagrantenvironment. By default, Vagrant will attempt to find this for you.This has no effect if—disable-http
is set.—https PORT
- The port of an HTTPS server running in the Vagrantenvironment. By default, Vagrant will attempt to find this for you.This has no effect if—disable-http
is set.—ssh
- Enables SSH sharing (more information below). By default, thisis not enabled.—ssh-no-password
- Disables the encryption of the SSH keypair createdwhen SSH sharing is enabled.—ssh-port PORT
- The port of the SSH server running in the Vagrantenvironment. By default, Vagrant will attempt to find this for you.—ssh-once
- Allows SSH access only once. After the first attempt toconnect via SSH to the Vagrant environment, the generated keypair isdestroyed.