Skip to content

Split CLI commands page into docs and SDK references - #6686

Merged
devalog merged 3 commits into
mainfrom
2026-08-19-fern-ai-d8be69-ce2b4879
Aug 19, 2026
Merged

Split CLI commands page into docs and SDK references#6686
devalog merged 3 commits into
mainfrom
2026-08-19-fern-ai-d8be69-ce2b4879

Conversation

@fern-api

@fern-api fern-api Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Split fern/products/cli-api-reference/pages/commands.mdx into docs-commands.mdx (documentation commands table plus the fern generate --docs, fern docs dev/diff/preview/md/theme/link check sections) and sdk-commands.mdx (the general and SDK generation tables plus fern init, export, generate, check, upgrade, downgrade, login, logout, token, api update/enrich, org commands, write-overrides, generator upgrade, and replay sections), deleted the original page, and added both pages to the CLI reference navigation with docs-commands and sdk-commands slugs. Content, code blocks, and callouts carried over unchanged; the two cross-page anchor references (fern checkfern docs link check, and fern initfern generate --docs) were repointed at their new pages. fern/docs.yml now redirects the old /learn/cli-api-reference/cli-reference/commands URL (and the legacy /learn/cli-reference/commands entry) to sdk-commands, and the ~45 pages elsewhere in the docs that deep-linked into commands#anchor were updated to the correct new page so their anchors still resolve.

subtitle: 'Learn about the Fern CLI commands.'
title: 'SDK Commands'
description: 'Complete reference for all Fern CLI commands for generating SDKs.'
subtitle: 'Learn about the Fern CLI SDK commands.'

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.Uppercase> reported by reviewdog 🐶
Don't use all uppercase for emphasis.

@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🌿 Preview your docs: https://fern-preview-2026-08-19-fern-ai-d8be69-ce2b4879.docs.buildwithfern.com/learn

Here are the markdown pages you've updated:

|---------|-------------|
| [`fern generate`](#fern-generate) | Build & publish SDK updates |
| [`fern write-overrides`](#fern-write-overrides) | Create OpenAPI customizations |
| [`fern generator upgrade`](#fern-generator-upgrade) | Update SDK generators to latest versions |

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] <FernStyles.Current> reported by reviewdog 🐶
Avoid time-relative terms like 'latest' that become outdated

</Accordion>

<Accordion title="fern generator upgrade">
Use `fern generator upgrade` to update all generators in your `generators.yml` to their latest versions.

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] <FernStyles.Current> reported by reviewdog 🐶
Avoid time-relative terms like 'latest' that become outdated

@devalog
devalog marked this pull request as ready for review August 19, 2026 22:18
@devalog
devalog self-requested a review as a code owner August 19, 2026 22:19
| `fern upgrade --version 5.35.0` | Minimum `5.40.0` | `5.40.0` |

A plain `fern upgrade` resolves to the latest release, which is never below the minimum, so only the maximum changes what it writes. The minimum applies when you request an older version with [`--version`](/learn/cli-api-reference/cli-reference/commands#fern-upgrade): the bounds win over the version you asked for.
A plain `fern upgrade` resolves to the latest release, which is never below the minimum, so only the maximum changes what it writes. The minimum applies when you request an older version with [`--version`](/learn/cli-api-reference/cli-reference/general-commands#fern-upgrade): the bounds win over the version you asked for.

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] <FernStyles.Current> reported by reviewdog 🐶
Avoid time-relative terms like 'latest' that become outdated

|---------|-------------|
| [`fern init`](#fern-init) | Create new Fern project from OpenAPI spec or scratch |
| [`fern check`](#fern-check) | Validate API definition & configuration |
| [`fern upgrade`](#fern-upgrade) | Update Fern CLI & generators to latest versions |

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] <FernStyles.Current> reported by reviewdog 🐶
Avoid time-relative terms like 'latest' that become outdated

</Accordion>

<Accordion title="fern api update">
Pulls the latest OpenAPI spec from the specified `origin` in `generators.yml` and

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] <FernStyles.Current> reported by reviewdog 🐶
Avoid time-relative terms like 'latest' that become outdated


<CodeBlock title="terminal">
```bash
fern api update [--api <api>]

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] <FernStyles.Headings> reported by reviewdog 🐶
'api' should use sentence-style capitalization.

hideOnThisPage: true
---

These commands generate SDKs from your API definition, keep generators up to date, and manage the custom code [Fern Replay](/learn/sdks/overview/custom-code#replay) carries across regenerations. Creating a project with `fern init` and validating the API definition with `fern check` are [general commands](/learn/cli-api-reference/cli-reference/general-commands), and [docs commands](/learn/cli-api-reference/cli-reference/docs-commands) publish the API reference that documents the SDKs you generate. Each SDK command accepts the [global options](/learn/cli-api-reference/cli-reference/options).

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] <FernStyles.Reject> reported by reviewdog 🐶
Use 'API Reference' instead of 'API reference'.

@devalog
devalog merged commit a2f23ba into main Aug 19, 2026
5 checks passed
@devalog
devalog deleted the 2026-08-19-fern-ai-d8be69-ce2b4879 branch August 19, 2026 22:25
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