Skip to content

docs: document v2 CLI login flow and set-login-method#288

Open
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/4369f078
Open

docs: document v2 CLI login flow and set-login-method#288
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/4369f078

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 26, 2026

Summary

Documents the new v2 CLI login flow that authenticates porter commands with short-lived session tokens issued through Porter SSO, alongside the existing long-lived token flow.

Changes

  • Added a "Login methods" section to porter auth login explaining the difference between v1 (long-lived token, default) and v2 (short-lived session token) and when to use each.
  • Documented the new porter config set-login-method command, including the v1 / v2 options and guidance for selecting between developer and CI/CD environments.

Context

The triggering PR adds backend support for a new CLI login flow: the CLI can now authenticate API requests with short-lived session tokens (refreshed automatically) instead of the existing long-lived Porter token. Users opt in per machine via porter config set-login-method v2 and then run porter auth login to sign in through SSO. The v1 flow remains the default and is unchanged.

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 26, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
porter 🟢 Ready View Preview May 26, 2026, 7:05 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant