Merchandising
Zmienia dane w sklepie — wymagany dry_run
Metafield Bulk Update
Update metafield values for many products at once from a CSV.
AdvancedAPI 2025-01
Command
bash
shopify-admin-skills:metafield-bulk-update store=your-store.myshopify.com### name
Metafield Bulk Update — Structured Data Across an Entire Collection
### oneLiner
Sets or deletes metafield values on hundreds of products at once — no manual product-by-product editing required.
### whenToUse
- Before launching a new storefront feature that requires a metafield to be filled across an entire product category.
- After a product import, when fields like material composition or care instructions were left blank.
- When restructuring store data and needing to rewrite old metafield values to a new namespace or key.
### howToRun
```
Run skill: shopify-admin-metafield-bulk-update
Store: yourstore.myshopify.com
filter: tag:summer-collection
namespace: custom
key: material
value: "100% Cotton"
value_type: single_line_text_field
action: set
dry_run: true
```
### whatYouGet
A CSV file `metafield_update_YYYY-MM-DD.csv` with columns: `resource_type`, `resource_id`, `title`, `namespace`, `key`, `old_value`, `new_value`, `action`. The skill batches up to 25 metafields per API request and handles large catalogs automatically. Verify that `namespace` and `key` match your store's metafield definitions before running without `dry_run`.
### polishContext
### safetyNote
This skill executes `metafieldsSet` or `metafieldsDelete` mutations — `metafieldsSet` overwrites existing values without merging, and `metafieldsDelete` removes them permanently. Default is `dry_run: true`. Preview before committing to large product sets.
Bazuje na open-source 40RTY-ai/shopify-admin-skills (MIT), rozszerzone o kontekst polskiego rynku przez Dawida Gaca.