Skip to content

Quickstart: align agent notes with guest-first CLI behavior - #7728

Merged
iamnamananand996 merged 2 commits into
mainfrom
devin/1793643846-quickstart-guest-align
Nov 3, 2026
Merged

iamnamananand996 merged 2 commits into
mainfrom
devin/1793643846-quickstart-guest-align

Conversation

@nerminamiller-postman

@nerminamiller-postman nerminamiller-postman commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This updates the Docs quickstart to match CLI 5.191.0 (fern-api/fern#18741). The changes are based on what a headless agent did when it followed the page (Claude Code with Sonnet and Opus, no TTY, no login). The PR targets main on its own and overlaps with #7718 in the publish-step agent notes, so whichever PR merges second needs a small conflict resolved.

  • From-scratch agent note: Removes the claim that "fern init --docs is interactive". The note now says to pass --organization when the user has an account. Without an account, run init bare: in a non-interactive shell it names the org after the directory, and --guest ignores the org anyway. It also says not to invent an org for a logged-in publish. In test runs, 3 of 4 agents made up a placeholder org.
  • What init creates: The page said init creates only docs.yml and fern.config.json. It also writes .gitignore and pages/welcome.mdx, already added to the navigation. The agent note and the visible file tree are fixed. The note also mentions the next-step command that init now prints.
  • Starter template: Adds an agent note to run fern upgrade before --guest. The template pins CLI 5.35.4, so the first --guest attempt fails.
  • Configure your organization: Adds that guest publishing ignores both the org and the URL.
  • Publish step agent notes: Adds a "No account" note telling agents to use fern generate --docs --guest, return the drop URL and claim link, and warn that the site is deleted unless it's claimed. The "Interactive confirmation" note now says unauthenticated non-interactive runs fail on the missing account before the menu.
  • https:// pitfall: Says the prefix is optional (init writes it and fern check accepts it), instead of telling agents to strip it.
  • FAQ: Mentions --guest.

The "No account" note doesn't link to the --guest reference, because that anchor is added in #7718. Add the link once #7718 merges.

Not verified end to end: every fern generate --docs --guest call during testing returned Could not start a guest session (Venus 500), so the drop URL and claim output weren't seen.

Link to Devin session: https://app.devin.ai/sessions/8bbe6faae7ed4561b2e9233214a68354
Open in Devin Desktop: https://app.devin.ai/desktop/session/8bbe6faae7ed4561b2e9233214a68354?variant=devin
Requested by: @nerminamiller-postman

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Use only alphanumeric characters, hyphens, and underscores for both values.
</Note>

Publishing as a guest ignores both values, so you can set them later, before you claim the site or publish with a login.

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.

📝 [vale] <Microsoft.OxfordComma> reported by reviewdog 🐶
Use the Oxford comma in ', before you claim the site or publish with a login.'.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/1793643846-quickstart-guest-align branch from 412b773 to 73748d3 Compare November 2, 2026 18:40
@devin-ai-integration
devin-ai-integration Bot changed the base branch from devin/1793625067-docs-guest-publish to main November 2, 2026 18:40
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

🌿 Preview your docs: https://fern-preview-devin-1793643846-quickstart-guest-align.docs.buildwithfern.com/learn

Here are the markdown pages you've updated:


Replace `my-org/fern-docs` with your desired owner and repository name. Use `--public` instead of `--private` if you want a public repository.

The template's `fern.config.json` pins an older CLI version. Run [`fern upgrade`](/learn/cli-api-reference/cli-reference/general-commands#fern-upgrade) before publishing with `--guest`, which requires CLI 5.182.0 or later.

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.

This instruction is good for humans as well, not just agents, so probably should live outside the <llms-only> block.

Let's future proof it a bit by simply upgrading to pull any new features and bugfixes, rather than specifically calling out the --guest callout.

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.

Done in 684219a. I moved the instruction out of <llms-only> and into the starter template accordion so human readers see it too, and reworded it as a general upgrade "to pick up the latest features and fixes" instead of tying it to --guest.

`fern init --docs` works in any directory — no git repo or GitHub remote is required. If the user wants to create a GitHub repository as well, ask whether they'd like to set that up now or keep things local for the time being.

Note: `fern init --docs` is interactive — it prompts for an organization name. Ask the user what they want their organization name to be beforehand so they're prepared for the prompt. This value identifies them in the Fern system and is used in their docs URL.
If the user has a Fern account, ask for their organization name and pass it with `--organization` (alias `--org`). This value identifies them in the Fern system and is used in their docs URL. If they don't have an account and you'll publish with `--guest`, run `fern init --docs` without `--organization`: in a non-interactive shell (no TTY, or `CI` set), CLI 5.191.0 and later names the organization after the current directory, and guest publishing ignores it. Older CLI versions exit with an error instead. Don't invent an organization name for a logged-in publish.

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.

Let's avoid mentioning specific CLI versions. This is new customer onboarding, we should assume the user is using the latest CLI version.

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.

Done in 684219a. I dropped the "CLI 5.191.0 and later" and "Older CLI versions exit with an error" wording from this note, and the "CLI 5.182.0+" from the No account note. The page has no PR-added version numbers left.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@iamnamananand996
iamnamananand996 merged commit aa3f6ba into main Nov 3, 2026
4 checks passed
@iamnamananand996
iamnamananand996 deleted the devin/1793643846-quickstart-guest-align branch November 3, 2026 13:01
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.

3 participants