Global options

Explore Fern CLI global options.
View as Markdown

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 <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