Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2025.2

# p4 keys

Display list of known key/value pairs.

## Syntax

    p4 [g-opts] keys [-e nameFilter] [-m max]

Syntax and naming conventions

## Description

The P4 Server holds a user-accessible store of key/value pairs. These user-managed keys are stored in a table named `db.nameval`.

If the `dm.keys.hide` configurable is set to 1 or 2, `admin` access is required.

p4 keys provides the current list of keys, along with their values.

## Options

Option | Description
--- | ---
`-e nameFilter` | List keys with a name that matches the `nameFilter` pattern, for example `p4 keys -e 'mycounter-*'`.
`-m max` | List only the first `max` keys.
`g-opts` | See Global options.

## Usage notes

Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required
--- | --- | ---
N/A | N/A | `list` `admin` if `dm.keys.hide` is set to `1` or `2`

The command returns no output if there is no object to report on.

## Related commands

To view or change the value of a key | `p4 key`

Your search for returned results