Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/cli/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,18 @@ function addDocsPreviewCommand(cli: Argv<GlobalCliOptions>, cliContext: CliConte
cli.command("preview", "Commands for managing preview deployments", (yargs) => {
addDocsPreviewListCommand(yargs, cliContext);
addDocsPreviewDeleteCommand(yargs, cliContext);
yargs.command(
"$0",
false,
// biome-ignore lint/suspicious/noEmptyBlockStatements: yargs requires a builder function
() => {},
() => {
cliContext.logger.error(
"'fern docs preview' is not a valid command. To preview docs, use 'fern generate --docs --preview'."
);
cliContext.failAndThrow();
}
);
return yargs;
});
}
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/cli/versions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# yaml-language-server: $schema=../../../fern-versions-yml.schema.json
- version: 3.31.1
changelogEntry:
- summary: |
Add error message when running `fern docs preview` without a subcommand. The command now suggests using `fern generate --docs --preview` instead.
type: fix
createdAt: "2025-12-23"
irVersion: 62

- version: 3.31.0
changelogEntry:
- summary: |
Expand Down