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-httprequire--storage-uri.add clouduses the WorkOS session and resolves the database as described in Cloud resource resolution.add cloudwrites only stable IDs tohelix.toml, and sets[project] idandworkspace_idwhen they are missing.- Without
--database,add cloudonly offers databases that are not inhelix.tomlyet, and says so when every database is already added. Pass--databaseto add one again under another name. add cloudrefuses a database from a different project than the onehelix.tomlis linked to. Relink withhelix project linkfirst.- A
cluster:<id>target must be a dedicated cluster; shared clusters are not database targets.
Examples
Related
helix init— create a new project.helix delete— remove an instance fromhelix.toml.- CLI configuration — the
helix.tomlformat.