Skip to main content
porter auth contains commands for authenticating with Porter.

porter auth login

Authenticate with your Porter account. By default, this opens your browser to complete authentication. Usage:
porter auth login [flags]
Options:
FlagDescription
--tokenLog in using an existing token
porter auth login
After logging in, Porter automatically sets your default project and cluster if you have access to any. You can view these with porter config.

porter auth logout

Log out from Porter. This revokes your current session on the Porter API and clears your local credentials, so any cached access or refresh tokens stored on disk can no longer be used. Usage:
porter auth logout
Example:
porter auth logout
After logging out, you’ll need to run porter auth login again before using other commands.
Use porter auth logout on shared or untrusted machines before stepping away. Simply deleting the local config file leaves your session valid on the server — only porter auth logout revokes it.