Skip to main content
You can have many environments, for example base, staging and prod. Each one is a full environment with its own repositories, secrets and credentials. Exactly one of them is the default. A sandbox uses the default when you do not name an environment.

Manage environments

  • A delete is a soft delete. Sandboxes pinned to its versions keep running. New sandboxes cannot use it.
  • upgradeEnvironment accepts an optional list of sandbox ids. Use it to upgrade only those sandboxes. Without the list, Boat moves every sandbox of yours that is on an older version. Read Versions and upgrades.

Pick the environment for a sandbox

Pass the environment name when you create, resume or fork a sandbox. Without a name, Boat uses your default.
  • Boat rejects an unknown name before it creates or changes anything. A typo costs you nothing.
  • Boat never creates an environment by itself.
--environment and --env are different flags.
  • --environment staging picks the environment that the sandbox uses.
  • --env KEY=value sets one variable on that one sandbox. It adds to what the environment gives.

Organization environments

An organization has its own shared environments. Add ?org=<org id or name> to any environment route, or --org <org> to any boat env command. Only this query parameter selects them: the X-Boat-Org header and the active wallet do not, so a call without org always works on your own environments. A sandbox billed to the organization can name an organization environment. When you have an environment of the same name, yours wins. Name an organization credential profile on an organization environment to give the team’s sandboxes the team’s AI credentials.