Questions and discussions about using the Shopify CLI and Shopify-built libraries.
Hi,
I am working to automate some of the process of setting up custom apps for merchants that I work with. I have succeeded in reverse-engineering the Shopify CLI source code as others have suggested, and can now programmatically create custom apps. However I am now trying to distribute the app (assign it to the .myshopify.com store URL and get an install URL back), and am coming up against issues related to authentication/access.
The web UI uses the mutation "customAppAgreementCreate" to distribute the app on the GraphQL endpoint: https://partners.shopify.com/[ORG_ID]/api/graphql
This mutation is not available on the CLI GraphQL endpoint: https://partners.shopify.com/api/cli/graphql.
Is it possible to use this mutation (or something that achieves the same outcome) from a CLI/program?