HSX_E_CREDENTIAL_SCOPE

CLI credential cannot manage account credentials.

What this error means

Connecting HubSpot or Cloudflare credentials requires an admin-scope CLI credential; retrying the same command cannot succeed.

When this error stops a command, hs-x exits with code 10. With --json, the failure is reported as a structured error whose code field is HSX_E_CREDENTIAL_SCOPE — stable to match on in scripts and agents.

Likely causes

  • The CLI is using a legacy deploy- or read-scope token issued before new tokens became ADMIN-only
  • You are a member (not owner/admin) of the HS-X account and cannot receive an ADMIN CLI credential

How to fix it

  • Run hs-x login again as an owner or admin — new CLI credentials are ADMIN
  • Or create a new token in the dashboard (API tokens page) and log in with it
  • Members: ask an account owner or admin to connect the credential

Still stuck? Re-run the command with --debug for the wire-level detail, or hs-x doctor to check accounts, link state, and connectivity in one pass.