Configure the client process
This guide refers to client settings using environment variables. For
example, set P4CLIENT
.
You can specify settings such as port, user, and workspace names by using any of the following:
- On the command line, using options.
- In the configuration file(s) specified by a P4CONFIG environment variable, where each config file can be specific to a workspace.
- In the P4ENVIRO configuration file, which is for variables that remain constant for all the workspaces on a given computer.
- User environment variables.
- System environment variables (on Windows, system-wide environment variables are not necessarily the same thing as user environment variables)
- In the user registry or settings set by issuing
the
p4 set
command. - In the system registry or system settings set by
issuing the
p4 set -s
command.
where (1) the command line overrides (2) P4CONFIG, and (2) P4CONFIG overrides (3) P4ENVIRO, and so on.
The output of p4 set
lists the values of the variables (and if a given variable was set by config
, enviro
, set
, or set -s
).
To configure your computer to connect to the Helix Core Server, you specify the name of the host where the server is running, and
the port on which it is listening. The default host is
perforce
and default port is 1666. If the server is running
on your own computer, specify localhost
as the host name. If
the server is running on port 1666, you can omit the port
specification.
You can specify these settings as described in the sections below. For details about working offline (without a connection to a Helix Core Server), see Work offline.
Also in this section: