pi library
Commands related to Libraries. The library subcommand is used to add modify and report on Library objects in the PiServer database. Libraries are collections of IPs. Every IP must belong to exactly one Library. Only members of the admin group can create or delete Libraries.
Command Overview Help
> pi library -h
Usage: pi library [-h] SUBCOMMAND ...
Description: Commands related to Libraries. These subcommands are used to add,
edit, delete and list information about Libraries.
Optional arguments:
-h, --help Show this help message and exit
Available sub-commands:
SUBCOMMAND
add Create a new Library.
attribute (attr) Commands related to Library Attributes.
delete (del, remove, rm)
Delete an existing Library.
edit Edit an existing Library.
list (ls) List all matching Libraries.
More information and documentation available at:
https://help.perforce.com/methodics/
Copyright © 2010-2025 Perforce, Inc.
LIBRARY Template
[LIBRARY] # Name is required name = newlib # Vendor is optional vendor = # Description is optional description = # Icon is optional icon = # Hooks are optional commands executed when certain events occur. These # variables can be used as arguments to the hooks : # $IP : IP name # $LIB : Library name # $VER : Version number # For pre-release hook, the old version number. For post-release # hook, the new version number. # $LINE : Line name # $IPID : Complete IP identifier (shorthand for $LIB.$IP@$VER.$LINE) # $IP_DIR : IP directory in the workspace # $ARGS : Any arguments passed to the pi command with the --args argument # For instance, pi release lib.ip --args [arguments_for_hook] [HOOKS] pre_release = post_release = post_load = post_update = pre_integrate = post_integrate =