askill
configurator-cli

configurator-cliSafety 95Repository

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.

25 stars
1.2k downloads
Updated 2/17/2026

Package Files

Loading files...
SKILL.md

Configurator CLI

The Saleor Configurator CLI is a declarative "commerce as code" tool that syncs YAML configuration files with Saleor e-commerce instances.

Core Commands

introspect

Fetches the current configuration from a Saleor instance and writes it to config.yml.

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

Use cases:

  • Initial setup: Pull existing store configuration
  • Backup: Snapshot current state before changes
  • Recovery: 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

Safety notes:

  • Always run diff before deploy to preview changes
  • Use --fail-on-delete in CI/CD pipelines
  • Back up with introspect before major changes

diff

Compares local config.yml with remote Saleor instance.

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

Output shows:

  • + CREATE: New entities to be created
  • ~ UPDATE: Entities with modifications
  • - DELETE: Entities that will be removed

start

Interactive setup wizard for new configurations.

npx configurator start

Common Flags

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, set environment variables:

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

# Then run without flags:
npx configurator deploy

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

Development Mode

When developing the Configurator itself:

# Run from source
pnpm dev introspect --url=$URL --token=$TOKEN
pnpm dev deploy --url=$URL --token=$TOKEN
pnpm dev diff --url=$URL --token=$TOKEN

Common Workflows

Initial Store Setup

# 1. Create config from existing store
npx configurator introspect --url=$URL --token=$TOKEN

# 2. Edit config.yml to make changes

# 3. Preview changes
npx configurator diff --url=$URL --token=$TOKEN

# 4. Deploy changes
npx configurator deploy --url=$URL --token=$TOKEN

Safe CI/CD Deployment

# Fail if any entities would be deleted
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

See Also

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

95/100Analyzed 2/13/2026

A comprehensive and well-structured guide for the Saleor Configurator CLI. It covers core commands, flags, environment variables, and exit codes with clear examples. The inclusion of common workflows and safety warnings (e.g., dry-runs, backups) makes it highly actionable and safe for agent use.

95
95
85
95
95

Metadata

Licenseunknown
Version1.0.0
Updated2/17/2026
Publishersaleor

Tags

apici-cdgraphql