pi alias lock
By default only admin users can lock an alias. This behavior can be modified using Server Side Hooks.
Command Help
> pi alias lock -h Usage: pi alias lock [-h] alias Description: Lock an Alias. A locked Alias cannot be added to or removed from any IP Version in the Line. This ensures that the current Version the Alias refers to will not change, unless the Alias is unlocked first. Positional arguments: alias The full name of the Alias. Optional arguments: -h, --help Show this help message and exit Examples: # Lock the Alias ALIAS in the lib.ip@.TRUNK line. pi alias lock lib.ip@ALIAS.TRUNK More information and documentation available at: https://help.perforce.com/methodics/ Copyright © 2010-2025 Perforce, Inc.
Example
> pi alias lock tutorial.tutorial@MYALIAS.TRUNK Successfully locked Alias 'tutorial.tutorial@MYALIAS.TRUNK'.