@@ -174,47 +174,59 @@ hideOnThisPage: true
174174
175175 <CodeBlock title="terminal">
176176 ` ` ` bash
177- fern generate [--group <group>] [--api <api>] [--version <version>] [--preview]
177+ fern generate [--deep] [-- group <group>] [--api <api>] [--version <version>] [--preview]
178178 ` ` `
179179 </CodeBlock>
180180
181+ # ## deep
182+
183+ Use `--deep` to enable deep generation mode, which is required for SDK generation with the latest CLI version. This flag ensures that all nested types and dependencies are fully resolved during generation.
184+
185+ ` ` ` bash
186+ # Generate SDK with deep mode
187+ fern generate --deep --group ts-sdk
188+
189+ # Generate with deep mode and API specification
190+ fern generate --deep --group ts-sdk --api your-api-name
191+ ` ` `
192+
181193 # ## preview
182194
183195 Use `--preview` to test SDK changes locally before publishing. This is especially useful during development :
184196 - Generates SDK into a local `.preview/` folder
185197 - Allows quick iteration on your Fern definition
186198 - No changes are published to package managers or GitHub
187-
199+
188200 ` ` ` bash
189201 # Preview all SDKs
190- fern generate --preview
191-
202+ fern generate --deep -- preview
203+
192204 # Preview specific SDK group
193- fern generate --group python-sdk --preview
205+ fern generate --deep -- group python-sdk --preview
194206 ` ` `
195207
196208 # ## group
197209
198210 Use `--group <group>` to filter to a specific group within `generators.yml`. Required unless you have a `default-group` declared.
199211
200212 ` ` ` bash
201- fern generate --group internal
213+ fern generate --deep -- group internal
202214 ` ` `
203215
204216 # ## api
205217
206218 Use `--api <api>` to specify the API for SDK generation.
207219
208220 ` ` ` bash
209- fern generate --api public-api
221+ fern generate --deep -- api public-api
210222 ` ` `
211223
212224 # ## version
213225
214226 Use `--version` to specify a version for SDKs and documentation. Adherence to [semantic versioning](https://semver.org/) is advised.
215227
216228 ` ` ` bash
217- fern generate --version 2.11
229+ fern generate --deep -- version 2.11
218230 ` ` `
219231
220232 </Accordion>
0 commit comments