Skip to content

new token

Terminal window
holocron new token <provider> [value]

Verifies a token with its provider’s plugin and stores it in the OS credential store (macOS Keychain, Windows Credential Manager, or libsecret on Linux). Every other command picks the stored token up automatically.

Argument Default Description
<provider> (required) Provider name, e.g. github.admin, vercel, doppler (see the table below)
[value] — The token. When omitted it is read from the environment (below)

If value is omitted, the CLI reads, in order:

  1. HOLOCRON_<PROVIDER>_TOKEN (uppercased, dots replaced with underscores)
  2. <PROVIDER>_TOKEN, the vendor-native variable

The command loads the provider’s plugin (@theholocron/holocron-plugin-<provider>) and calls its verifyToken before storing. A token the provider refuses is not stored, and the reason is printed.

holocron new token 1password stores nothing: the op CLI manages its own sign-in, so the command prints the plugin’s AUTH_HINT instead.

Terminal window
holocron new token github.admin ghp_xxx
holocron new token vercel v_xxx
# Read from the environment
HOLOCRON_GITHUB_ADMIN_TOKEN=ghp_xxx holocron new token github.admin
Provider name Plugin
github.admin @theholocron/holocron-plugin-github (admin token)
github.read @theholocron/holocron-plugin-github (read token)
github.issues @theholocron/holocron-plugin-github (issues token)
github.pulls @theholocron/holocron-plugin-github (pull requests token)
github.sync @theholocron/holocron-plugin-github (sync token)
github.release @theholocron/holocron-plugin-github (release token)
vercel @theholocron/holocron-plugin-vercel
doppler @theholocron/holocron-plugin-doppler
infisical @theholocron/holocron-plugin-infisical
clerk @theholocron/holocron-plugin-clerk
neon @theholocron/holocron-plugin-neon
npm @theholocron/holocron-plugin-npm
codecov @theholocron/holocron-plugin-codecov
postman @theholocron/holocron-plugin-postman

See the Token Reference for the environment variable names and the scopes each token needs. Related: check token, remove token, list tokens.