P4ACCESSTOKEN
Specifies an access token (a JSON Web Token, or JWT) for built-in single sign-on (SSO) that the client uses for authentication instead of a ticket. To learn more, see Run commands with an access token in the P4 Server Administration Documentation.
Usage notes
| Used by Client? | Used by Server? | Command-Line Alternative | Can be set in P4CONFIG file? |
|---|---|---|---|
|
Yes |
No |
Yes |
Value if not explicitly set
None. If you do not set P4ACCESSTOKEN or the -T option, the client authenticates with a ticket.
Example
To run a command with an access token that another tool provides, set P4ACCESSTOKEN and then run the command:
export P4ACCESSTOKEN="$(get-token)" p4 info
The -T option takes precedence over P4ACCESSTOKEN.