Hi guys !
Could someone tell me please how could I export a specific theme folder into zip file ?
Thanks
Hi guys !
Could someone tell me please how could I export a specific theme folder into zip file ?
Thanks
Hey @AzharBondi,
You need to do this using the HubSpot CLI. Instructions on how to download/install and use can be found here. Once you’ve done this you just have to run “hs fetch --account=<name> <src> [dest]” to download the theme files. Once done you can create the zip locally.
Hope it helps!
Hi @coldrickjack!
After reading documentation I found that I have to use this command !
hs fetch --account=<name> <src> [dest]
After I linked my local directory to my Hubspot account through the access key(token), I run this command where I inserted the account ID in the name section and pasted the path I copied from my theme directory in hubspot into the src section (copy path)
I am getting an error that the
The request failed because “x” was not found in account x. Asset not found at path ‘x’
x= account Id
this is how I was running it : hs fetch --account=MyHubSpotAccount/accountId /School
where School is the Hubspot directory/folder I want to export
what should I change please to fix the error?
Thanks !!!
Hey @AzharBondi,
I’m not entirely sure to be honest with you as I am unable to replicate that. For instance the steps I go through when using the terminal:
The result being files being copied down to my local directory. If you are seeing different I’d double check to ensure that you indeed have the right account connected and failing that check to see if you can at least push files from your local directory to HubSpot (to at least confirm it’s working).
I really do appreciate the help !! But, what worked for me was this command
hs fetch /Theme Directory