Hi everyone,
I’m using HubSpot Projects (CLI v8) with an App Function (endpoint) and trying to add a secret:
hs secrets add PRIVATE_APP_ACCESS_TOKEN
The CLI always returns:
Couldn’t execute the add secret because the access key is missing required scopes
Even though:
- I regenerated the Personal Access Key
- It includes developer.secrets.write, developer.secrets.read, developer.projects.read
- I re‑authenticated using hs account auth
- hs account list shows Auth Type: personalaccesskey
- Project builds and deploys fine (hs project upload works)
This seems specific to adding secrets — everything else works.
Environment
- OS: Windows
- HubSpot CLI: v8.x
- Project: Private App, Static Auth, App Function (endpoint)
Is this a known CLI caching/permissions issue on Windows, or is there an alternative supported way to inject secrets into Projects?
Thanks!

