You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --clean option has been documented as "Will cause upload to delete files in your HubSpot account that are not found locally". However, when I specify a root directory, the cli actually removes the remote directory and then re-uploads the local version. This seems OK, but for us it had the unintended side effect that any configured global content using the Global Content Editor is reset to the defaults as defined in the global partials.
CLI version
5.0.1
Steps to reproduce
Fetch a folder, e.g. hs fetch theme
Reupload using --clean, e.g. hs upload theme theme --clean
Expected behavior
The documentation should at least match what will actually happen.
In our case it would be better if only files in the HS account are deleted when not found locally.
The text was updated successfully, but these errors were encountered:
My team has encountered the same issue, our content has been overwritten and the revision history is empty, so there is no way to rollback to a previous version.
Description and Context
Summary
The
--clean
option has been documented as "Will cause upload to delete files in your HubSpot account that are not found locally". However, when I specify a root directory, the cli actually removes the remote directory and then re-uploads the local version. This seems OK, but for us it had the unintended side effect that any configured global content using the Global Content Editor is reset to the defaults as defined in the global partials.CLI version
5.0.1
Steps to reproduce
hs fetch theme
--clean
, e.g.hs upload theme theme --clean
Expected behavior
The documentation should at least match what will actually happen.
In our case it would be better if only files in the HS account are deleted when not found locally.
The text was updated successfully, but these errors were encountered: