Reference
Send one Cypher statement to a local instance and print the JSON response, or plan it
without running it. Local only.
Usage
-e and --file is required. See the Cypher guide
for the supported language profile.
Arguments
Options
Input (pick one)
Statement
Connection
Output
Behavior
Target resolution
- With no
INSTANCE, the CLI uses thedevinstance, then the only instance, then a picker in a terminal. - The instance must be local. A Cloud instance fails with
Cypher CLI requests currently require a local instance; send Cypher to Helix Cloud through an SDK orPOST /v2/cypher.
Requests
- The statement posts to the local, auth-disabled
/v2/cypher, or/v2/cypher/explainwith--explain. --parametersmust be a JSON object; any other JSON value fails before the request is sent.- A
404means the server predates Cypher, and the error asks you to upgrade it. Cypher needs theghcr.io/helixdb/helixdb:v0.0.13image or later.
Output
- A successful response goes to stdout as syntax-highlighted, pretty-printed JSON with
columnsandrows, or the plan under--explain.--jsonprints compact JSON instead. - A non-2xx response fails with the HTTP status and the error body, including the Cypher error
error,msg, anddetails.
Examples
Related
- Cypher guide: supported clauses, functions, and limits.
helix query: send a native v3 JSON or TypeScript DSL query.helix start: start the local instance you query.