Skip to content

Retrieve Credentials

The dipole credentials get command retrieves a credential from Dipole Cloud using your platform’s OIDC token for attestation.

Terminal window
dipole credentials get \
--client-id dipole:ap-south-1:acme:identity:github_idtoken:uuid \
--server-workload-host api.stripe.com \
--server-workload-port 443 \
--id-token $GITHUB_OIDC_TOKEN

By default, the CLI outputs shell export format:

Terminal window
export TOKEN='sk_live_abc123...'

Use with eval:

Terminal window
eval $(dipole credentials get --client-id ... --id-token ...)
Flag Description
--client-id Edge SDK Client ID (identifies tenant + Trust Provider)
--server-workload-host Target service hostname
--server-workload-port Target service port
--id-token OIDC token from platform
--output-format sh-export, sh-env, powershell-env
--resource-set-id Scope to specific Resource Set