Skip to content

CLI Command Reference

These pages are organized by top-level command families and add minimal runnable examples, representative output snippets, and common next steps for the high-frequency command families. Their job is to help you quickly:

  • find the minimal runnable command
  • see what representative output looks like
  • know which command usually comes next

If you already know that your task is about apps, dashboards, datasets, pipelines, or permissions, this reference is usually more direct than jumping through workflow pages repeatedly.

How to use this reference

Recommended order:

  1. Find the relevant command family on this page
  2. Open the corresponding subpage and run the minimal runnable example
  3. Use the representative output to judge whether the result looks correct
  4. Follow the common next steps to continue
  5. Use the CLI --help output whenever you need exact flags

Global options

These options appear across most commands:

OptionPurposeTypical use
-o, --outputSelect output formattable for direct reading, json / yaml for agents, scripts, and CI
-c, --configSelect a config file pathSwitch between local config files explicitly
--api-urlOverride the target instance API URLTemporarily override HBI_HOST / the saved local default host; accepts a bare host or a host with subpath, and probes https:// first then http:// when the scheme is omitted; HBI_API_URL is compatibility-only
--tokenOverride the current access tokenUse a temporary token instead of saved credentials; no durable refresh guarantee
--dry-runPreview a write without executing itUseful before grants, config changes, and deletes
--yesAuto-confirm side effectsNon-interactive runs and batch jobs
--langSelect CLI languageCurrently zh-CN and en-US

HQL Expressions

Commands such as data-model, metric, measure, and element chart accept HQL (Hengshi Query Language) expressions — including aggregation functions (SUM, AVG, COUNT), time functions (YEAR, MONTH, MOY, DOM), and conditional logic (IF, CASE WHEN). See the full HQL Function Reference.

Command family map

Command familyMain scopeContinue reading
auth search config preferences scheduler logsauthentication, search, local CLI config, system preferences, schedules, and logsCore & Runtime Commands
app folder dashboard elementapps, folders, dashboards, and page elementsApp & Dashboard Commands
connection dataset data-model metric measure pipeline notebook data-alert data-agentdata onboarding, modeling, metrics, execution, and AI-related capabilitiesData & Execution Commands
user user-group org user-attr tenant subject kanban permission authorizeusers, orgs, tenants, permissions, subject domains, and kanban resourcesUsers, Tenants & Permission Commands

How to keep drilling down

This reference mainly helps you decide which command tree to enter first, not reproduce every --help page. A simple way to think about drill-down is:

If you need to...Start with this command tree
manage app parameters, shared dimensions, rules, subscriptions, or portal settingsapp -> app param / app dimension / app rule / app subscribe / app portal
work on dashboard plans or themesdashboard -> dashboard plan / dashboard theme
create or update charts and page elementselement -> element chart / element filter / element container / element text
edit pipeline nodespipeline -> pipeline edit

Once you have located the right command tree, use that level's --help in the terminal for exact flags and examples.

Chinese aliases

The CLI still supports Chinese aliases for first-level commands, for example:

bash
hbi 应用 list
hbi 数据集 preview
hbi 仪表盘 show

If your team mixes human operators and agents, it is still better to standardize on the English command tree for consistency with scripts, skills, and help output.

User Manual for Hengshi Analysis Platform