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.

We are getting issues at the of submission we have already setup the npx shop-minis setup .

At the time of submit we got this issue

Could be please let us know steps to submit the app

Please provide more data so that we can debug it.
Are you on Windows or Mac OS? What’s the handle of your mini in the manifest? (and any other relevant data you can share will help us)

Yes ,

We are trying to submit on windows. Possibly we don’t know from where to get SHOP_MINIS_API_KEY . because which we have generated from npx shop-minis generate api-key is not working

Our manifest file

{
“name”: “Virtual Try-On: Saifs AI”,
“description”: “Try on clothes with your own photo and AI”,
“handle”: “virtual-try-on-saifs-ai”,
“permissions”: [“CAMERA”],
“scopes”: [
“product_list:read”,
“product_list:write”,
“product_list_item:write”,
“user_settings:read”
],
“trusted_domains”: [
shorts.multiplewords.com”,
multiplewords.nyc3.cdn.digitaloceanspaces.com
]
}

Even that it might work on Windows, we don’t officially support it. We are trying our best to address all the issues as they pop up. Is it possible to submit the mini from a Mac OS machine in the meantime?

thanks issue resolved

1 Like

@Dynamic_Dreamz @Quique-Shopify @taher

I forgot the api keys .

npx shop-minis submit - forgot the api keys?

Mini already set up
Configuration already exists in manifest.json. Please set
SHOP_MINIS_API_KEY in .env to set up this Mini.
help me guyzz

As told, please do not tag Shopify staff. Also don’t hijack other peoples posts.

remove the “handle from manifest.json and run the setup again. it should regenerate the key and handle for you.

1 Like

Please do not remove the handle to generate a new key - this makes a duplicate mini - instead use the api-keys generate command edit: this command cannot generate a new key without a key to begin with

Actually the api-keys generate command doesnt work, please check, I saw many people face this issue

Yes sorry I was mistaken - please see this comment for the current advice Urgent : Issue with minis setup api key for submission - #8 by steve-t-shopify