Initial Setup
Create project
helix init with no arguments defaults to making a local instance called dev.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 CLI v2 is now live! See Getting Started for details.
Practical examples and patterns for typical local development workflows
Create project
mkdir my-app && cd my-app
helix init
helix init with no arguments defaults to making a local instance called dev.Define schema
db/schema.hx:N::User {
name: String,
INDEX email: String,
created_at: Date DEFAULT NOW
}
N::Post {
title: String,
content: String,
published: Boolean DEFAULT true,
created_at: Date DEFAULT NOW
}
Create queries
db/queries.hx:QUERY createUser(name: String, email: String) =>
user <- AddN<User({
name: name,
email: email,
})
RETURN user
QUERY getUserByEmail(email: String) =>
user <- N<User>({email: email})
RETURN user
# Edit your .hx files
vim db/queries.hx
# Validate changes
helix check
# Deploy changes (rebuilds automatically if needed)
helix push dev
# Check status
helix status
# View logs
docker logs helix_my-app_dev
# Stop when done
helix stop dev
# Add a testing instance
helix add local --name testing
# Configure different port in helix.toml
# [local.testing]
# port = 7070
# Run both instances
helix push dev
helix push testing
# Status shows all instances
helix status
Was this page helpful?