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 setSet your server
p4 set P4PORT= xx.xxx.xx.xxx:xxxxxSet your user name
p4 set P4USER=usernameSet your password
In terms of setting your password, you could just set your password in plain text by the following command:
p4 set P4PASSWD=yourpasswdIf you want to secure your password, you could download the MD5 encryptor to encrypt your password.
p4 set P4PASSWD=hashedpasswdSet you client (workspace)
In order to select your workspace, you could use the following command:
p4 set P4CLIENT=nameofworkspaceThe 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