Loading...
Loading...
Compare original and translation side by side
shopify store auth --store <domain> --scopes read_products,write_productsread_productswrite_productsshopify store auth --store <domain> --scopes read_products,write_productsread_productswrite_products| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain (e.g., mystore.myshopify.com) |
| filter | string | yes | — | Product filter query (e.g., |
| target_status | string | yes | — | Target status: |
| dry_run | bool | no | true | Preview products without executing mutations |
| format | string | no | human | Output format: |
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
| store | string | 是 | — | 店铺域名(例如 mystore.myshopify.com) |
| filter | string | 是 | — | 产品筛选查询条件(例如 |
| target_status | string | 是 | — | 目标状态: |
| dry_run | bool | 否 | true | 仅预览匹配产品,不实际执行变更操作 |
| format | string | 否 | human | 输出格式: |
⚠️ ARCHIVED products are hidden from all sales channels and cannot be purchased. ACTIVE products are immediately visible to customers. Run withto review the product list before committing — especially for ARCHIVED transitions which are hard to reverse in bulk.dry_run: true
⚠️ ARCHIVED 产品会对所有销售渠道隐藏,无法被购买。ACTIVE 产品会立即对客户可见。提交操作前请先使用配置预览产品列表,尤其是切换至 ARCHIVED 状态的操作,批量回滚难度极高。dry_run: true
productsquery: <filter>first: 250idtitlestatustagshasNextPage: falsetarget_statusproductUpdateid: <product_id>status: <target_status>product { id, title, status }userErrorsproductsquery: <filter>first: 250idtitlestatustagshasNextPage: falsetarget_statusproductUpdateid: <product_id>status: <target_status>product { id, title, status }userErrorsundefinedundefined
```graphql
```graphqlundefinedundefined╔══════════════════════════════════════════════╗
║ SKILL: Product Lifecycle Manager ║
║ Store: <store domain> ║
║ Started: <YYYY-MM-DD HH:MM UTC> ║
╚══════════════════════════════════════════════╝[N/TOTAL] <QUERY|MUTATION> <OperationName>
→ Params: <brief summary of key inputs>
→ Result: <count or outcome>dry_run: true[DRY RUN]format: human══════════════════════════════════════════════
OUTCOME SUMMARY
Products matched: <n>
Already at target: <n> (skipped)
Status updated: <n>
Errors: <n>
Output: lifecycle_update_<date>.csv
══════════════════════════════════════════════format: json{
"skill": "product-lifecycle-manager",
"store": "<domain>",
"started_at": "<ISO8601>",
"completed_at": "<ISO8601>",
"dry_run": true,
"filter": "<query>",
"target_status": "ACTIVE",
"outcome": {
"matched": 0,
"skipped_already_correct": 0,
"updated": 0,
"errors": 0,
"output_file": "lifecycle_update_<date>.csv"
}
}╔══════════════════════════════════════════════╗
║ SKILL: Product Lifecycle Manager ║
║ Store: <store domain> ║
║ Started: <YYYY-MM-DD HH:MM UTC> ║
╚══════════════════════════════════════════════╝[N/TOTAL] <QUERY|MUTATION> <OperationName>
→ Params: <brief summary of key inputs>
→ Result: <count or outcome>dry_run: true[DRY RUN]format: human══════════════════════════════════════════════
OUTCOME SUMMARY
Products matched: <n>
Already at target: <n> (skipped)
Status updated: <n>
Errors: <n>
Output: lifecycle_update_<date>.csv
══════════════════════════════════════════════format: json{
"skill": "product-lifecycle-manager",
"store": "<domain>",
"started_at": "<ISO8601>",
"completed_at": "<ISO8601>",
"dry_run": true,
"filter": "<query>",
"target_status": "ACTIVE",
"outcome": {
"matched": 0,
"skipped_already_correct": 0,
"updated": 0,
"errors": 0,
"output_file": "lifecycle_update_<date>.csv"
}
}lifecycle_update_<YYYY-MM-DD>.csvproduct_idtitleprevious_statusnew_statusvendortagslifecycle_update_<YYYY-MM-DD>.csvproduct_idtitleprevious_statusnew_statusvendortags| Error | Cause | Recovery |
|---|---|---|
| API rate limit exceeded | Wait 2 seconds, retry up to 3 times |
| Product locked or invalid state | Log error, skip product, continue |
| No products match filter | Filter too narrow | Exit with 0 matches, suggest broadening filter |
| 错误 | 原因 | 解决方案 |
|---|---|---|
| API 调用超出频率限制 | 等待2秒,最多重试3次 |
productUpdate 操作返回 | 产品被锁定或状态无效 | 记录错误,跳过当前产品,继续执行后续操作 |
| 无产品匹配筛选条件 | 筛选条件过于严格 | 提示匹配数为0并退出,建议放宽筛选条件 |
launch:2026-05product-data-completeness-scorelaunch:2026-05product-data-completeness-score