For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog inStart for free
  • CLI reference
    • Get started with Fern CLI
    • Global options
    • Commands
    • Changelog
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
Book a demoLog inStart for free
On this page
  • help
  • log-level
CLI reference

Global options

Explore Fern CLI global options.
||View as Markdown|
Was this page helpful?
Edit this page
Previous

Overview

Next

Commands

These options work with any Fern CLI command to control logging and get help.

OptionDescriptionExample
--helpShow command help and optionsfern --help
--log-levelSet logging verbosityfern generate --log-level debug

Use --log-level debug to see detailed output when troubleshooting issues.

help

Use the --help option with any Fern CLI command to see an explanation and available options.

fern add --help
$fern add --help
$fern add <generator>
$
$Add a code generator to generators.yml
$
$Positionals:
$ generator [string] [required]
$
$Options:
$ --help Show help [boolean]
$ --log-level [choices: "debug", "info", "warn", "error"] [default: "info"]
$ --api Only run the command on the provided API [string]
$ --group Add the generator to the specified group [string]

log-level

Use the --log-level option to set the verbosity of Fern’s logging output. The default level is info.

Available levels (from most to least verbose):

  • debug: Debug messages, informational messages, warnings, and errors
  • info: Informational messages, warnings, and errors
  • warn: Warnings and errors only
  • error: Error messages only
$fern generate --log-level debug