关于 abc-cli
abc-cli 是用于管理 Apple Business Connect 商家信息的命令行工具,适合维护商家地点及其展示内容的团队。它涵盖地点、地点卡片、活动、帖子和洞察数据。
主要功能
- 01搜索并管理商家地点
- 02管理地点卡片和分类
- 03创建活动与帖子
- 04查看地点洞察数据
- 05支持 OAuth 登录
适用场景
- 01更新商家地址、电话和营业时间
- 02验证地点或设置临时歇业
- 03发布地点活动与促销帖子
- 04查看搜索词和路线数据
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ dl-alexandre/ skills --skill abc-cli安装后在 Claude Code 中输入/abc-cli确认已加载。
详细介绍
Apple Business Connect 命令行工具
使用 abc 命令行工具管理 Apple Business Connect 商家信息。
前置条件
abc --version
export ABC_TOKEN='your-oauth-token'
abc auth status
身份验证
- Apple Business Connect 的 OAuth 令牌
- 环境变量:
ABC_TOKEN - 或:使用
abc auth login启动交互式 OAuth 流程
商家地点
列出和搜索
abc locations list --limit 50
abc locations search --query "Apple Store"
abc locations get LOCATION_ID
创建和更新
abc locations create --name "My Business" --address "123 Main St"
abc locations update LOCATION_ID --phone "+1-555-123-4567"
abc locations update LOCATION_ID --hours "mon-fri:9am-5pm,sat:10am-4pm"
状态
abc locations status LOCATION_ID
abc locations verify LOCATION_ID --method postcard
abc locations close LOCATION_ID --temporary --until 2024-12-01
地点卡片
abc placecard get LOCATION_ID
abc placecard update LOCATION_ID --photos ./photos/
abc placecard categories list
abc placecard categories set LOCATION_ID --primary "Restaurant"
操作和帖子
abc actions list LOCATION_ID
abc actions create LOCATION_ID --type ORDER --url "https://order.example.com"
abc posts list LOCATION_ID
abc posts create LOCATION_ID --title "Summer Special" --photo promo.jpg
洞察
abc insights summary --location LOCATION_ID --days 30
abc insights queries --location LOCATION_ID --start 2024-06-01
abc insights directions --location LOCATION_ID --days 30
Agent 最佳实践
- 验证:地点显示在 Maps 上之前必须完成验证
- 营业时间格式:使用逗号分隔,并用连字符表示时间范围
- 照片:遵循 Apple 的照片指南
- 类别:选择可用的最具体类别
评论
支持 Markdown