Skip to content
ziniao-account logo

账号(店铺)管理

ziniao-account

紫鸟账号(店铺)管理:店铺账号的查询、创建、修改、删除、授权和标签管理。当用户需要查看店铺账号列表、创建/修改/删除账号、管理账号授权或标签时使用。

ziniao-open/skills4.9Kinstalls6stars

SKILL.md

Full skill instructions

账号(店铺)管理

CRITICAL — 开始前 MUST 先用 Read 工具读取 ../​ziniao-shared/​SKILL.md CRITICAL — Shortcuts 执行前,务必先读取对应的 references/ 说明文档。

紫鸟的"账号"指浏览器店铺账号(store),不是员工用户。本模块共覆盖 22 个接口,全部已有快捷命令。

注意区分: account 命令通过服务端 API 管理店铺账号(创建、删除、授权、标签)。如需控制本地浏览器窗口(打开/关闭/导航/截图),请使用 store + page 命令(走本地 ZClaw Bridge)。

获取店铺列表的选择:

  • 成员账号没有服务端 account list 权限,应使用 store list(本地 ZClaw Bridge)获取店铺列表。
  • Boss 账号如果目的是打开店铺浏览器,也应优先使用 store list 获取本地可用店铺,而非 account list。
  • account list 适用于需要管理店铺元数据(标签、授权、批量操作)的场景。
  • 成员类型可通过 ziniao-cli config show 结果中的 isBoss 字段判断。

Shortcuts — 账号 CRUD

命令说明详细文档
account list查询账号列表references/​ziniao-account-list.md
account create创建账号references/​ziniao-account-create.md
account update编辑账号基础信息只发修改字段:--id xxx --name "新名"
account delete删除账号(高风险)--id xxx,逗号分隔可批量,需 --yes
# 查询
ziniao-cli account list --name "某店" --format table
ziniao-cli account list --page-all

# 创建
ziniao-cli account create --name "我的店铺" --site-id 1 --remark "测试"

# 修改
ziniao-cli account update --id 123 --name "新名称" --site-id 1

# 删除(批量)
ziniao-cli account delete --id "101,102,103" --yes

Shortcuts — 授权管理

命令说明
account auth-add授权员工访问店铺(--store-id 和 --staff-id 均支持逗号分隔批量)
account auth-remove撤销员工访问权限(--store-id 和 --staff-id 均支持逗号分隔批量)
account auth-clean清空店铺所有员工授权(高风险)
account auth-list查询某员工被授权的店铺列表
account auth-users查询某店铺已授权的员工列表
# 批量授权(把 3 个店铺同时授权给 3 个员工)
ziniao-cli account auth-add --store-id "111,222,333" --staff-id "201,202,203"

# 撤销单人
ziniao-cli account auth-remove --store-id 111 --staff-id 201

# 查看某员工被授权的所有店铺
ziniao-cli account auth-list --user-id 201 --page-all --format table

# 清空授权(高风险)
ziniao-cli account auth-clean --store-id 111 --yes

Shortcuts — 标签管理

命令说明
account tag-list查询企业下所有标签
account tag-of-store --store-id查询某店铺绑定的标签列表
account tag-create --name创建标签
account tag-rename --id --name重命名标签
account tag-delete --id删除标签(高风险)
account tag-bind --tag-id --store-id绑定标签到店铺(--store-id 支持批量)
account tag-unbind --tag-id --store-id解绑(--store-id 支持批量)
account tag-replace --store-id --tag-ids全量替换店铺的标签集合
account tag-clear --store-id清空店铺所有标签(高风险)
account tag-remove --tag-id --store-id从指定店铺移除该标签(高风险,--store-id 支持批量)

底层接口与请求体字段必须严格按接口文档发送,不要补发未记录的别名字段。

