Saleor Configurator

Define a Saleor store's configuration in YAML, keep it in Git, and sync it with the store. introspect writes the store to config.yml, diff shows what would change, and deploy applies the file.
Compatibility
Configurator versions follow Saleor versions: configurator 3.23.x targets Saleor 3.23.x. The target is declared in package.json#saleor.schemaVersion. Other Saleor minors may work; introspect, diff and deploy print a warning when the connected store reports a different minor.
Requires Node.js 20 or later.
Getting started
1. Create a token
In the Saleor Dashboard, go to Extensions, add an extension with Provide details manually, grant it all permissions, and create a token on its page. The token is shown once.
2. Point the CLI at your store
Pass --url and --token to each command, or set them once:
export SALEOR_URL="https://your-store.saleor.cloud/graphql/"
export SALEOR_TOKEN="your-token"
The CLI also reads these from .env and .env.local in the current directory. Keep tokens out of version control.
3. Sync
npx @saleor/configurator introspect # write the store to config.yml
# edit config.yml
npx @saleor/configurator diff # preview the changes
npx @saleor/configurator deploy # apply them
npx @saleor/configurator start runs the same steps as an interactive wizard. Every command and flag is listed in docs/COMMANDS.md.
Configuration
shop:
defaultMailSenderName: "My Store"
channels:
- name: "United States"
slug: us
currencyCode: USD
defaultCountry: US
productTypes:
- name: Book
isShippingRequired: true
productAttributes:
- name: Author
inputType: PLAIN_TEXT
categories:
- name: Fiction
slug: fiction
products:
- name: "Sample Book"
slug: sample-book
productType: Book
category: fiction
variants:
- name: Hardcover
sku: BOOK-001
- SCHEMA.md documents every field.
npx @saleor/configurator schema prints the JSON Schema for editor autocompletion.
- docs/ENTITY_REFERENCE.md explains how entries are matched to the store and how they refer to each other.
- example.yml is a complete store with every section.
Sections you leave out of the file are not touched. deploy creates and updates entities but does not delete them; diff lists entities that exist only in the store.
Metadata
Categories, warehouses, shipping zones and shipping methods accept public metadata as a key → value map:
warehouses:
- slug: main
metadata:
region: eu-west
Only the keys listed in config are managed. deploy adds or overwrites them and leaves every other key on Saleor as it is, so integration settings stored in metadata are not touched. Removing a key from config stops managing it; it does not delete it from Saleor. Leaving out metadata entirely leaves the entity's metadata unmanaged.
introspect brings in every public key, including keys written by apps and integrations. Once a key is in the file, deploy writes the file's value back, so leave integration-owned keys out of the file. Use --metadata-include and --metadata-exclude (comma-separated patterns, * as wildcard) to choose which keys land in the file:
npx @saleor/configurator introspect --metadata-exclude 'erp.*,stripe.*'
Recipes
Recipes are starter configurations bundled with the CLI: multi-region, digital-products, click-and-collect and custom-shipping.
npx @saleor/configurator recipe list
npx @saleor/configurator recipe show multi-region
npx @saleor/configurator recipe export multi-region --output my-store.yml
npx @saleor/configurator recipe apply multi-region
See recipes/README.md.
CI/CD
In non-interactive environments the CLI skips prompts and prints JSON. Useful flags: diff --github-comment --text for pull request comments, --fail-on-delete to stop when deletions are found, and introspect --drift-check to detect changes made in the Dashboard. A GitHub Action is in action/; workflow examples are in docs/ci-cd/README.md.
Requests are paced to stay under the Saleor Cloud sandbox limit. Caps, pacing and batch sizes are in docs/LIMITS.md. For errors, see docs/TROUBLESHOOTING.md.
Library
Import createConfigurator from @saleor/configurator to validate, introspect, diff and deploy in-process. See docs/library.md.
AI agents