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

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 Hex projects in seconds. Use hex project, hex app, and hex cell to build analyses from your terminal — and make changes across many projects in one scripted pass.

auto-run

Run & validate

Execute projects and apps programmatically with hex run. Integrate it into CI pipelines to catch errors and keep analyses in sync with changes to your business.

asterisk

Put the agent to work

Kick off the Hex Agent from where your team already works. Use hex thread to ask a question, run the analysis in Hex, and bring the answer back into your existing workflow.

semantic-models

Keep context up to date

Keep your context in line with how the business evolves. Use hex guide to manage business logic and hex context to preview and publish changes to guides and semantic models.

Built for real workflows

Task
Prompt
Result

BI migrations

Bulk schema updates

Generate locally, ship to Hex

Pull all the .sql files from /legacy-bi/hyperdrive-analysis and create a new project in Hex called "Galactic Hyperdrive Performance". When done importing them, run all cells.

I just pushed a new PR, search across all my Hex projects for anything that uses the "hyperdrive_performance" table and the "hyperdrive_model" column. We need to update the column name to "hyperdrive_model_sku". When you're done, run all cells.

Find "hyperdrive_maintenance_churn_v2.ipynb" and use the Hex CLI to import it into my workspace, then open it in my browser.

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