This page provides a comprehensive reference for all commands available in Helix CLI v2.

Global Options

These options are available for all commands:
helix --help, -h      Show help information for the command
helix --version, -V   Display the CLI version

Project Management


helix init

Initialize a new Helix project with configuration and structure.
helix init [OPTIONS] [SUBCOMMAND]
Note that helix init with no arguments defaults to making a local instance called dev.

helix add

Add a new instance to an existing Helix project.
helix add [SUBCOMMAND]

helix migrate

Migrate a v1 Helix project to v2 format.
helix migrate [OPTIONS]

Validation & Compilation

helix check

Validate project configuration and query syntax.
helix check [INSTANCE]
Name of the instance to check (defaults to all instances)

helix compile

Compile project queries into executable format.
helix compile [OPTIONS]

helix build

Build and prepare an instance for deployment.
What it does:
  1. Validates configuration and queries
  2. Compiles queries
  3. Generates Docker configuration files
  4. Prepares the instance workspace
helix build [INSTANCE]
The instance to build.

Deployment & Instance Management

helix push

Deploy or update a running instance.
What it does:
  1. Builds the instance if needed
  2. Creates/updates Docker container for local instances
  3. Pushes to cloud provider for remote instances
  4. Starts the instance
helix push [INSTANCE]
The instance to deploy.

helix pull

🚧 COMING SOON 🚧

helix start

Start a stopped instance without rebuilding.
helix start [INSTANCE]
The instance to start.

helix stop

Stop a running instance.
helix stop [INSTANCE]
The instance to stop.

helix status

Show the status of all instances in the project.

Cleanup & Maintenance

helix prune

Remove unused containers, images, and workspace files.
What it removes:
  • Stopped containers
  • Unused Docker images
  • Workspace files
  • Note: Preserves data volumes
helix prune [OPTIONS] [INSTANCE]
The instance to prune.

helix delete

Permanently delete an instance and all its data.
What it removes:
  • Container and images
  • All data volumes
  • Workspace files
  • Configuration entries
helix delete [INSTANCE]
The instance to delete.

Authentication & Cloud

helix auth

Manage authentication for Helix Cloud.
helix auth [SUBCOMMAND]
The subcommand to run.

Configuration & Settings


helix metrics

Configure telemetry and usage metrics collection.
helix metrics [SUBCOMMAND]
The subcommand to run.

helix update

Update the Helix CLI to the latest version.
helix update [OPTIONS]
The options to run.

Common Command Patterns

Development Workflow

# Initialize project
helix init

# Write schemas and queries
# ... edit db/schema.hx and db/queries.hx ...

# Validate changes
helix check

# Build and deploy
helix build dev
helix push dev

# Check status
helix status

Multi-Instance Setup

# Create project with local dev
helix init

# Add staging environment
helix add cloud --name staging --region us-east-1

# Add production environment
helix add cloud --name production --region us-east-1

# Deploy to different environments
helix push dev          # Local development
helix push staging      # Staging environment
helix push production   # Production environment

Maintenance Operations

# Stop all work
helix stop dev

# Clean up resources
helix prune

# Remove old instance
helix delete old-testing

# Update CLI
helix update

Getting Help

For any command, add --help to see detailed usage:
helix --help
helix init --help
helix auth login --help
For issues or questions: