Skip to content

docs: Update CLI docs to match spec#93

Open
Rice (invisicat) wants to merge 3 commits into
mainfrom
update/cli-docs
Open

docs: Update CLI docs to match spec#93
Rice (invisicat) wants to merge 3 commits into
mainfrom
update/cli-docs

Conversation

@invisicat

@invisicat Rice (invisicat) commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Changes

Media

  • Add terminal screenshots (.avif) and demo videos (.webm) across the CLI pages, wrapped in <Frame>:
    • Authenticationphoton login (CLI + browser approval), photon whoami
    • Billingbilling show on free vs. paid, plus a checkout demo
    • Overview — a quick end-to-end tour video
    • Projectsprojects ls, projects show, create wizard, secret rotation, and upgrade demos
    • Spectrumspectrum lines ls

Accuracy fixes

  • projects create: corrected --location value (United States, the default) and documented the real flags (-n/--name, -l/--location, --spectrum/--no-spectrum, --template, --observability).
  • whoami: now described as printing name, email, and backend (was user ID/email/name).
  • profile update: replaced the nonexistent --display-name example with real developer/org flags and a pointer to --help.
  • spectrum profile update: --display-name--first-name/--last-name.

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Documentation

    • Enhanced CLI documentation with visual guides including screenshots and videos for authentication, billing, projects, and spectrum workflows
    • Updated command examples for profile updates and project creation with expanded flag documentation
    • Removed Homebrew installation method
  • Chores

    • Updated .gitignore to exclude macOS system files

Copilot AI review requested due to automatic review settings June 21, 2026 01:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Documentation-only update that removes the Homebrew CLI installation section, corrects photon whoami output field descriptions across two pages, updates profile update and Spectrum flag examples, expands the projects flags table, and embeds new screenshots and demo videos across authentication, billing, overview, projects, and spectrum pages. One .DS_Store entry is added to .gitignore.

Changes

CLI Documentation Updates

Layer / File(s) Summary
Textual and command content corrections
cli/installation.mdx, cli/profile-and-utilities.mdx, cli/spectrum.mdx, cli/projects.mdx, .gitignore
Removes the commented-out Homebrew install block; replaces the --display-name profile update example with separate developer and organization examples; corrects photon whoami output fields to name/email/backend; updates the Spectrum profile update flags to --first-name/--last-name; changes the projects --location example value and expands the flags table to include --name, --spectrum/--no-spectrum, --template, and --observability; adds .DS_Store to .gitignore.
Screenshot and video frame additions
cli/authentication.mdx, cli/billing.mdx, cli/overview.mdx, cli/projects.mdx, cli/spectrum.mdx
Adds <Frame> blocks with screenshots for device-code login, browser approval, whoami terminal output, free-tier and paid-plan subscription views, photon projects ls listing, and Spectrum lines listing; adds demo videos for checkout flow, overview tour, project create wizard, regenerate-secret, and project upgrade picker.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 Hop hop, the docs look bright and neat,
With screenshots and videos oh so sweet,
Homebrew removed, the flags set right,
.DS_Store hidden, out of sight,
The CLI guide is a joyful treat! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The pull request title 'docs: Update CLI docs to match spec' is vague and generic, using non-descriptive language that doesn't convey the meaningful scope or nature of the documentation updates. Consider a more descriptive title that reflects the key changes, such as 'docs: Add visual assets and correct CLI command flags' or 'docs: Update CLI docs with screenshots, videos, and corrected command specs'.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update/cli-docs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mintlify

mintlify Bot commented Jun 21, 2026

Copy link
Copy Markdown

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

