Set Windows registry or macOS system

On Windows and macOS computers, you can store connection settings in the registry (or system settings) by using the p4 set command. For example:

p4 set P4PORT=ssl:tea.example.com:1667

There are two ways you can configure client settings in the registry:

  • p4 set setting=value: for the current local user.
  • p4 set -s setting=value: for all users on the local computer. Can be overridden by any registry settings made for the local user. Requires administrative privileges.

To see which settings are in effect, use the p4 set command without arguments.To learn more, see p4 set.