Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2026.1

# 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:

1. Set the P4PORT environment variable to the server address.

   For example, if the server were running as `server1` on port 1666, you would run the following:

   - UNIX and macOS: export P4PORT=server1:1666

   - Windows: p4 set P4PORT=server1:1666

2. Run the `p4 login` command:

       p4 login

3. When prompted, enter the password and press Enter.

   You are logged in to the P4 Server.

Your search for returned results