H
HubSpot Agent CLI
Details
Authentication
HubSpot Agent CLI OAuth login oauth2 discovered
$ hubspot auth login Acquired by the CLI — running hubspot auth login opens the auth flow and stores the credential.
env HUBSPOT_ACCESS_TOKEN In your HubSpot account, go to Service keys, create a service key under Development → Keys → Service keys, assign the needed scopes, then copy the key. Use it as Authorization: Bearer ... for REST API requests; in the Agent CLI's admin mode, set it as HUBSPOT_ACCESS_TOKEN.