App deploy seems to use a different configuration

After I run shopify app config link and link a pre-existing app I run shopify app deploy and it appears to use the wrong app that I have setup in a different directory.
Does it use some global app configuration that needs to be reset?

Hi @dogowner, it sounds like you might be encountering a bug in the CLI, but I can’t say for sure without full details. I’d encourage you to open a bug issue on the CLI repo and fill in all information so we can investigate.

False alarm, it was my fault. I was able to read the source and the CLI was loading the client_id from an environment variable, SHOPIFY_API_KEY, and I just so happen to have accidentally set it to the other app’s id on the docker container I was using. After unsetting that it seems I can switch between stores/apps.