> This page is for CLI Generator.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For task-scoped instructions for coding agents working in a Fern project, see https://buildwithfern.com/learn/home/fern-instructions.md.

# Changelog

## November 9, 2026

## Set the CLI's display name

generators.yml

You can now set `displayName` to control the API name in the generated README and `reference.md` titles and in the crate's default description. A multi-spec workspace no longer takes its title from the first spec's `info.title`; without `displayName`, it uses a readable form of the binary name (`twilio-cli` gives "Twilio CLI").

Read the docs

## Accurate `reference.md` command paths

commands

The generated `reference.md` now lists the command paths the binary runs:

* A group named like its spec's `namespace` is hoisted into the namespace (`oauth authorize`, not `oauth oauth authorize`).
* A slash-separated namespace nests (`messaging bulk-messages create`, not `messaging-bulk-messages create`).
* HEAD and OPTIONS operations, such as CORS preflight endpoints, are no longer listed, since the binary doesn't expose them.
* Titles no longer double "CLI" when the name already ends in it.

Read the docs

## November 5, 2026

## Shared resources across specs merge

generators.yml

Specs under the same `namespace` that define a resource with the same name now merge that resource's commands instead of failing at startup with `Resource key collision`. The CLI errors only when two specs define the same command, and the error names the full command path.

Read the docs

## October 30, 2026

## macOS code signing in the release workflow

publishing

The generated release workflow now code-signs the macOS binaries when the CLI repository has the `CODESIGN_CERTIFICATE`, `CODESIGN_CERTIFICATE_PASSWORD`, and `CODESIGN_IDENTITY` secrets (an Apple Developer ID certificate). macOS keychain credentials are also read through `/usr/bin/security`, so one "Always Allow" lasts across upgrades.

Read the docs

## October 29, 2026

## Startup banner on root `--help`

features, generators.yml

The `banner` option prints ASCII art on root `--help`. It can be a solid color, a multi-stop RGB gradient (`horizontal`, `vertical`, or `diagonal`), one color per line, or pre-colored ANSI art. Set `banner.animate: true` to play a short shimmer in interactive terminals.

Read the docs

## October 20, 2026

## Table columns with `x-fern-cli-table`

features

The `x-fern-cli-table` operation extension sets the columns that `--format table` shows for a command: header, field path, order, alignment, max width, date formatting, and optional hidden columns.

Read the docs

## Prompts for missing required inputs

commands

When stdin and stderr are both terminals, the CLI prompts for required inputs that no flag, `--params`, `--json`, profile, or global parameter supplied. Scripts, CI, and piped runs never prompt and keep the existing "is missing" error. Values marked `format: email` are now validated before the request is sent.

Read the docs

## Shorthand values for object flags

features

A flag whose value is an object with exactly one required string property now also accepts a plain value for that property: `--from a@x.com` sends `{"email":"a@x.com"}`, and `--to a@x.com,b@x.com` sends one object per entry. Values the spec marks `format: email` are validated before the request is sent.

Read the docs

## October 19, 2026

## Guided API-key setup

auth, generators.yml

CLIs with `profiles.provisionOperation` configured now walk users through creating a key-backed profile in an interactive terminal. `auth login` and a bare `profiles create <name>` ask for a profile name and the credential, offer to create an API key with it, and store only the new key. `profiles remove` offers to revoke the profile's key. `provisionOperation` also accepts `flag`, `parameters`, and `profileParameters`.

Read the docs

## October 16, 2026

## Release workflow works on private repositories

publishing, generators.yml

GitHub artifact attestations require GitHub Enterprise Cloud on private repositories, so the generated release workflow failed every build there. The new `distribution.githubAttestations` option controls the attest step, and by default it runs only on public repositories.

Read the docs

## Server variables in a custom base URL

features

