Why are my Shopify CLI commands not recognized?

Hi,

I have a repo on github and I have installed shopify CLI version 3.21.0 but when I try to login to the store it just says

“command not found”. I have another store and theme I’m working on, on another computer using shopify cli 2.27.0 and it’s working fine.

I’m not sure exactly what is wrong.

Any suggestions?

Best

Philip

Hi there,

I had the same issue and found out that the commands changed for CLI 3.0 “shopify login” no longer works

https://shopify.dev/themes/tools/cli/migrate

Hope it helped!

Have you had success logging in through CLI? I’m new to the Shopify dev world and running 3.23. I have created a Partner Acct and a development shop. I am the owner and logged out and logged back in.

However, I’m still getting the “invalid_target” error meesage…

@philipaxelsson9 @PixelBox

you can run:

shopify theme dev --store {yourStore}

@PixelBox @philipaxelsson9

You can write only this command to log in to your store when you already did the authentication for the first time

shopify theme dev

If the above command doesn’t work then use the following command:

shopify theme dev --store [your store name]