Skip to main content
Version: 0.0.42

Lakehousecat CLI

The lhc command-line interface is one of three ways to interact with Lakehousecat — alongside the UI and the REST API. It gives you full terminal control over your instance: datasource management, model configuration, user provisioning, analytics, and more. Every operation available through the REST API is accessible via lhc.

Scope of this documentation

This reference documents the supported public CLI surface. Commands and flags not listed here are internal to the CLI tool and subject to change without notice.

Installation​

Download the latest lhc binary for your platform from cli.lakehousecat.com:

# macOS / Linux — one-liner (detects platform automatically)
curl -fsSL https://cli.lakehousecat.com/latest/manifest.json \
| python3 -c "import json,sys; v=json.load(sys.stdin)['version']; print(v)" \
| xargs -I{} sh -c '
OS=$(uname -s | tr A-Z a-z)
ARCH=$(uname -m | sed "s/x86_64/amd64/;s/aarch64/arm64/")
curl -fsSL "https://cli.lakehousecat.com/{}/{}-${ARCH}/lhc" -o /usr/local/bin/lhc
chmod +x /usr/local/bin/lhc
'

Or download a specific version directly:

PlatformURL
macOS (Apple Silicon)https://cli.lakehousecat.com/<version>/darwin-arm64/lhc
macOS (Intel)https://cli.lakehousecat.com/<version>/darwin-amd64/lhc
Linux (x86_64)https://cli.lakehousecat.com/<version>/linux-amd64/lhc
Linux (ARM64)https://cli.lakehousecat.com/<version>/linux-arm64/lhc
Windows (x86_64)https://cli.lakehousecat.com/<version>/windows-amd64/lhc.exe
Windows (ARM64)https://cli.lakehousecat.com/<version>/windows-arm64/lhc.exe

The latest version and release date are always available at:

https://cli.lakehousecat.com/latest/manifest.json

After downloading, verify the binary with the published checksums:

curl -fsSL "https://cli.lakehousecat.com/<version>/checksums.txt" | shasum -a 256 --check

Authentication​

All commands require a configured profile with an API key. Generate your API key in the Lakehousecat UI:

Account Settings → Security → API Keys → Generate API Key

Store it in a profile:

lhc configure
# Endpoint (e.g. https://my.lakehousecat.com): https://acme.lakehousecat.com
# API Key: lhc-...

This writes the key to ~/.lhc/credentials and the endpoint to ~/.lhc/config. See Authentication & Setup for the full setup guide.

Global Flags​

All lhc commands accept these flags:

FlagDescription
--profile <name>Use a specific named profile (default: default)
--select <fields>Comma-separated fields to include in table output (e.g., id,name,status)
--insecureSkip TLS certificate verification (for self-signed certs)
--output table|json|yamlOutput format (default: table)
--jsonShorthand for --output json

The environment variable LHC_PROFILE overrides --profile.

In table output, *_at timestamp fields (created_at, updated_at, expires_at, etc.) are automatically rendered as YYYY-MM-DD HH:MM (UTC) instead of raw Unix epoch values.

Command Groups​

GroupServiceDescription
instanceLHC CoreInstance version and license state
usersLHC CoreInvite and manage users
groupsLHC CoreManage groups and membership
modelsLHC CoreManage custom models, export and import
sessionsLHC Core / LLMManage chat sessions
jobsLHC CoreManage job definitions and runs
promptsLHC CoreCreate and manage reusable prompt templates
datasourcesSemanticManage semantic datasources, export and import
semanticSemanticSemantic extraction, hierarchies, and descriptions
analyticsAnalyticsGenerate charts, run pipeline steps, validate SQL
chartsAnalyticsManage and share charts
dashboardsAnalyticsManage, share, and approve dashboards
configure—Manage CLI profiles

Use Cases​

The following guides walk through end-to-end scenarios using the CLI:

Use CaseCommands involved
Authentication & Setupconfigure, instance info
Manage Datasourcesdatasources *
Manage Modelsmodels *
Manage Users & Groupsusers *, groups *
Manage Sessionssessions *
Manage Analyticscharts *, dashboards *
Manage Jobsjobs *

Scope Limitations​

The following capabilities are not available through the CLI:

  • Audio transcription — use the Audio API directly
  • Chat / LLM interaction — the CLI manages configuration, not interactive sessions