Placeholders such as `{region}` in a caller-supplied base URL (`--base-url`, `<NAME>_BASE_URL`, or a profile's base URL) are now filled from the matching flag, profile, environment variable, or spec default. Previously the literal placeholder was sent and the request failed.

Read the docs

## October 14, 2026

## Installers download from your repository

publishing, generators.yml

When the generator delivers to a GitHub repository, the crate's `name`, `repository`, and `homepage` now default from that repository unless `packageIdentity` sets them. The shell and PowerShell installers download from your releases, and release assets are named `<binaryName>-*` instead of `fern-cli-sdk-*`.

Read the docs

## `--schema` describes custom commands

commands

`<cli> <custom-command> --schema` now returns the command's description and flags instead of failing with a discovery error, and root `--schema` lists registered custom commands in a `customCommands` array. Agents that discover commands through `--schema` can now see hand-written commands.

Read the docs

## October 13, 2026

## Faster shell completion on large CLIs

commands

`<cli> completion <shell>` now prints a small script that asks the CLI for candidates on each Tab, instead of a static script containing the whole command tree. On a CLI with about 13,700 commands, the zsh script was 14 MB and took over a minute to load on the first Tab.

Read the docs

## Prefixed API-key headers

auth

Header API-key schemes now send their configured prefix. An `auth-schemes` entry such as `{ header: X-Api-Key, prefix: Key }` sends `X-Api-Key: Key <credential>` whether the key comes from the flag, the environment variable, or the keyring entry `auth login` stores. Previously the bare credential was sent.

Read the docs

## October 8, 2026

## Create API keys with `profiles create --provision`

auth, generators.yml

Set `profiles.provisionOperation` to the operation that creates an API key (for example `iam.keys.create`). `profiles create` then gains `--provision`, which calls that operation with the credentials already in the environment and saves the returned key to the new profile. It's the create-side counterpart of `revokeOperation`.

Read the docs

## October 7, 2026

## Auth details in dry-run previews

features

`--dry-run` output now includes an `auth` block that reports the endpoint's security schemes and whether credentials would be attached (`resolved`, `missing`, or `supplied`). In a terminal, the default table format now prints the full request preview (URL, method, query parameters, and body) instead of only the header rows.

Read the docs

## September 30, 2026

## `profiles set` confirms before creating a profile

auth

`profiles set <name>` no longer creates a missing profile without asking, so a mistyped name can't save credentials to a new, unintended profile. In a terminal it asks first, offering a similarly named existing profile before asking whether to create the new one; declining writes nothing. When stdin or stderr isn't a terminal, `set` on a missing profile fails with a hint instead of creating it. Scripts that relied on `set` to create profiles need the new `--yes` / `-y` flag or a `profiles create` call first. Updating an existing profile is unchanged.

Read the docs

## September 27, 2026

## Selected profiles outrank environment variables

auth

A selected profile's stored values now take precedence over environment variables however the profile was selected: `-p`, `<PREFIX>_PROFILE`, or `profiles use`. Previously only a profile named with `-p` outranked the environment, so a profile made active with `profiles use` lost to any exported `<PREFIX>_BASE_URL`, `<PREFIX>_RETRIES`, or credential variable. Every profile-capable value resolves as `explicit flag → selected profile → environment variable → spec default`; environment variables fill only the values the profile leaves unset. Unprofiled invocations are unchanged. `auth status` lists the profile's credential source before the environment variable, and `profiles current` reports when an environment variable is supplying a credential the profile doesn't store.

Read the docs

## Profile-storable transport settings

features

`profiles set` now accepts `<PREFIX>_TIMEOUT_SECS`, `<PREFIX>_PROXY`, `<PREFIX>_CA_BUNDLE`, `<PREFIX>_INSECURE`, and `<PREFIX>_USER_AGENT_SUFFIX`, so each profile can carry its own request timeout, proxy, CA bundle, TLS verification setting, and User-Agent suffix. Values are validated on save, child profiles inherit them, and a selected profile's value outranks the exported variable. `<PREFIX>_CONNECT_TIMEOUT_SECS` stays environment-only. The root `--help` footer now lists every environment variable the CLI reads, including one per server URL variable.

Read the docs

## August 25, 2026

## Command group help from OpenAPI tags

commands

Command groups now describe themselves in `--help` using prose from your spec. The first sentence of the attributed root-level `tags[]` description becomes the group's short line in the parent command's table, and the full description becomes its `--help` body. Override either with `x-fern-groups`.

**`openapi.yml`**

```yaml title="openapi.yml"
x-fern-groups:
  plants:
    summary: Manage your greenhouse
    description: Browse, water, and repot plants. Watering respects each plant's schedule.
```

Read the docs

## July 29, 2026

## Publish under your own crate metadata

publishing, generators.yml

The generated crate's `[package]` block can now carry your own identity instead of Fern's template metadata. Set `packageIdentity` in `generators.yml` to control the crate `name`, `description`, `license`, `repository`, `homepage`, `authors`, and `keywords`. A `name` override renames the matching `Cargo.lock` entry in the same pass, so `cargo build --locked` still resolves.

**`generators.yml`**

```yaml title="generators.yml"
config:
  packageIdentity:
    name: contoso-cli
    description: The official Contoso CLI
    license: MIT
    repository: https://github.com/contoso/cli
```

## July 28, 2026

## Browser and device login

auth, generators.yml

Generated CLIs can now log users in interactively. Declaring an `authorization-code` scheme gives `<bin> auth login` a browser flow with PKCE, and a `device-code` scheme prints a user code for machines without a browser, such as SSH sessions and containers. Tokens are stored in the OS keyring, refreshed when they expire, and sent on every request. `auth logout` clears them and `auth status` shows which schemes have a credential.

**`generators.yml`**

```yaml title="generators.yml"
auth-schemes:
  OAuth:
    scheme: oauth
    type: authorization-code
    client-id: my-public-client-id
    authorization-url: https://idp.example.com/authorize
    token-url: https://idp.example.com/oauth/token
```

Omitting `redirect-uri` binds an OS-assigned loopback port at login. Pin the callback host, path, and port instead by setting one explicitly, with backup ports tried in order when the primary is busy. Authorization servers that need extra literal parameters, such as an Auth0 `audience`, accept them through per-request parameter maps.

Read the docs

## July 23, 2026

## Generate a wire test suite

testing, generators.yml

Set `generateWireTests: true` and generation emits an automated test suite alongside your CLI: one case per endpoint example, plus a harness that stands up an in-process mock server, drives the compiled binary against it, and asserts the CLI issued the expected request and rendered the mocked response. The suite runs under a plain `cargo test` — no Docker and no network — and the generated CI runs it on every build.

**`generators.yml`**

```yaml title="generators.yml"
config:
  generateWireTests: true
```

Read the docs

## July 20, 2026

## OAuth client credentials

auth, generators.yml

Generated CLIs can now obtain their own tokens for machine-to-machine authentication. Declare an `oauth` scheme with `type: client-credentials` in `generators.yml` and the CLI exchanges a client ID and secret from the environment for a token, caches it until it expires, and refreshes it automatically. Custom token and refresh requests, response mappings, scopes, token headers and prefixes, and environment URLs are all read from the same `auth-schemes` configuration the SDKs use.

Read the docs

## Per-CLI User-Agent identity

features, generators.yml

Requests now identify the CLI by its own binary name and version, such as `contoso-cli/1.4.0`, instead of the shared crate name that every generated CLI previously sent. Your API backend can distinguish traffic from each CLI you publish.

Tools built on top of a generated CLI can tag their own traffic with the `--user-agent-suffix` flag or the `<NAME>_USER_AGENT_SUFFIX` environment variable, which appends to rather than replaces the CLI's identity. Rename that flag at generation time with `userAgentSuffixFlag` if you'd prefer different branding.

Read the docs

## July 9, 2026

## Write binary responses anywhere on disk

features

The `--output` and `--output-dir` flags no longer restrict downloads to the current working directory. Both now accept absolute paths and paths outside the directory the command runs in, instead of failing with "resolves to ... which is outside the current directory". `--output` still requires its parent directory to exist, and the CLI continues to refuse paths whose final component is a symlink.

Read the docs

## July 1, 2026

## Mount commands under a root namespace

generators.yml, commands

You can now group every spec-derived command under a namespace of your choosing, so a CLI that also ships custom commands can keep its API surface in one place. Set `rootGroup` in `generators.yml` and `contoso plants list` becomes `contoso api plants list`.

**`generators.yml`**

```yaml title="generators.yml"
config:
  binaryName: contoso
  rootGroup: api
```

_Showing the 20 most recent of 21 entries. Append `/llms.txt` to the changelog URL for the complete index._