p4 license

Synopsis

Update or display the license file.

Syntax

p4 [g-opts] license -o
p4 [g-opts] license -i
p4 [g-opts] license -u

Description

The p4 license command allows Perforce superusers to update or display the Perforce license file. This command requires that there is already a valid license file in the Perforce server root directory.

Use p4 license to add licensed users to a Perforce service without having to shut down the service and manually copy the license file into the server root.

Most new license files obtained from Perforce can be installed with p4 license, (or by copying over the existing license file) except for when the service’s IP address or port has changed. If either the server IP address or port number has changed, restart the service with p4 admin restart.

For releases 2016.1 and later, without a valid license, the versioning service limits itself to either 5 users and 20 client workspaces (and unlimited files), or to an unlimited number of users and workspaces (but with a limit of 1,000 files).

Versions of the server prior to 2016.1 will continue to support the 20/20 usage allowance: 20 users and 20 client workspaces (and unlimited files), or an unlimited number of users and workspaces (but with a limit of 1,000 files)

Options

-o

Display the current license file on the standard output.

-i

Read in a new license file from the standard input.

-u

Report license limits and show how many entities (users or files) are in use with respect to these limits.

g-opts

See “Global Options”.

Usage Notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required

N/A

N/A

super
(admin for -u option)

Examples

p4 license -o

Display the current license file on the standard output.

p4 license -i

Read in a new license file from the standard input.