Skip to content

polygraph auth

Authentication and environment selection

Terminal window
polygraph auth
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI

Authenticate with Polygraph

Terminal window
polygraph auth login
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--tokenstringSet a pre-provisioned PAT directly (headless mode)
--insecure-storagebooleanStore the PAT in the legacy 0600 INI file when no OS keychain is available

Remove stored credentials for the effective URL

Terminal window
polygraph auth logout
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI

Switch the active Polygraph environment. Runs interactively by default; pass --url <url> to set the active environment non-interactively. Use polygraph auth list to see configured environments.

Terminal window
polygraph auth select
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI
--urlstringSwitch the active Polygraph environment

List configured Polygraph environments

Terminal window
polygraph auth list
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI

Show current auth status + account

Terminal window
polygraph auth whoami
FlagTypeDefaultDescription
--help, -hbooleanShow help for the current command
--versionbooleanShow the version number for the CLI