summaryrefslogtreecommitdiff
path: root/devdocs/vagrant/cli%2Fshare.html
blob: 7055ffa98ca436f21690812ed876b8621d663bed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<h1 id="share">  Share </h1> <p><strong>Command: <code>vagrant share</code></strong></p> <p>The share command initializes a Vagrant Share session, allowing you to share your Vagrant environment with anyone in the world, enabling collaboration directly in your Vagrant environment in almost any network environment.</p> <p>You can learn about all the details of Vagrant Share in the <a href="../share/index">Vagrant Share section</a>.</p> <p>The reference of available command-line flags to this command is available below.</p> <h2 id="options">  Options </h2> <ul> <li>
<p><a href="#disable-http"><code>--disable-http</code></a> - Disables the creation of a publicly accessible HTTP endpoint to your Vagrant environment. With this set, the only way to access your share is with <code>vagrant connect</code>.</p> </li> <li>
<p><a href="#http-port"><code>--http PORT</code></a> - The port of the HTTP server running in the Vagrant environment. By default, Vagrant will attempt to find this for you. This has no effect if <code>--disable-http</code> is set.</p> </li> <li>
<p><a href="#https-port"><code>--https PORT</code></a> - The port of an HTTPS server running in the Vagrant environment. By default, Vagrant will attempt to find this for you. This has no effect if <code>--disable-http</code> is set.</p> </li> <li>
<p><a href="#ssh"><code>--ssh</code></a> - Enables SSH sharing (more information below). By default, this is not enabled.</p> </li> <li>
<p><a href="#ssh-no-password"><code>--ssh-no-password</code></a> - Disables the encryption of the SSH keypair created when SSH sharing is enabled.</p> </li> <li>
<p><a href="#ssh-port-port"><code>--ssh-port PORT</code></a> - The port of the SSH server running in the Vagrant environment. By default, Vagrant will attempt to find this for you.</p> </li> <li>
<p><a href="#ssh-once"><code>--ssh-once</code></a> - Allows SSH access only once. After the first attempt to connect via SSH to the Vagrant environment, the generated keypair is destroyed.</p> </li> </ul><div class="_attribution">
  <p class="_attribution-p">
    &copy; 2010&ndash;2018 Mitchell Hashimoto<br>Licensed under the MPL 2.0 License.<br>
    <a href="https://www.vagrantup.com/docs/cli/share.html" class="_attribution-link">https://www.vagrantup.com/docs/cli/share.html</a>
  </p>
</div>