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.
Install
🚫 This package is under active development; installer beware.
$ npm i -g shopify-webhook-commander
Note about auth tokens
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.
Roadmap
- tests 😬
- replace Apollo client with a slimmer GQL lib
- integrate
@shopify/shopify-api
types -- gotta get rid of thoseany
types -
webhooks:update
command - autocomplete webhook topics
- auth loop for custom apps
Top comments (0)