p4 logout
Log out a user of the Helix Core Server by removing a ticket on the user’s workstation, or by invalidating the user's ticket on the server.
Syntax
p4 [g-opts] logout [-a | -h ipaddress] [-2] [username]
Description
Log out a user of the Helix Core Server by removing a ticket on the user’s workstation, or by invalidating the user's ticket on the server. To log out a user
other than yourself, include the username option, which requires the super
access level.
Options
|
Log out from all workstations that are using the ticket by invalidating the ticket on
the server. If combined with username, applies solely to workstations of the specified user. You must have the |
username
|
Log out the specified user of the ticket. Requires the super access level. |
-h ipaddress
|
Invalidate the user's ticket for the specified IP address. |
-2
|
Invalidate the user's multi factor authentication. See p4 login2. |
|
See Global options. |
Usage notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
No |
No |
available to an operator user and a service user
|
Tickets are stored in the file specified by the P4TICKETS
environment
variable. If this variable is not set, tickets are stored in
%USERPROFILE%\p4tickets.txt
on Windows, and in
$HOME/.p4tickets
on other operating systems.
Examples
|
Log out the user that issues this command. |
|
Log out the specified user by invalidating the ticket issued for the IP address of this machine. |
|
Log out the specified user by invalidating all tickets (including those created using |
|
Log out the specified user from the specified IP address. |
Related commands
To start a login session (to obtain a ticket) |
|
To display tickets |