shopify-webhook-commander is a CLI to create, list, and delete Shopify Admin App webhook subscriptions.
Building out a new admin app often requires setting up listeners for Shop events but building out controllers and UI to manage webhook subscriptions isn't always at the top of the to-do list.
This CLI will let developers manage subscriptions from the terminal.
🚫 This package is under active development; installer beware.
$ npm i -g shopify-webhook-commander
This tool uses a single token to authenticate; this is easiest with a Shopify "Private" Admin App. Set the config secret to the private app password. There is no OAuth flow to help with "Custom" Partner apps.
You could provide an
accessToken acquired from a Custom app's authentication flow.
shopify-webhook-commander doesn't really help for "Public" apps that typically manage webhooks for each shop install programatically.
- tests 😬
- replace Apollo client with a slimmer GQL lib
@shopify/shopify-apitypes -- gotta get rid of those
- autocomplete webhook topics
- auth loop for custom apps