Hi All,
Just wondering if someone could point me in the right direction?
I’ve updated the Shopify CLI version to 3.36 on my mac and I was trying to get my Shopify theme code served locally through the terminal but I’m having a few problems.
I typed in to the terminal: shopify theme dev --store=(my store link) and then it oped a tab so that I could sign in to the store which was fine but then instead of the CLI serving the theme code I get a message saying “It doesn’t seem like you’re running this command in a theme directory. Are you sure you want to proceed?”
I’m probably missing something really obvious here, but I haven’t had that come up in the past with CLI 2. If someone could point me in the right direction that would be great!
1 Like
“It doesn’t seem like you’re running this command in a theme directory. Are you sure you want to proceed?”
Ensure you are in the root directory where a themes folders are.
You cannot run the theme serve command from a remote directory location unless there is a specific flag to pass it the target directory path.
The directory command flag is --path See https://shopify.dev/themes/tools/cli/commands#init-flags
Beyond that search issues or if you can reliably reproduce the issue file a bug report
https://github.com/Shopify/cli
append
--path (your_shopify_folder_name)
1 Like
You need to be in a folder on your terminal where you want to download the theme file. cd into the folder: In my case, it was cd Desktop/app/juni-buni => hit Enter, and then use the code shopify theme pull --store storename.myshopify.com. Hopefully, it will solve the issue.
1 Like
I was asking about the file path, but I found it. Thanks