Which shopify cli should I used to make app which gets install on different store of different partner account.
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
-
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.
-
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.
-
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