Unclear messaging around and purpose of .env files

Bit of a newbie question, but I couldn’t find anything enlightening in the docs.

I typically run shopify app config use appname and CLI responds with Using configuration file shopify.app.appname.toml. But then, when I run shopify app deploy , it says Using .env.appname for default values: and lists values for “Org”, “App” and “Include config”, which aren’t even included in the .env.appname file.

CLI still uses the data from the correct .toml file in the deployment, I’m just unclear about the messages CLI is showing and what the purpose of the .env files is, especially since they don’t really contain much (only SHOPIFY_API_KEY and SHOPIFY_THEME_APP_EXTENSION_ID).

Hi @ThomasBorowski , I think this is a bug and it should say Using shopify.app.appname.toml for default values.

I’ll pass it to the team.

deploy will still use .env.appname for the cached extension UUIDs

1 Like

Hi Isaac,

thanks for that. I just tested it without any .env file present in the directory and then it does say Using shopify.app.appname.toml for default values. But once the .env file has been generated, it apparently always refers to that.

Thomas

1 Like