BettikDocsSign in

Reference · the tools · environments

share_environment

Safe to repeat

Make an environment public, or private again

What it does

Set who may open an environment's address. `public` means anyone with the URL: no Bettik account, no sign-in -- the box's gate lets it straight through. For handing a build to a friend, a client or a playtester. `private` is the default and undoes it: the owner, signed in. It is about the app's address only; the box and this MCP are never public, and the box's firewall does not change. A clone of a public environment starts private. Takes effect within a minute. Ask before making something public: the URL then opens for anyone who has it, crawlers included. (formerly share_bundle)

What it needs to know

environment_id
The environment.
visibility
public: anyone with the URL. private: the owner, signed in. One of public, private.
box · optional
Which box: its name and account, "home.frank" or "jordan.northwind", or just "home" when only one of your boxes is called that. Omit it for your current box (switch_box changes it; list_boxes says which it is).
session_box · optional
The box this session runs on, if it runs on one of yours: its name, as the on-box instructions give it ("frankh90.hemlane"). With it, a call that names no box is checked against your current box.

Where it lands

On one of your boxes: the one named in box, or your default box when none is named.