Tutorial
This is the canonical local HelixDB quickstart. You will create a project, start
the generated dev instance, run the generated JSON request, and stop the
instance.
Prerequisites
- Docker, or Podman configured as described below
- A terminal on macOS or Linux, or PowerShell on Windows
1
Install the CLI
2
Create a local project
Create and enter an empty directory, then initialize it:
helix init local creates:helix.tomlwith one local instance nameddevon port6969..helix/for CLI-managed instance state..gitignoreentries for.helix/,.env,target/, and*.log.AGENTS.mdwith the current CLI workflow for coding agents.examples/request.jsonwith a runnable read request.
container_runtime = "podman" under [project] in
helix.toml before you start the generated instance. New projects otherwise
default to Docker.3
Start the generated instance
http://localhost:6969,
and waits for the database health check before it returns.4
Run the generated query
User label. A new database
returns a node_count of zero. Edit the JSON file and run the same command
again to iterate.5
Stop the instance
helix stop is idempotent, so it also exits successfully when the instance is
already stopped.Use an SDK
The SDKs build the same JSON operation tree thathelix query sends to
POST /v2/query. Initialize a normal language project and install one released
SDK:
Rust SDK
Build and execute typed Rust queries.
TypeScript SDK
Build and execute TypeScript queries.
Go SDK
Build and execute Go queries.
Python SDK
Build and execute synchronous or asynchronous Python queries.
Next steps
Query walkthrough
Learn how SDK builders become the JSON request sent to HelixDB.
Data model
Learn how nodes, edges, labels, and properties fit together.
Writing data
Add, update, and remove graph data.
CLI reference
See every current CLI command and option.