cz-cli 是面向 ClickZetta Lakehouse 的 AI Agent CLI,让 Codex、Claude Code、Cursor、Gemini CLI 等 AI 工具通过自然语言安全地查询、开发和运维数仓。
cz-cli is an AI Agent CLI for ClickZetta Lakehouse — enabling tools like Codex, Claude Code, Cursor, and Gemini CLI to query, build, and operate your warehouse through natural language.
告别把表结构、SQL 错误、任务日志复制粘贴给 AI 的流程,让 Agent 直接基于真实 workspace、schema、任务和运行日志回答问题。
Stop copying schema, SQL errors, and task logs into AI tools. Let agents work directly with real workspace context, metadata, task runs, and job profiles.
不再需要手动把表结构、SQL、错误日志、任务信息复制给 AI,cz-cli 帮 Agent 直接拿到所有上下文。
No more manually pasting schemas, SQL errors, or task logs. cz-cli gives agents direct access to all warehouse context.
减少在 Studio、命令行、文档、AI IDE 之间来回切换,在 AI 工具内完成完整的数仓工作流。
Reduce switching between Studio, CLI, docs, and AI IDE. Complete full warehouse workflows without leaving your AI tool.
AI Agent 基于真实的 workspace、schema、表、任务、运行日志和 job 信息回答问题,而不是猜测。
Agents answer based on real workspace, schema, task runs, and job profiles — not guesses.
将 AI Agent 的操作收敛到可控的 CLI 入口,便于权限管理、审计和自动化,不绕过 ClickZetta 权限体系。
Converge agent operations through a controlled CLI entry point — manageable permissions, auditable actions, no permission bypass.
cz-cli 是标准 CLI 工具,任何支持 shell command 调用的 AI Agent 都可以直接使用。
cz-cli is a standard CLI. Any AI agent that can run shell commands can use it directly.
支持:用户名/密码、PAT、CLI Credential、JDBC 连接串
Supports: username/password, PAT, CLI Credential, JDBC connection string
为不同环境配置独立 profile,生产、测试、开发完全隔离。
Configure isolated profiles for production, staging, and development environments.
prod
生产 · 只读
production · read-only
uat
验收测试
acceptance test
dev
开发
development
执行 SELECT、DDL、DML,支持同步和异步 Job,查看结果和执行计划。
Execute SELECT, DDL, DML. Supports sync and async jobs. View results and execution plans.
cz-cli -p prod sql "..." --sync
列出 schema、查看表结构、预览数据、统计行数、查看分区和索引。
List schemas, describe tables, preview data, count rows, view partitions and indexes.
cz-cli -p prod table describe <table>
创建 SQL 任务、保存内容、配置调度、发布、手动执行。
Create SQL tasks, save content, configure schedules, deploy, and run ad-hoc.
cz-cli -p prod task deploy <task>
查看任务运行记录、运行详情、日志、依赖和失败原因。
View task run history, run details, logs, dependencies, and failure reasons.
cz-cli -p prod runs list --limit 10
查看 SQL Job 状态、结果和执行 profile,辅助性能分析和故障定位。
Inspect SQL job status, results, and execution profiles to identify bottlenecks.
cz-cli -p prod job status <job_id>
创建、切换、验证不同环境的 profile,浏览外部数据源和 catalog。
Create, switch, and verify environment profiles. Browse external data sources and catalogs.
cz-cli profile list
以下 prompt 可直接粘贴给任意 AI Agent。
These prompts can be pasted directly into any AI agent.
查询和巡检可直接执行
Reads and inspections are safe to run
SELECT、DESC、SHOW、runs list、job status、schema list 等只读操作无需额外确认。
SELECT, DESC, SHOW, runs list, job status, schema list and other read-only operations can run directly without confirmation.
权限可控、操作可审计、结果结构化、自动化可治理。
Governed access, auditable execution, structured outputs, and controlled automation.
多 profile 管理,支持生产、测试、UAT、开发环境完全隔离,互不影响。
Multi-profile management with isolated prod, staging, UAT, and dev environments — fully separated.
使用 ClickZetta 原生账号权限体系,支持账号级权限控制,不需要额外授权层。
Uses ClickZetta's native permission system. Account-level access control, no extra authorization layer required.
支持 JSON、CSV、table 输出格式,适合自动化脚本和企业机器人集成。
JSON, CSV, and table output formats — suitable for automation scripts and enterprise bot integration.
所有实际操作仍落在 ClickZetta 账号、任务和 Job 体系中,便于审计和合规管理。
All operations are executed under ClickZetta accounts, tasks, and jobs — traceable and compliant by design.
安装 cz-cli,配置你的第一个 profile,让 AI Agent 真正操作数仓。
Install cz-cli, configure your first profile, and give AI agents real warehouse access.