pi group add

Command Help

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

Description: Create a new Group. The command puts the Group specification into
a temporary file and invokes the editor specified by the EDITOR environment
variable. Saving the file adds the Group.

Positional arguments:
  identifier            The name of the Group being created.

Optional arguments:
  --template TEMPLATE, -t TEMPLATE
                        Use the specified template to add the Group. The
                        template is an ASCII file that defines the Group. This
                        can be used to add Groups 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:
# Invoke the editor to create Group staff.
  pi group add staff

# Create Group using the staff.info template.
  pi group add -t staff.info

# Create Group using redirected STDOUT from script new_group.py as template.
  new_group.py | pi group add --template -

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

Example

> pi group add newgrp
Successfully created Group 'newgrp'.