If you want to get the latest CLI 2.0 version, you can run “gem update shopify-cli” if you installed it as a Ruby gem, or “brew upgrade shopify-cli” if it was installed via Homebrew.
So … I have a question. My app has a top level component, which references a function, which in turn calls more functions (all the way down).
That first function (and only that one) has a CLI issue. When I perform the windows console command “shopify app serve”, I start running a server (via ngrok). For ALL other function files, changes via VScode to the content of the files causes an immediate recompile and changes the running code. Just fine.
For THAT first function, the recompile is initiated, with varying results.
5% of the time the recompile completes and the new code executes. Just fine.
10% of the time the recompile hangs. I have to Ctrl-C and restart “shopify app serve”.
85% of the time the recompile completes (or so I am told), BUT the code is not changed, I continue to run the obsolete code, so I have to Ctrl-C and restart “shopify app serve”.
Note that the third option never affects any other function file.
Any idea what is happening? It has been going on for a month or two now. It’s quite a pain. Do you think CLI 3.0 would fix this?
But I’d recommend you to to upgrade to CLI 3.0, as it might work as expected there. Also, we will keep maintaining the old CLI 2.0 for now, but new features will only be added to CLI 3.0.