H
HubSpot Agent CLI
Details
Authentication
HubSpot OAuth app client credentials 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 Development → Keys → Service keys, click Create service key, assign scopes, then copy the key from the key details page as described in Make API requests using a service key. Use it as Authorization: Bearer ... for supported REST API requests and as HUBSPOT_ACCESS_TOKEN for admin-mode Agent CLI usage.