Using the new CLI how do I add data to my db on install

Using the new CLI how do I add data to my db on install

RBTriesHisBest
Shopify Partner
3 1 0

I have an app that has a few plan options and different settings for those options. I am wondering how on install I can trigger code so I can add the settings for the shop in my database. In the past my app was not embedded so I would redirect to the install page if there was no entry in the db and then force them to sign up for a plan to leave that page. I am not sure how to mimic that behavior now.

TLDR: How do I run code on install to set variables for a shop in my database?

Replies 0 (0)