What's your biggest current challenge? Have your say in Community Polls along the right column.

Mutistore non-publish app installation

Mutistore non-publish app installation

saurav2211
Shopify Partner
3 0 0

Which shopify cli should I used to make app which gets install on different store of different partner account. 

Reply 1 (1)

PageFly-Richard
Shopify Partner
4808 1088 1758

Hi,

This is Richard at PageFly - Shopify Advanced Page Builder app.

 

You want to create a Shopify app that can be installed on multiple stores belonging to different partner accounts. This involves managing multiple app instances, each with its own API keys and permissions.

The Right Shopify CLI Tool: shopify

The primary tool you'll need is the Shopify CLI. This command-line interface provides a comprehensive set of tools for developing, testing, and deploying Shopify apps.

Key Steps and Considerations

  1. App Development:

    • Use the shopify app init command to create a new app project.
    • Develop your app's functionality using your preferred technologies (e.g., Node.js, Ruby on Rails).
    • Implement authentication and authorization mechanisms to securely interact with Shopify's APIs.
  2. App Configuration and Deployment:

    • For each partner store, you'll need to create a separate app instance in the Shopify Partner Dashboard.
    • Use the shopify app config link command to link your local development environment to the specific app instance.
    • Deploy your app to a hosting platform (e.g., Heroku, Vercel) and configure the app's webhook URLs and other settings.
  3. Handling Multiple App Instances:

    • Your app will need to dynamically determine which app instance it's currently interacting with.
    • This can be achieved by using the shopify CLI to fetch the current app's configuration or by using environment variables to store API keys and other credentials.
    • Consider using a configuration management tool like dotenv to securely manage sensitive information.

 

Hoping my solution helps you solve your problem.

Best regards,

Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.