How to get SHOP_MINIS_API_KEY for .env?

I ran the npx shop-minis api-keys generate command, and the terminal prompted me to run npx shop-minis setup. However, when I executed that command, I received an error message saying:
“Please set SHOP_MINIS_API_KEY in .env to set up this Mini.”

I was not able to replicate the issue. I just created a Shop Mini, and ran the two commands that you mentioned. Everything worked fine.

I’d recommend you to create a new mini in a different folder and try again.