> This page is for Fern CLI.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## 5.20.0

**`(feat):`** Add `--fix` flag to `fern check`, `fern sdk check`, and `fern docs check`.
When specified, the CLI automatically applies known fixes for detected issues
(e.g. replacing invalid SDK target versions with the latest stable release,
applying deterministic MDX parse error fixes).

## 5.19.1

**`(fix):`** Property-level `x-fern-audiences` (and Fern definition `audiences:`) filtering now
correctly excludes properties whose audiences do not overlap the active filter and
preserves untagged properties as universal — matching endpoint-level audience semantics.
Examples are also scrubbed of excluded items: auto-generated `jsonExample` snapshots,
inlined request-body example properties, endpoint example query parameters, and
user-specified webhook payload examples.

## 5.19.0

**`(feat):`** Add PR title, body, and commit message to `fern automations upgrade --json` output.
The new `pr` field in the JSON output allows GitHub Actions consumers to use
CLI-generated PR formatting directly, eliminating duplicated presentation logic.

## 5.18.1

**`(fix):`** Fix GitHub Enterprise support for self-hosted SDK generation. Octokit API calls
(signed commits, PR creation, ref updates) now use the correct GHE API base URL
derived from the repository URI instead of always hitting api.github.com.

## 5.18.0

**`(feat):`** Add `fern schema [name]` command (CLI v2) that emits a JSON Schema for
`fern.yml`. Running `fern schema` with no argument prints the full schema;
passing a dot-delimited subsection (e.g. `fern schema sdks`,
`fern schema sdks.targets`, `fern schema api`) prints just that block.
Intended primarily for AI agents that need to generate or validate Fern
config at runtime without consulting external docs.