Log in to the P4 Server
Typically, your administrator starts up a P4 Server that you can use. If you need to start up your own P4 Server, see Start a P4 Server (Linux and macOS).
Before you continue, ensure you have a user ID, a password, and a server address. These should be provided by your admin.
To log in to the P4 Server:
-
Set the P4PORT environment variable to the server address.
For example, if the server were running as
server1on port 1666, you would run the following:-
UNIX and macOS: export P4PORT=server1:1666
-
Windows: p4 set P4PORT=server1:1666
-
-
Run the
p4 logincommand:p4 login
-
When prompted, enter the password and press Enter.
You are logged in to the P4 Server.