Skip to content

login, logout, auth commands - oauth vs api key auth#16

Merged
masnwilliams merged 4 commits intomainfrom
mason/cli-oauth-docs
Jul 26, 2025
Merged

login, logout, auth commands - oauth vs api key auth#16
masnwilliams merged 4 commits intomainfrom
mason/cli-oauth-docs

Conversation

@masnwilliams
Copy link
Copy Markdown
Contributor

@masnwilliams masnwilliams commented Jul 24, 2025

TL;DR

Updated CLI documentation to introduce new login, logout, and auth commands, prioritizing OAuth-based authentication as the recommended method.

Why we made these changes

To provide clear, up-to-date documentation for Kernel CLI authentication, guiding users to the new, recommended OAuth flow while still supporting API keys.

What changed?

  • quickstart.mdx: Prioritized kernel login (OAuth) as the primary authentication method; clarified API key usage.
  • reference/api-keys.mdx: Renamed, expanded on both OAuth and API key methods, and improved API key creation steps.
  • reference/cli.mdx: Reorganized CLI docs, added detailed sections for kernel login, logout, and auth commands, including an 'Authentication Flow' guide.

Validation

  • Verified all new commands (login, logout, auth) are accurately documented.
  • Confirmed OAuth flow is clearly explained and recommended.
  • Ensured API key instructions are correct and accessible.
  • Checked overall clarity and consistency across documentation files.

Copy link
Copy Markdown
Contributor

@mesa-dot-dev mesa-dot-dev Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What Changed

This PR introduces a significant update to our authentication documentation, shifting the primary recommendation from API keys to an OAuth 2.0 flow for the CLI. Key changes include:

  • Introducing and documenting new CLI commands: kernel login, kernel logout, and kernel auth.
  • Restructuring the quickstart.mdx guide to prioritize the new kernel login flow.
  • Updating the reference/api-keys.mdx and reference/cli.mdx pages to provide comprehensive details on both OAuth and API key authentication methods, including a new 'Authentication Flow' section.

Risks / Concerns

This is a well-executed and thorough documentation update. The only minor point raised during the review was a suggestion to improve the link text in quickstart.mdx for better clarity. Overall, the changes are clear, well-structured, and carry minimal risk. Great work on improving the user authentication experience!

3 files reviewed | 1 comments | Review on Mesa | Edit Reviewer Settings

Comment thread quickstart.mdx Outdated
@masnwilliams masnwilliams requested a review from juecd July 24, 2025 21:48
Copy link
Copy Markdown
Contributor

@juecd juecd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this overall! Some notes for readability and how to position Oauth vs. API Keys.

Comment thread quickstart.mdx Outdated
Comment thread quickstart.mdx
Comment thread reference/api-keys.mdx Outdated
Comment thread reference/api-keys.mdx Outdated
Comment thread reference/cli.mdx Outdated
|---------|-------------|
| `kernel help [command]` | Displays help information about Kernel commands |

## Authentication Flow
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this section - there's a balance in writing docs of conveying enough info without overloading a page, and I think developers know to use a CLI's -h for more info.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had this thought on my walk to lunch: this context would be helpful for an LLM. What if we hid it behind a toggle called like "Notes for LLMs"? https://mintlify.com/docs/components/expandables

This could be an interesting docs paradigm that starts emerging.. I feel an interesting tweet coming haha

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I think we could prob let o3 or something do a pass over the current docs, given some info about making our docs more llm-friendly, and then let it try to update things. Ill add this to linear

@masnwilliams masnwilliams requested a review from juecd July 26, 2025 16:19
Copy link
Copy Markdown
Contributor

@juecd juecd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@masnwilliams masnwilliams merged commit 59d8b9d into main Jul 26, 2025
1 check passed
@masnwilliams masnwilliams deleted the mason/cli-oauth-docs branch July 26, 2025 16:52
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.

2 participants