Reputation: 507
How to set specific user name, remote server address using p4 command line, so that these values are reflected when viewing the information using p4 info
?
I know if I use the p4V client, and create the connection once, p4 info will automatically get updated. But I don't want to use p4V, and want to do it all from command Line.
Upvotes: 0
Views: 2220
Reputation: 507
This link lists all the Perforce environment variables: Environment Variables
Open the command line, and use the p4 set command p4 set
to configure the fields you want to set.
For example,
To Configure the USER NAME
p4 set P4USER="USER_NAME"
To Configure the remote server address
p4 set P4PORT="ADDRESS:PORT"
Upvotes: 2