Enhance Shopify App Deployment with CLI Flags

Control your app deployment with new Shopify CLI flags for safer and more precise CI/CD pipeline management in Shopify Plus.
copy link

Executive summary:

  • New Shopify CLI flags enhance control over app deployments.
  • Improves CI/CD pipeline efficiency and security for developers.
  • Tailored for developers managing Shopify Plus app configurations.

What changed

The Shopify CLI 3.89 update introduces new deployment flags, --allow-updates and --allow-deletes, allowing for specific controls over app extensions and configurations. The --allow-updates flag permits updates, whereas --allow-deletes allows the deletion of app components. When used in tandem, they replace the existing --force command, offering more granular control over what changes are deployed during automated processes.

Why it matters

Shopify Plus merchants gain enhanced security and functional assurance during CI/CD deployments. These new flags enable a more controlled deployment process, minimizing the risk of unintended data loss, especially in automation workflows. This is crucial for app stability and data integrity, particularly for enterprises handling sensitive store configurations.

Role-specific impact

  • Marketers: Can anticipate fewer disruptions to marketing data configurations when launching app updates.
  • Developers: More control over app version releases and configurations through detailed command options.
  • Store admins: Reduced risk of accidental data deletion, ensuring store data remains intact during updates.

Use-case example

Real-world scenario & metric

A Shopify Plus merchant automates their app deployment using a CI/CD pipeline. By incorporating the --allow-updates flag, they achieve a 30% faster deployment time as they avoid the additional checks required by the --force command.

Implementation checklist

  1. Update Shopify CLI to version 3.89 or higher.
  2. Review and modify your CI/CD workflow to include --allow-updates or --allow-deletes where applicable.
  3. Test the updated deployment process in a staging environment before live implementation.

FAQ

Q: Can I use both new flags at once?
A: Yes, using both flags is equivalent to the --force command.

Q: Is it recommended to use --allow-deletes in CI/CD?
A: No, for safety, use --allow-deletes only in manual workflows due to potential data loss.

Resources

For further reading, visit Shopify CLI Deployment Documentation.

Need guidance? Talk to Makro.

Get Shopify Updates in your Inbox

Subscribe and get Shopify update in your inbox weekly!
*
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.