命令API请求体字段(不含公共 companyId)
account tag-list/​superbrowser/​rest/​v1/​erp/​tag/​list无
account tag-of-store --store-id/​superbrowser/​rest/​v1/​store-tag/​liststoreId, 可选 withSystem
account tag-create --name/​superbrowser/​rest/​v1/​store-tag/​addtagName
account tag-rename --id --name/​superbrowser/​rest/​v1/​store-tag/​renametid, name
account tag-delete --id/​superbrowser/​rest/​v1/​store-tag/​deletetagIds
account tag-bind --tag-id --store-id/​superbrowser/​rest/​v1/​store-tag/​bindtagIds, storeIds
account tag-unbind --tag-id --store-id/​superbrowser/​rest/​v1/​store-tag/​unbindtagIds, storeIds
account tag-replace --store-id --tag-ids/​superbrowser/​rest/​v1/​store-tag/​replacetagIds, storeIds
account tag-clear --store-id/​superbrowser/​rest/​v1/​store-tag/​clearstoreIds
account tag-remove --tag-id --store-id/​superbrowser/​rest/​v1/​store-tag/​removetagIds, storeIds
# 查看所有标签
ziniao-cli account tag-list --format table

# 查看某店铺已有标签
ziniao-cli account tag-of-store --store-id 101

# 创建标签后批量绑定到多个店铺
ziniao-cli account tag-create --name "重点店铺"
ziniao-cli account tag-bind --tag-id 99 --store-id "101,102,103"

# 全量替换(将店铺 101 的标签换成 99 和 100)
ziniao-cli account tag-replace --store-id 101 --tag-ids "99,100"

# 从多个店铺移除某个标签
ziniao-cli account tag-remove --tag-id 99 --store-id "101,102" --yes

通用 api 覆盖(仅剩的接口)

# 缓存清理(仅此接口无快捷命令)
ziniao-cli api /​superbrowser/​rest/​v1/​erp/​store/​deletecookie --data '{"removeStoreId":"xxx","removeType":1}'
# removeType: 1=清除所有缓存, 2=仅保留 cookie, 3=仅保留二步验证状态

# 账号授权用户列表 / 用户有权限的账号列表
ziniao-cli api /​superbrowser/​rest/​v1/​erp/​store/​user/​list --data '{"storeIdList":["xxx"],"page":1,"limit":10}'
ziniao-cli api /​superbrowser/​rest/​v1/​erp/​user/​stores --data '{"userId":"xxx","page":1,"limit":10}'

More skills from ziniao-open

ziniao-openapi-explorer logo
ziniao-open/skills

ziniao-openapi-explorer

紫鸟 API 探索:当现有快捷命令无法满足需求时,通过通用 api 命令和已知路径清单探索紫鸟全部 73 个 API 接口。

6 5K
View
ziniao-role logo
ziniao-open/skills

ziniao-role

紫鸟角色管理:角色的查询、创建、修改、分配和权限查看。当用户需要查看角色列表、创建/修改角色、将角色分配给员工或查看角色成员时使用。

6 4.9K
View
ziniao-skill-maker logo
ziniao-open/skills

ziniao-skill-maker

创建 ziniao-cli 的自定义 Skill。当用户需要把紫鸟 API 操作封装成可复用的 Skill(包装原子 API 或编排多步流程)时使用。

6 4.9K
View
ziniao-device logo
ziniao-open/skills

ziniao-device

紫鸟设备管理:代理设备(IP)的查询、添加、修改、绑定/解绑、购买续费和自动续费。当用户需要查看代理设备列表、添加/修改自有代理、绑定设备到店铺或管理设备费用时使用。

6 4.9K
View
ziniao-access-policy logo
ziniao-open/skills

ziniao-access-policy

紫鸟访问策略管理:网页访问规则、网页/网页分组、规则生效成员/账号、账号绑定策略的查询和维护。当前无快捷命令,全部通过 ziniao-cli api 直调。

6 4.9K
View
ziniao-department logo
ziniao-open/skills

ziniao-department

紫鸟部门管理:部门的查询、创建、修改、删除和排序。当用户需要查看组织架构、创建/修改/删除部门、调整部门排序时使用。

6 4.9K
View

批量账号授权工作流:编排 account list + staff list + api 调用完成批量授权店铺给员工。适用于新员工入职时批量分配店铺权限。

6 4.9K
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View