---
title: pingcli logout
description: Logout user from the CLI
component: pingcli
page_id: pingcli:command_reference:pingcli_logout
canonical_url: https://developer.pingidentity.com/pingcli/command_reference/pingcli_logout.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 logout

Logout user from the CLI

## Synopsis

Logout user from the CLI by clearing stored credentials. Credentials are cleared from both keychain and file storage. By default, uses the authentication method configured in the active profile. You can specify a different authentication method using the grant type flags.

```
pingcli logout [flags]
```

## Options

```
  -a, --authorization-code   Use authorization code flow
  -h, --help                 help for logout
  -c, --client-credentials   Use client credentials flow
  -d, --device-code          Use device authorization flow
```

## 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.
