Skip to main content
Reference
Add another instance to the project’s existing helix.toml without changing the instances already in it. Works for local instances and Helix Cloud database links.

Usage

Subcommands

Run helix add with no subcommand in a terminal to choose interactively.

Options

helix add local

helix add cloud

Behavior

  • Fails if an instance with the same name already exists in helix.toml.
  • Without a subcommand, the CLI prompts for the instance type in a terminal and fails in non-interactive shells.
  • --s3-region, --s3-endpoint-url, and --s3-allow-http require --storage-uri.
  • add cloud uses the WorkOS session and resolves the database as described in Cloud resource resolution.
  • add cloud writes only stable IDs to helix.toml, and sets [project] id and workspace_id when they are missing.
  • Without --database, add cloud only offers databases that are not in helix.toml yet, and says so when every database is already added. Pass --database to add one again under another name.
  • add cloud refuses a database from a different project than the one helix.toml is linked to. Relink with helix project link first.
  • A cluster:<id> target must be a dedicated cluster; shared clusters are not database targets.

Examples