hubspot.config.yml reverts to previous save when "hs watch" is running

When I add new accounts with “hs auth” or manually change the name of an account in hubspot.config.yml, and then do some work in any portal with “hs watch” running, my hubspot.config.yml resets itself to a previous version without the recent changes.

I’ve tried deleting the config file and reinstalling the CLI. It works normally when creating new accounts with “hs init” and “hs auth”, but as soon as I start using a watcher it reverts the config file back to the old version, from before the reinstall.

Has anyone else encountered this?

Hi, @MattPickle :waving_hand: Welcome to the community! Hey @albertsg @assi @Pixl_Labs, have you run into this behaviour?

Thank you! — Jaycee

Hi @MattPickle ,

I’ve experienced the same in the past. My personal solution for this was to stop the “hs watch” with CTRL+C, change something in the yml file and start it again.

Or you can always use

--acount=XXX as suffix in your CLI if you want to upload something to a different account

it should look like this

hs upload --account=differentAccountThanTheDefault Local/Path HubSpot/PATH

Hope this helps

best,

Anton

Is there a bug open for this? I’m experiencing the same issue. My package.json houses these commands and it would disrupt my team’s workflow if I need to include account names in scripts.

I submitted a support ticket, but HubSpot closed it because they weren’t able to reproduce the issue.

Changing the yml manually doesn’t solve the problem for me. It still gets overwritten with the old file as soon as I go back to making changes with “hs watch” running. I am using the --account tag to select an account. I’ve also tried changing the default account to select an account, but that also gets reverted back to what it was.