Prerequisites: Please first read
../te-shared/SKILL.mdto learn about authentication, global parameters, and output format.
Overview
te-cli meta The domain provides metadata query capabilities for the ThinkingEngine platform, covering the following core objects:
| Object | Command | Description |
|---|---|---|
| Event catalog | +list-events |
Get the complete event list of a project |
| Event attributes | +load-event-props |
Load filterable attributes of events |
| Metric attributes | +load-measure-props |
Load measurable attributes of events |
| Analytics entities | +list-entities |
Get the list of analytics entities |
| Predefined metrics | +list-metrics |
Get the list of predefined metrics |
| SQL tables | +list-tables |
Get the list of queryable SQL tables |
| Table fields | +get-table-columns |
Get the field definitions of a specified table |
All commands are read-only operations (risk: read) and can be executed directly without confirmation.
Core scenarios
1. Learn which events a project has
te-cli meta +list-events --project-id 1
2. Prepare an attribute list for analytics queries
First get the event list, then load the corresponding filterable / measurable attributes:
# 加载筛选属性
te-cli meta +load-event-props -p 1 --events '[{"eventName":"login"}]'
# 加载度量属性
te-cli meta +load-measure-props -p 1 --events '[{"eventName":"login"}]'
3. Query SQL table schemas
First list the available tables, then get the field definitions of the target table:
te-cli meta +list-tables -p 1
te-cli meta +get-table-columns -p 1 --table "v_event_1"
4. Use jq for field extraction
# 只输出事件名称
te-cli meta +list-events -p 1 --jq '.events[].eventName'
# 只输出指标名称和描述
te-cli meta +list-metrics -p 1 --jq '.metrics[] | {name, description}'
Reference documentation
For detailed command parameter descriptions, see the references/ directory: