Documentation Index
Fetch the complete documentation index at: https://docs.helix-db.com/llms.txt
Use this file to discover all available pages before exploring further.
For the complete documentation index optimized for AI agents, see llms.txt.The Helix CLI’s V2 Cloud surface covers authentication, workspace/project/cluster selection, instance metadata sync, log retrieval, and dynamic queries against a remote gateway. Cluster provisioning, scaling, and stored-procedure deployment happen in the Helix control plane — not in the CLI.
Prerequisites
- A Helix Cloud account with at least one workspace and V2 Cloud cluster.
- A local Helix project (
helix initin any directory).
End-to-end flow
Authenticate
~/.helix/credentials.To use the CLI from CI or another non-browser environment, rotate a cluster API key and export it as HELIX_API_KEY:Pick a workspace
~/.helix/config and applies to all subsequent V2 Cloud commands.Discover clusters and add an instance
helix init enterprise --cluster-id <cluster-id>.Sync gateway and auth metadata
helix sync writes the latest gateway_url, query_auth_header, query_auth_env, and node-type values from the cloud into [enterprise.production] in helix.toml. Re-run after any cluster change.If the cluster has not published a gateway_url yet, the CLI prints a warning. Set gateway_url manually under [enterprise.production] once you know it, or re-run helix sync later.Send dynamic queries
helix query posts to <gateway_url>/v1/query with the header named by query_auth_header (default Authorization).Reference: per-instance auth contract
Each[enterprise.<instance>] block stores the auth contract used by helix query:
| Field | Default | Purpose |
|---|---|---|
query_auth_header | Authorization | HTTP header name set on every query request. |
query_auth_env | HELIX_API_KEY | Environment variable the CLI reads to populate the header value. |
query_auth_env under [enterprise.<instance>] and exporting whatever name you choose.
Common errors
| Error | Resolution |
|---|---|
Authentication required. Run 'helix auth login' first. | Run helix auth login (or set up an API key via helix auth create-key). |
Enterprise gateway URL is not configured for '<instance>'. | Run helix sync <instance>, or set gateway_url manually under [enterprise.<instance>]. |
Environment variable HELIX_API_KEY is required for Enterprise query auth | Export the variable named by query_auth_env. |
live Enterprise logs are not supported yet | Use helix logs <instance> --range --start … --end … instead of --follow. |
What next?
Local workflow
Run the local dev runtime and iterate on JSON requests
CLI Command Reference
Every command, subcommand, and flag