Commands for building Shopify Apps with Polaris.
You can install the Polaris plugin for the Shopify CLI by running the following command:
shopify plugins install @shopify/polaris-cli
See the Shopify CLI command syntax section for how to execute commands using other package managers (ex: npm, Yarn, or pnpm).
Executes the Polaris Migrator. This makes version upgrades faster and safer by performing codemod transformations to your codebase. You can apply any of the available Polaris migrations using the Shopify CLI
shopify polaris migrate <migration> <path>
migration- name of migration
path- files or directory to perform migration
The following is a complete CLI command example using
npm run shopify polaris migrate v10-react-replace-text-components 'src/components/**/*.tsx'
See the Shopify CLI command syntax section for how to execute commands using other package managers.
|Do a dry-run, no code will be edited|
|Prints the changed output for comparison|
|Bypass Git safety checks and forcibly run migrations|