Project Status Preview Updated (UTC)
Photon 🟡 Building Jun 21, 2026, 1:26 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@invisicat Rice (invisicat) changed the title docs: add CLI screenshots/demos and fix flag inconsistencies docs: Update CLI docs to match spec Jun 21, 2026
@invisicat Rice (invisicat) self-assigned this Jun 21, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@cli/profile-and-utilities.mdx`:
- Line 80: The whoami command description uses passive voice and is inconsistent
with the style in cli/authentication.mdx. Update the description to use active
voice and second person perspective. Replace the phrase "Returns an error with a
login hint if your session has expired" with "you'll see a hint to re-run
`photon login`" and ensure the command name is properly formatted with backticks
to align with the documentation guidelines used in cli/authentication.mdx.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2e1feb7d-6898-4473-b9ef-485a8a23fe9e

📥 Commits

Reviewing files that changed from the base of the PR and between 6999ae5 and 6568be6.

⛔ Files ignored due to path filters (5)
  • images/cli/billing/demo-billing.webm is excluded by !**/*.webm
  • images/cli/billing/demo-regenerate-secret.webm is excluded by !**/*.webm
  • images/cli/billing/demo-upgrade.webm is excluded by !**/*.webm
  • images/cli/overview/demo-overview.webm is excluded by !**/*.webm
  • images/cli/projects/demo-create.webm is excluded by !**/*.webm
📒 Files selected for processing (16)
  • .gitignore
  • cli/authentication.mdx
  • cli/billing.mdx
  • cli/installation.mdx
  • cli/overview.mdx
  • cli/profile-and-utilities.mdx
  • cli/projects.mdx
  • cli/spectrum.mdx
  • images/cli/authentication/login-cli.avif
  • images/cli/authentication/login-web.avif
  • images/cli/authentication/whoami-cli.avif
  • images/cli/billing/free.avif
  • images/cli/billing/paid.avif
  • images/cli/projects/projects-ls.avif
  • images/cli/projects/projects-show.avif
  • images/cli/spectrum/spectrum-lines.avif
💤 Files with no reviewable changes (1)
  • cli/installation.mdx
📜 Review details
🧰 Additional context used
📓 Path-based instructions (1)
**/*.mdx

📄 CodeRabbit inference engine (AGENTS.md)

**/*.mdx: Pages should be written as MDX files with YAML frontmatter
Use active voice and second person ("you") in documentation
Keep sentences concise with one idea per sentence in documentation
Use sentence case for headings in documentation
Bold UI elements in documentation (e.g., Click Settings)
Use code formatting for file names, commands, paths, and code references in documentation

Files:

  • cli/spectrum.mdx
  • cli/overview.mdx
  • cli/authentication.mdx
  • cli/billing.mdx
  • cli/profile-and-utilities.mdx
  • cli/projects.mdx
🔇 Additional comments (11)
cli/spectrum.mdx (2)

19-19: LGTM!


69-72: LGTM!

cli/projects.mdx (3)

40-48: LGTM!


50-56: LGTM!


17-20: LGTM!

Also applies to: 30-32, 92-95, 133-136

.gitignore (1)

3-3: LGTM!

cli/authentication.mdx (2)

16-23: LGTM!


36-40: ⚡ Quick win

Cross-file inconsistency in whoami description.

The session-expiry message here ("you'll see a hint to re-run photon login") differs from the version in cli/profile-and-utilities.mdx line 80 ("Returns an error with a login hint"). The version here uses more active voice and second person, which aligns better with the documentation guidelines. Recommend updating profile-and-utilities.mdx to match this phrasing for consistency.

Source: Coding guidelines

cli/billing.mdx (2)

27-34: LGTM!


51-54: ⚡ Quick win

Verify video element HTML syntax.

The <video> element is self-closing: <video src="..." ... />. Standard HTML video elements should use opening and closing tags: <video ...></video>. Verify that your MDX processor supports self-closing video syntax; if not, this may cause rendering issues.

cli/overview.mdx (1)

36-39: ⚡ Quick win

Verify video element HTML syntax (self-closing tag).

Like the video elements in cli/billing.mdx, this uses self-closing syntax: <video ... />. Confirm this is supported by your MDX setup; standard HTML requires opening and closing tags: <video ...></video>.

```

Prints your user ID, email, and name. Returns an error with a login hint if your session has expired.
Prints your name, email, and the backend you're signed in to. Returns an error with a login hint if your session has expired.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Extract and compare whoami descriptions from both files
echo "=== profile-and-utilities.mdx (line 80) ==="
sed -n '80p' cli/profile-and-utilities.mdx

echo -e "\n=== authentication.mdx (line 36) ==="
sed -n '36p' cli/authentication.mdx

Repository: photon-hq/docs

Length of output: 400


Update whoami description to match active voice style in cli/authentication.mdx.

Line 80 currently reads: "Prints your name, email, and the backend you're signed in to. Returns an error with a login hint if your session has expired."

This conflicts with the cli/authentication.mdx documentation for the same command, which uses: "If the session has expired, you'll see a hint to re-run photon login."

Align line 80 to use active voice and second person, and include code formatting for the suggested action. Change "Returns an error with a login hint" to something like "you'll see a hint to re-run photon login" to follow the documentation guidelines consistently.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@cli/profile-and-utilities.mdx` at line 80, The whoami command description
uses passive voice and is inconsistent with the style in cli/authentication.mdx.
Update the description to use active voice and second person perspective.
Replace the phrase "Returns an error with a login hint if your session has
expired" with "you'll see a hint to re-run `photon login`" and ensure the
command name is properly formatted with backticks to align with the
documentation guidelines used in cli/authentication.mdx.

Source: Coding guidelines

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