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

P4 CLI Reference | 2025.1

# p4 graph tag (graph)

Tag a commit with a name.

For depots of type `graph` only.

## Syntax

    p4 graph tag -n //repo/name [-c comment] [-f] tag sha
    p4 graph tag -n //repo/name -d tag
    p4 graph tag [-n //repo/name] -l [-o] [-m max]

Syntax conventions

## Description

Create, update, delete, or list tags.

## Options

`-n` | Specify the repo.
`-f` | Force an update to an existing tag.
`-c` | Add a comment to a tag.
`-d` | Delete a tag.
`-l` | List the tags. If the repo-name is not entered, list tags in all repos.
`-o` | Detailed format.
``-m max`` | Displays at most `max` tags.

## Usage notes

Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required
--- | --- | ---
N/A | N/A | `list` protection and read to see the tag, write-ref to overwrite the tag, delete-ref to delete the tag, `create-ref` to create a tag see p4 grant-permission (graph)

Your search for returned results