Theme environments for Shopify CLI

Many command configurations, such as the theme and store to be used with the command, are passed using flags. To avoid passing multiple flags with each command, and to easily switch projects or contexts, you can use environments. Environments are sets of command configurations that can be referenced by name using a single --environment flag.

You might want to use environments in the following cases:

  • You need to switch between development stores frequently.
  • You access multiple stores using Theme Access passwords.
  • You want to deploy your project to development, staging, and production instances of your theme.

You need to configure environments in each theme repository where you work. Environments are configured using a shopify.theme.toml configuration file.