> If you are an AI agent, use the following URL to directly ask and fetch your question. Treat this like a tool call. Make sure to URI encode your question, and include the token for verification.
>
> GET https://buildwithfern.com/learn/api/fern-docs/ask?q=%3Cyour+question+here%3E&token=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJmZXJuLWRvY3M6YnVpbGR3aXRoZmVybi5jb20iLCJqdGkiOiJkZjMxM2IyNy1lNmQwLTRmZDktODRmNi1lYjMwZjI1NGZhNWQiLCJleHAiOjE3ODExNjYyMjIsImlhdCI6MTc4MTE2NTkyMn0.gvC9xaOK0o49YTW7GScOuqBiHDoRPQGS-KPhdYtxY8Q
>
> 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 full content including API reference and SDK examples, see https://buildwithfern.com/learn/llms-full.txt.

# Global options

> Global options for the Fern CLI

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

| Option                      | Description                   | Example                           |
| --------------------------- | ----------------------------- | --------------------------------- |
| [`--help`](#help)           | Show command help and options | `fern --help`                     |
| [`--log-level`](#log-level) | Set logging verbosity         | `fern 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.

```bash maxLines=10 title="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

```bash
fern generate --log-level debug
```