Agent Skill
2/7/2026

configurator-cli

Provides comprehensive guidance for Saleor Configurator CLI commands and usage patterns. This skill should be invoked when the user asks about deploying configurations, introspecting stores, running diffs, or executing any CLI operations against a Saleor instance. Covers deploy, introspect, diff, and start commands with all flags and environment variables.

S
saleor
25GitHub Stars
1Views
npx skills add saleor/configurator

SKILL.md

Nameconfigurator-cli
DescriptionProvides comprehensive guidance for Saleor Configurator CLI commands and usage patterns. This skill should be invoked when the user asks about deploying configurations, introspecting stores, running diffs, or executing any CLI operations against a Saleor instance. Covers deploy, introspect, diff, and start commands with all flags and environment variables.

name: configurator-cli version: 2.0.0 description: "CLI commands for deploying, diffing, and introspecting Saleor stores. Use when asking about deploy, introspect, diff, dry-run, CI/CD setup, or CLI flags." allowed-tools: Bash, Read, Grep license: MIT compatibility: "Claude Code or Claude.ai. Requires @saleor/configurator CLI installed."

Configurator CLI

Overview

The Saleor Configurator CLI syncs your YAML configuration with a live Saleor instance. You define your store in config.yml, then use CLI commands to preview and apply changes.

When to Use

  • "How do I deploy my config?"
  • "How do I pull the current store configuration?"
  • "How do I preview changes before deploying?"
  • "What flags does deploy support?"
  • "How do I set up CI/CD for my store?"
  • "What do the exit codes mean?"
  • When NOT modeling products or writing YAML -- use product-modeling or configurator-schema instead

Core Commands

introspect

Pulls the current configuration from a Saleor instance into config.yml.

npx configurator introspect --url=$SALEOR_API_URL --token=$SALEOR_TOKEN

Use cases: initial setup, backup before changes, restore from known-good state.

deploy

Pushes local config.yml changes to a Saleor instance.

npx configurator deploy --url=$SALEOR_API_URL --token=$SALEOR_TOKEN

Important flags:

  • --dry-run -- preview changes without applying
  • --fail-on-delete -- abort if any deletions would occur
  • --include <types> -- only deploy specific entity types
  • --exclude <types> -- skip specific entity types
  • --skip-media -- skip media file uploads

diff

Compares local config.yml with the remote Saleor instance.

npx configurator diff --url=$SALEOR_API_URL --token=$SALEOR_TOKEN

Output markers: + CREATE (new), ~ UPDATE (modified), - DELETE (removed).

start

Interactive setup wizard for new configurations.

npx configurator start

Quick Reference

FlagCommandsDescription
--urlAllSaleor GraphQL endpoint URL
--tokenAllSaleor API authentication token
--includedeploy, diffComma-separated entity types to include
--excludedeploy, diffComma-separated entity types to exclude
--fail-on-deletedeployExit with error if deletions detected
--dry-rundeployShow plan without executing changes
--skip-mediadeploy, diffSkip media file comparison/upload

Environment Variables

Instead of passing flags every time, set environment variables:

export SALEOR_API_URL="https://your-store.saleor.cloud/graphql/"
export SALEOR_TOKEN="your-api-token"

npx configurator deploy  # No flags needed

Or use a .env file in your project root.

Exit Codes

CodeMeaningAction
0SuccessOperation completed
1General errorCheck error message
2Validation errorFix config.yml syntax/schema
3Authentication errorVerify URL and token
4Network errorCheck connectivity

Common Workflows

Initial Store Setup

npx configurator introspect --url=$URL --token=$TOKEN  # Pull current state
# Edit config.yml
npx configurator diff --url=$URL --token=$TOKEN         # Preview changes
npx configurator deploy --url=$URL --token=$TOKEN       # Apply changes

Safe CI/CD Deployment

npx configurator deploy --url=$URL --token=$TOKEN --fail-on-delete

Selective Deployment

# Deploy only channels and products
npx configurator deploy --url=$URL --token=$TOKEN --include channels,products

# Deploy everything except products
npx configurator deploy --url=$URL --token=$TOKEN --exclude products

Common Mistakes

MistakeFix
Deploying without previewing firstAlways run diff (or deploy --dry-run) before deploy
Wrong URL formatURL must end with /graphql/ (e.g., https://store.saleor.cloud/graphql/)
Expired or invalid tokenRegenerate your API token in Saleor Dashboard under Settings > Service Accounts
Forgetting --fail-on-delete in CIAlways use --fail-on-delete in automated pipelines to prevent accidental deletions
Not backing up before major changesRun introspect first to save current state to config.yml

See Also

Related Skills

  • configurator-schema - Config.yml structure and validation rules
  • saleor-domain - Entity relationships and Saleor concepts
Skills Info
Original Name:configurator-cliAuthor:saleor