Skip to main content

Shares

Shares expose ports from a running VM to the internet. If you used instavm deploy, the CLI already created a share for you. Use the commands below when you want to manage one manually.

Create a share​

instavm share create vm_abc123 3000 --public

Public vs private shares​

  • Public shares are accessible by anyone with the URL.
  • Private shares require an access token or a later visibility change.
# Private share (default, no --public flag)
instavm share create vm_abc123 3000

Update or revoke a share​

instavm share set-public share_def456
instavm share set-private share_def456
instavm share revoke share_def456

Use case: preview a web app​

The easiest preview path is Deploy a Web App with instavm deploy. If you are working directly with the SDK, you can create the share yourself:

# The fastest path — deploys, creates VM, and shares in one step
instavm deploy --port 8080

Next steps​