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

P4 CLI Documentation | 2025.2

# p4 show-ref (graph)

Display reference values.

For depots of type `graph` only.

## Syntax

    p4 graph show-ref [-n //repo/name] [-a -u user -m max -t ref-type ] [[-e|-E] nameFilter]

Syntax and naming conventions

## Description

The graph show-ref command displays reference values, which is similar to the Git command git-show-ref.

## Options

Option | Description
--- | ---
`-n` | Applies to the repo with the specified name. If a repo name is specified, you have to have `read` permission for that repo. Otherwise you must be a `super` user.
`-a` | Displays all references from all repos.
`-u` | Displays only references readable by the user argument.
`-m` | Specifies the maximum references to display.
`-e nameFilter` | Lists references with a name that matches the nameFilter pattern using the server's normal case-sensitivity rules. For example: -e 'refs/heads/dev...'
`-E nameFilter` | Lists references with a name that matches the nameFilter pattern with case-insensitive matching, even on a case-sensitive server. For example: -E 'Refs/HEADS/Dev...' gets the same results as -e 'refs/heads/dev...'

## Usage notes

Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required
--- | --- | ---
N/A | N/A | `super`

Your search for returned results