# Export a theme!!

**URL:** <https://community.hubspot.com/t/export-a-theme/85956>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [July 24, 2023, 11:15am UTC](https://community.hubspot.com/t/export-a-theme/85956 "2023-07-24T11:15:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AzharBondi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/azharbondi/32/89457_2.png) [@AzharBondi](https://community.hubspot.com/u/AzharBondi)\
**Post date:** [July 24, 2023, 11:15am UTC](https://community.hubspot.com/t/export-a-theme/85956/1 "2023-07-24T11:15:13Z")

</div>

Hi guys !

Could someone tell me please how could I export a specific theme folder into zip file ?

Thanks

---

<div class="post-metadata">

**Author:** ![coldrickjack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/coldrickjack/32/6684_2.png) [@coldrickjack](https://community.hubspot.com/u/coldrickjack)\
**Post date:** [July 24, 2023, 12:32pm UTC](https://community.hubspot.com/t/export-a-theme/85956/2 "2023-07-24T12:32:12Z")

</div>

Hey @AzharBondi,

You need to do this using the HubSpot CLI. Instructions on how to download/install and use can be found [here](https://developers.hubspot.com/docs/cms/developer-reference/local-development-cli). 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!

---

<div class="post-metadata">

**Author:** ![AzharBondi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/azharbondi/32/89457_2.png) [@AzharBondi](https://community.hubspot.com/u/AzharBondi)\
**Post date:** [July 24, 2023, 4:19pm UTC](https://community.hubspot.com/t/export-a-theme/85956/3 "2023-07-24T16:19:26Z")

</div>

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)

 ![AzharBondi_0-1690215529813.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/2/c2c5b0c1a5cc7c5b1e8ecb66a292ef2eccd64760.png)

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 !!!

---

<div class="post-metadata">

**Author:** ![coldrickjack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/coldrickjack/32/6684_2.png) [@coldrickjack](https://community.hubspot.com/u/coldrickjack)\
**Post date:** [July 24, 2023, 4:47pm UTC](https://community.hubspot.com/t/export-a-theme/85956/4 "2023-07-24T16:47:41Z")

</div>

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:

- mkdir hubspot (creates a hubspot folder)
- hs init (creates a hubspot config file)
  - Prompts me for the access token (copied and pasted from the browser)
  - Prompts me for my account name (I set it to JACKSPORTAL)

- hs fetch --account=JACKSPORTAL /barricade\_copy /

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).

---

<div class="post-metadata">

**Author:** ![AzharBondi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/azharbondi/32/89457_2.png) [@AzharBondi](https://community.hubspot.com/u/AzharBondi)\
**Post date:** [July 24, 2023, 8:10pm UTC](https://community.hubspot.com/t/export-a-theme/85956/5 "2023-07-24T20:10:58Z")

</div>

I really do appreciate the help !! But, what worked for me was this command  
hs fetch /Theme Directory
