Prerequisites: Read [
../te-shared/SKILL.md] to learn about authentication, project selection, and general conventions.
Overview
te-audience The domain handles the audience management capabilities of the TE platform, including:
- User tags — Query and manage the user tag system
- User segments — View the segment list and estimate segment size
- Audience events — Get audience-related event definitions
- Audience attributes — Load audience attributes (user attributes, event attributes, etc.)
All commands are invoked through te-cli audience +<command> .
Core scenarios
1. View the user tag system
# 列出项目下所有用户标签
te-cli audience +list-tags -p <project-id>
# 获取某个标签的详细信息
te-cli audience +get-tag -p <project-id> --tag-id 42
2. User segment management
# 列出所有用户分群
te-cli audience +list-clusters -p <project-id>
# 预估满足条件的实体数量
te-cli audience +predict-cluster-count -p <project-id> --conditions '{"property":"age","op":"gt","value":18}'
3. Audience events and attributes
# 列出受众事件
te-cli audience +list-audience-events -p <project-id>
# 加载受众属性(并行调用 3 个 API)
te-cli audience +load-audience-props -p <project-id>
# 可选传入 events 过滤
te-cli audience +load-audience-props -p <project-id> --events '[{"name":"login"}]'
Reference documentation
See references/ for the documentation of each command in the directory.