P

Pup CLI

CLI discovered

Details
Command
pup
Docs
https://docs.datadoghq.com/cli/
Authentication
Pup CLI OAuth login oauth2 discovered $ pup auth login

Acquired by the CLI — running pup auth login opens the auth flow and stores the credential.

Datadog access token for Pup bearer discovered
env DD_ACCESS_TOKEN

Use Pup's documented bearer-token mode by supplying a DD_ACCESS_TOKEN bearer token for stateless or headless authentication, as described in the Pup README authentication docs. The Datadog CLI docs name this variable explicitly as an alternative to interactive OAuth login.

Datadog API key env DD_API_KEY + Datadog application key env DD_APP_KEY discovered
Datadog API key api_key Get key ↗

In Datadog, go to Organization Settings > API Keys, click New Key, enter a name, and create the key. Datadog documents that API keys are organization-wide and are required by the Agent to submit metrics and events; many API calls also use them together with an application key.

Datadog application key api_key Get key ↗

In Datadog, open Organization Settings > Application Keys and create an application key. Datadog states application keys are used together with your organization's API key to access Datadog's programmatic API. Scope the key to the minimum permissions needed; some APIs such as Actions APIs also require enabling Actions API access on the application key.