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:
| Flag | Description |
|---|---|
--token | Log in using an existing token |
After logging in, Porter automatically sets your default project and cluster if you have access to any. You can view these with
porter config.Credential storage
The location where credentials are persisted depends on the login method configured viaporter config set-login-method:
v1(default): A long-lived Porter JWT is written toporter.yaml.v2: Access and refresh tokens are stored in your OS credential store (macOS Keychain, Linux Secret Service, or Windows Credential Manager) and refreshed automatically. Switching tov2and logging in migrates any existing plaintext tokens out ofporter.yaml.

