Skip to main content
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.

Backup & Maintenance

helix backup

Create a backup of an instance’s database files.
What it does:
  1. Creates an atomic snapshot of the LMDB database
  2. Copies data.mdb and lock.mdb to the backup directory
  3. Warns if backup size exceeds 10GB and prompts for confirmation
helix backup [INSTANCE] [OPTIONS]
The instance to backup.
Examples:
# Backup the 'dev' instance to default location
helix backup dev

# Backup to a specific directory
helix backup dev --output /path/to/backup

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.

Logs

helix logs

View logs for a running instance. Opens an interactive terminal UI by default, or use flags for non-interactive modes.
Requirements:
  • For local instances: Docker or Podman must be running
  • For cloud instances: Must be authenticated via helix auth login
helix logs [INSTANCE] [OPTIONS]
The instance to view logs for. If omitted, an interactive selection prompt will appear.
Time Range Limits:
  • Maximum range duration is 1 hour
  • Start time must be before end time

Interactive TUI Mode

When run without flags, helix logs opens an interactive terminal UI with vim-style navigation: Navigation:
KeyAction
Down ArrowScroll down one line
Up ArrowScroll up one line
jScroll down one page
kScroll up one page
ztJump to top of logs
zbJump to bottom of logs
Mode Switching:
KeyAction
lSwitch to live streaming mode
rSwitch to range mode (select time presets or custom range)
EscQuit
Range Mode Presets:
  • Last 15 minutes
  • Last 30 minutes
  • Last hour
  • Custom range (date/time picker)
Examples:
# Open interactive log viewer (will prompt for instance selection)
helix logs

# Open interactive log viewer for a specific instance
helix logs my-instance

# Stream live logs non-interactively
helix logs my-instance --live

# Query logs from a specific time range
helix logs my-instance --range --start 2024-01-15T10:00:00Z --end 2024-01-15T11:00:00Z

# Query last 15 minutes (end defaults to now)
helix logs my-instance --range --start 2024-01-15T10:45:00Z

Dashboard

helix dashboard

Launch the Helix Dashboard in a container to visualize and interact with your database.
Requirements:
  • Docker or Podman must be installed and running
  • build_mode must be set to dev in your helix.toml configuration
helix dashboard [SUBCOMMAND]
The subcommand to run.
Examples:
# Start dashboard for default instance
helix dashboard start

# Start dashboard on a specific port
helix dashboard start --port 8080

# Start dashboard for a specific instance
helix dashboard start my-instance

# Connect to a specific host directly
helix dashboard start --host localhost --helix-port 6969

# Check dashboard status
helix dashboard status

# Stop the dashboard
helix dashboard stop
For issues or questions:

Next Steps