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