Skip to main content
cliRead the announcement

Command (line) and conquer

Create projects, write SQL, run analyses, and connect your agents… without leaving your terminal.

curl
brew

Copy script

duplicate
curl -fsSL https://hex.tech/install.sh | bash
Hex CLI
Nova Wang quote
Nova Wang
Head of Analytics Engineering, StubHub
“We're already seeing strong pull for Hex AI across StubHub. CLI is the next logical step — it lets our most technical users build Hex into the automated workflows where AI does its best work.
Nova Wang quote
“We're already seeing strong pull for Hex AI across StubHub. CLI is the next logical step — it lets our most technical users build Hex into the automated workflows where AI does its best work.
Nova Wang
Head of Analytics Engineering, StubHub

Analytics where your agent works

Build locally, share and collaborate in Hex.

Works in any terminal

Interact directly with Hex from your terminal. Get projects, create cells, and manage users from the command line.

Works in any terminal

Plays nicely with coding agents

Use Claude Code or Cursor to generate an analysis, and have it move it across to Hex. Teach your agent how to use the CLI with our agent skill hex install skill -- claude

Plays nicely with coding agents

Orchestrate and automate

The Hex CLI is a standard UNIX tool - trigger automations from GitHub Actions, or your own orchestration layer.

Orchestrate and automate

Everything you need to control Hex with code

plus

Create & manage projects

Spin up new Hex projects and add SQL or Python cells in seconds. Use hex projects create to start an analysis from your terminal — no browser needed.

publish

Bulk update at scale

When a warehouse schema changes, find every impacted project and update every SQL cell in one scripted pass. What used to take hours takes a single command.

auto-run

Run & validate

Execute apps programmatically with hex run. Integrate into CI pipelines to keep your analysis fleet healthy.

Built for real workflows

Task
Before
After

BI migrations

Bulk schema updates

Generate locally, ship to Hex

Write a script to fetch the SQL powering the most popular dashboards, copy. paste. Repeat 1000 times.

Rename a column in your dbt project → manually hunt down every broken dashboard → update one by one.

Generate a python notebook locally → export as a YAML → manually upload to Hex → lose context along the way.

In one script, fetch the SQL powering the most popular dashboards, push into new Hex projects and bootstrap your AI analytics migration.

List all projects, scan all SQL cells for the old column name, update in place, and rerun to validate. From a day-long project to a simple script.

Use any AI tool to write SQL and Python, push the finished analysis to Hex as a shareable, versioned project.

Built for data teams who want more than a dashboard

Hex is the AI analytics platform where your notebooks, agents, and self-serve all live together — and actually talk to each other.

Contact Sales