Oct 24, 2022 6:03 PM - edited Oct 24, 2022 6:07 PM
Tried following the tutorial for child themes, but getting errors when using the CLI.
When trying to fetch the fields.json file to a child theme:
[ERROR] The request for "@marketplace/xxxxxx/xxxxxxxxx/fields.json" in account XXXXXXXX was forbidden.
[ERROR] Failed fetch of file "@marketplace/xxxxxx/xxxxxxxxx/fields.json" to "/Users/me/local-development-folder/" from the Design Manager
When trying to fetch a template or module to a child theme:
[ERROR] The request for "@marketplace/xxxxxx/xxxxxxxxx/any-template" in account XXXXXXXX was forbidden. Downloading @marketplace assets is not allowed.
What could be the reason for CLI not cooperating?
Oct 24, 2022 10:52 PM
That article is a little over a year old so I imagine permissions for marketplace assets have changed since then. Allowing people to use CLI on marketplace assets would make it possible for people to download those assets to their computer and then upload them to other portals - which would essentially be stealing the assets since the assets are only licensed for the portal that downloaded it. Making it forbidden for users to use CLI on marketplace assets minimizes this risk.
If this answer solved your question, please mark it as the solution!
Need custom website/integration development or help optimizing HubSpot for your organization?
Schedule a consultation with us, an award-winning HubSpot Elite Partner.
Or check out our blog to get the latest in marketing, design, integration, and HubSpot knowledge.
Oct 25, 2022 9:42 PM
Thank you for your input. This is a good point and I agree that making it forbidden through the CLI minimizes risk in a way that it makes it less convenient for those sketchy activities. Definitely had seen instances of that in 3rd party theme marketplaces.
I encounter themes that either have bugs (sometimes no time to wait for fixes from theme developers, if they ever respond) or need additional features (such as adding custom fonts to theme settings or editing modules to suit our needs). Updating theme’s assets directly is neither good (theme updates could wipe it out) nor is it actually possible if purchased through HubSpot marketplace. Having the ability to download assets through the CLI to a child theme would simply help with efficiency.
If it’s true that the rules have changed since the article was out, would be great for HubSpot to confirm and/or update that article so that we know what the latest rules are.