pi label add

Command Help

> pi label add -h
Usage: pi label add [-h] [--template TEMPLATE | identifier]

Description: Create a new Label. Only admin users can create Labels. The
command puts the Label specification into a temporary file and invokes the
editor specified by the EDITOR environment variable. Saving the file adds the
Label.

Positional arguments:
  identifier            Name of the Label being created.

Optional arguments:
  --template TEMPLATE, -t TEMPLATE
                        Use the specified template to add the Label. The
                        template is an ASCII file that defines the Label. This
                        can be used to add Labels with a script and avoid the
                        interactive editor. To read the template from STDIN,
                        set TEMPLATE='-'.
  -h, --help            Show this help message and exit

Examples:
# Create Label top_level
  pi label add top_level

More information and documentation available at:
  https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.

Example

> pi label add newlabel
Successfully created Label 'newlabel'.