---
title: pingcli login
description: Authenticate a supported provider
component: pingcli
page_id: pingcli:command_reference:pingcli_login
canonical_url: https://developer.pingidentity.com/pingcli/command_reference/pingcli_login.html
revdate: March 5, 2026
section_ids:
  synopsis: Synopsis
  options: Options
  options-inherited-from-parent-commands: Options inherited from parent commands
  more-information: More information
---

# pingcli login

Authenticate a supported provider

## Synopsis

Authenticate the CLI to a supported provider, using one of the supported authorization grant types.

```
pingcli login [flags]
```

## Options

```
  -a, --authorization-code    Use authorization code flow
  -h, --help                  help for login
  -c, --client-credentials    Use client credentials flow
  -d, --device-code           Use device authorization flow
  -p, --provider string       Authentication provider to use. Defaults to 'pingone' if not specified.
      --storage-type string   Auth token storage (default: secure_local)   secure_local  - Use OS keychain (default)   file_system   - Store tokens in ~/.pingcli/credentials   none          - Do not persist tokens
```

## Options inherited from parent commands

```
  -C, --config string          The relative or full path to a custom Ping CLI configuration file. (default $HOME/.pingcli/config.yaml)
  -D, --detailed-exitcode      Enable detailed exit code output. (default false) 0 - pingcli command succeeded with no errors or warnings. 1 - pingcli command failed with errors. 2 - pingcli command succeeded with warnings.
  -O, --output-format string   Specify the console output format. (default text) Options are: json, text.
  -P, --profile string         The name of a configuration profile to use.
      --no-color               Disable text output in color. (default false)
```

## More information

* [pingcli](pingcli.html) - A CLI tool for managing the configuration of Ping Identity products.
