# Modules not updated accordingly in the local development

**URL:** <https://community.hubspot.com/t/modules-not-updated-accordingly-in-the-local-development/100217>\
**Category:** CMS Development\
**Created:** [February 15, 2024, 10:20am UTC](https://community.hubspot.com/t/modules-not-updated-accordingly-in-the-local-development/100217 "2024-02-15T10:20:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OJOGBODO](https://avatars.discourse-cdn.com/v4/letter/o/898d66/32.png) [@OJOGBODO](https://community.hubspot.com/u/OJOGBODO)\
**Post date:** [February 15, 2024, 10:20am UTC](https://community.hubspot.com/t/modules-not-updated-accordingly-in-the-local-development/100217/1 "2024-02-15T10:20:20Z")

</div>

Hey guys , i’ve been having an issue with the fetching files from my hubspot account, when i create a module on the design tool and create couple of fields, when i try to fetch the module(or any other file) into my local environment, it would not have the fields.json and every other file associated to the module updated accordingly,  
i have also tried the hs fetch --overwrite , it still doesn’ seem to work, i’d really appreciate any help i can get to fix this,  
Thank you in anticipation.

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [February 15, 2024, 11:12am UTC](https://community.hubspot.com/t/modules-not-updated-accordingly-in-the-local-development/100217/2 "2024-02-15T11:12:01Z")

</div>

Hi @OJOGBODO,

haven’t discovered something like this because

`fetch ... --overwrite`

should overwrite existing files like you’ve mentioned.

Have you tried to delete or move the local module? and fetch it again?  
Also a tipp: If you add fields via design-tools to a module you can copy just the fields.json here:

 ![fetching-json.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7e1d5f01a0be037dc6fa94df967e44b65d472075.png)

This works for the style-fields aswell

best,

Anton

---

<div class="post-metadata">

**Author:** ![OJOGBODO](https://avatars.discourse-cdn.com/v4/letter/o/898d66/32.png) [@OJOGBODO](https://community.hubspot.com/u/OJOGBODO)\
**Post date:** [February 15, 2024, 11:20am UTC](https://community.hubspot.com/t/modules-not-updated-accordingly-in-the-local-development/100217/3 "2024-02-15T11:20:30Z")

</div>

Thank you anton @Anton , intererstingly, i have tried to delete the module and infact at some point , i felt it was because the module or file already existed locally, so i created an entirely new module and tried to fetch , it was still missing out on all the other details in the file (fields.json , meta.json e.t.c).  
This is the command i use in my terminal  
npx hs fetch --overwrite /cta-theme-new/modules/My-test.module.  
Thank you in anticipation.

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [February 16, 2024, 4:41pm UTC](https://community.hubspot.com/t/modules-not-updated-accordingly-in-the-local-development/100217/4 "2024-02-16T16:41:25Z")

</div>

Hi @OJOGBODO,

have you tried the [documented way](https://developers.hubspot.com/docs/cms/developer-reference/local-development-cli#fetch-files)?

So instead of

`npx hs fetch --overwrite ....`

opening the folder via cli and run this

`hs fetch --overwrite cta-theme-new/modules/My-test.module /cta-theme-new/modules/My-test.module`

best,

Anton
