abc-cli について
abc-cli は Apple Business Connect の掲載情報を管理するコマンドラインツールです。店舗情報や公開コンテンツを扱うチーム向けで、ロケーション、プレイスカード、アクション、投稿、インサイトを管理できます。
主な機能
- 01店舗ロケーションの検索・管理
- 02プレイスカードとカテゴリの管理
- 03アクションと投稿の作成
- 04ロケーションインサイトの確認
- 05OAuth 認証
活用シーン
- 01住所・電話番号・営業時間の更新
- 02ロケーションの認証や一時休業の設定
- 03アクションや販促投稿の公開
- 04検索クエリや経路データの確認
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ dl-alexandre/ skills --skill abc-cliインストール後、Claude Code で/abc-cliを入力して読み込まれたか確認します。
詳細
Apple Business Connect CLI
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
エージェントのベストプラクティス
- 確認:拠点がマップに表示される前に必須です
- 営業時間の形式:ハイフンを使ってカンマ区切りで指定します
- 写真:Apple の写真ガイドラインに従ってください
- カテゴリ:利用可能な中で最も詳細なカテゴリを選択してください
コメント
Markdown 対応