Command (line) and conquer
Create projects, write SQL, run analyses, and connect your agents… without leaving your terminal.
“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.”
“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.”
Works in any terminal
Interact directly with Hex from your terminal. Get projects, create cells, and manage users from the command line.

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

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

Everything you need to control Hex with code
Create & manage projects
Spin up new Hex projects and add SQL or Python cells in seconds. Use to start an analysis from your terminal — no browser needed.
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.
Run & validate
Execute apps programmatically with . Integrate into CI pipelines to keep your analysis fleet healthy.
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.