diff --git a/fern/products/cli-api-reference/pages/commands.mdx b/fern/products/cli-api-reference/pages/commands.mdx index a5e24224d..49f9fcb55 100644 --- a/fern/products/cli-api-reference/pages/commands.mdx +++ b/fern/products/cli-api-reference/pages/commands.mdx @@ -180,7 +180,7 @@ hideOnThisPage: true ```bash - fern generate [--group ] [--api ] [--version ] [--preview] + fern generate [--group ] [--api ] [--version ] [--preview] [--fernignore ] ``` @@ -223,6 +223,16 @@ hideOnThisPage: true fern generate --version 2.11 ``` + ### fernignore + + Use `--fernignore` to specify a custom `.fernignore` file path for SDK generation. This allows you to temporarily test different ignore configurations without modifying the committed `.fernignore` in your repository. + + Fern will use the specified file instead of the one on the main branch and commit the new `.fernignore` to your repository as part of the generation process. + + ```bash + fern generate --fernignore ./custom-fernignore + ``` +