perforce

Setup Perforce login details in Windows cmd

Introduction#

After installing perforce and setup your workspace through p4v, you could set up your workspace in Windows cmd.

Setup Perforce login details in Windows cmd

After installing perforce and setup your workspace through p4v, you could set up your workspace in Windows cmd.

The command you need is:

p4 set

Set your server

p4 set P4PORT= xx.xxx.xx.xxx:xxxxx

Set your user name

p4 set P4USER=username

Set your password

In terms of setting your password, you could just set your password in plain text by the following command:

p4 set P4PASSWD=yourpasswd

If you want to secure your password, you could download the MD5 encryptor to encrypt your password.

p4 set P4PASSWD=hashedpasswd

Set you client (workspace)

In order to select your workspace, you could use the following command:

p4 set P4CLIENT=nameofworkspace

The name of your workspace could look like: username_hostmachinename_numbers.

Set your ignore file

You can set up your ignore file so that when adding your project to perforce, some files (building results) could be automatically ignored.

p4 set P4IGNORE= filepath

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow