Managing Environments as Code with Saleor Configurator
Introducing Saleor Configurator, a CLI that allows you to define and provision entire commerce domains through code.
Modern commerce stacks require end-to-end automation. Infrastructure is code, deployments are pipelines, integrations are servicesâand now the same thinking can extend to provisioning your Saleor environment and shaping your commerce domain model.
Thatâs the idea behind our new tool, which we want to highlight today: Saleor Configurator.
Commerce as Code enables automation at the commerce layerâfrom bootstrapping your environment to continuously shaping your entire domain model. Instead of piecing things together step by step, you define your environment once in a configuration file. Version it, share it, and apply it anywhere: local, staging, Cloud.
The Gist
What youâre looking at is a Saleor environment defined in code through Saleor Configurator. That configuration file describes a channel (Channel EU) and a product type (T-Shirt) with its attributes (Size and Color). A couple lines of YAML config that spares you some minutes spent in Saleor Dashboard.
That doesnât make the Dashboard a bad experienceâitâs simply aimed at a different use case. For staff users managing catalogs and making real-time changes, the Dashboard is the right tool. For developers provisioning environments, Configurator makes more sense.
A Single Source of Truth
Take the T-Shirt example above. Behind those few lines of YAML, Configurator is handling three separate operations for you:
- Creating a product type
- Creating attributes (
SizeandColor) - Assigning those attributes to the product type
The Dashboard keeps these steps flexibleâyou can create attributes independently by hand and reuse them later. Configurator, on the other hand, treats the YAML as a source of truth for your instance. That shift enables workflows that would otherwise require hours of manual setup.
Example Use Case
Take an agency that, after years of working with Saleor, has built its own storefront starterâsomething that can adapt to the schema of any Saleor instance. Spinning up a new project should be as simple as forking the starter and setting a few environment variables. But thereâs still one missing piece: the commerce domain itself.
Product types and their attributes, how products are organized into categories and collections, and all the settings that dependencies expect. Without Configurator, this layer has to be recreated manually and documented as a checklist of steps. Through âCommerce as Codeâ, it becomes a single configuration file that captures the desired state of the system.
Beyond the Basics
Configurator isnât just about bootstrapping new projects. Once your environment lives in a configuration file, you can start treating it like any other piece of code. Keep different files as reusable ârecipesâ for demos or client setups. Manage your config in Git to track changes over time. Drop it into your CI/CD pipeline so every environment stays in sync.
Itâs all the same philosophy: a composable commerce platform should be fully automatable, from infrastructure all the way up to the domain model. Configurator is how weâre making that possible.
Call Me Maybe?
Configurator is still early, and weâd love to know how youâd like to use it. Give it a spin with:
and pay the docs a visit for more details.
Afterwards, make sure to join us on Discord in the #configurator channel to share your thoughts, opinions, and even your own config recipes. Seeing how different teams structure their environments will help us understand real-world use cases and guide what we build next.