» Vagrant Share

Vagrant Share allows you to share your Vagrant environment with anyone inthe world, enabling collaboration directly in your Vagrant environmentin almost any network environment with just a single command:vagrant share.

Vagrant share has three primary modes or features. These features are notmutually exclusive, meaning that any combination of them can be activeat any given time:

  • HTTP sharing will create a URL that you can give to anyone. ThisURL will route directly into your Vagrant environment. The person usingthis URL does not need Vagrant installed, so it can be shared with anyone.This is useful for testing webhooks or showing your work to clients,teammates, managers, etc.

  • SSH sharing will allow instant SSH access to your Vagrant environmentby anyone by running vagrant connect —ssh on the remote side. Thisis useful for pair programming, debugging ops problems, etc.

  • General sharing allows anyone to access any exposed port of yourVagrant environment by running vagrant connect on the remote side.This is useful if the remote side wants to access your Vagrantenvironment as if it were a computer on the LAN.

The details of each are covered in their specific section in the sidebarto the left. We also have a section where we go into detail about thesecurity implications of this feature.

» Installation

Vagrant Share is a Vagrant plugin that must be installed. It is notincluded with Vagrant system packages. To install the Vagrant Shareplugin, run the following command:

  1. $ vagrant plugin install vagrant-share

Vagrant Share requires ngrok to be used.