CMS Development

awrietow
Contributor

zsh: command not found: hs

I was successful installing and connecting to HubSpot CLI initially. Now that I've gone back in on a different day I can't see to connect. Can someone help, I'm not sure what I am doign wrong. As you can see I've got  Hubspot CLI installed but terminal sis not recognizing the command "hs"

Screen Shot 2022-04-21 at 4.28.18 PM.png

0 Upvotes
6 Replies 6
Mike_Eastwood
Key Advisor | Gold Partner
Key Advisor | Gold Partner

zsh: command not found: hs

Thank you @VRoper 

 

I got it to work with the prefix "npx" in the command.

npx hs fetch my-theme my-theme

 

Have fun

Mike

 

Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of Webalite a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world's first automated HubSpot Portal Audit that helps you work smarter with HubSpot.

SJaeger
Contributor | Platinum Partner
Contributor | Platinum Partner

zsh: command not found: hs

have u registered it globally?

if u use nodejs "npm i @hubspot/cms-cli -g"

Nothing is impossible
0 Upvotes
awrietow
Contributor

zsh: command not found: hs

Thanks, I tried that, but that gave me some npm 404 errorsScreen Shot 2022-04-22 at 2.33.10 PM.png

 

0 Upvotes
jonchim
Guide | Diamond Partner
Guide | Diamond Partner

zsh: command not found: hs

hey @awrietow,

I've run into this same issue before but i don't remember what the fix was.

Can you try npx instead of npm and see if that works? 






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution
0 Upvotes
awrietow
Contributor

zsh: command not found: hs

Thanks for your reply. I got this error: 

 

npm ERR! could not determine executable to run

 

0 Upvotes
VRoper
Member

zsh: command not found: hs

use npx hs or npm hs that worked for me