diff --git a/fern/products/sdks/snippets/option-1-openapi.mdx b/fern/products/sdks/snippets/option-1-openapi.mdx index aa0fae2ac..644a1632c 100644 --- a/fern/products/sdks/snippets/option-1-openapi.mdx +++ b/fern/products/sdks/snippets/option-1-openapi.mdx @@ -1,31 +1,34 @@ - Initialize the fern folder using your OpenAPI Specification. Run one of the following commands based on your spec's location. + Initialize the fern folder using your OpenAPI Specification. Fern can + handle both JSON and YML formats for OpenAPI specifications and the + `--openapi` flag accepts either format, so you can use whichever format your + API spec is available in. - - Fern can handle both JSON and YML formats for OpenAPI specifications, and the --openapi flag accepts either format, so you can use whichever format your API spec is available in. - - - - `--organization ` configures your organization name in `fern.config.json`. This is required in order to successfully generate your SDK. - + Run one of the following commands based on your spec's location:test ```bash - fern init --openapi path/to/openapi.yml --organization + fern init --openapi path/to/openapi.yml \ + --organization ``` ```bash - fern init --openapi https://api.example.com/openapi.yml --organization + fern init --openapi https://api.example.com/openapi.yml \ + --organization ``` - This creates a `fern` folder in your current directory with the OpenAPI Specification. The exact folder structure might look different depending on your initial input files. + `--organization ` configures your organization name in + `fern.config.json`. This is required in order to successfully generate your + SDK. + + This creates a `fern` folder in your current directory with the OpenAPI Specification. The exact folder structure might look different depending on your initial input files. ```bash fern/ diff --git a/fern/products/sdks/snippets/option-2-fern-def.mdx b/fern/products/sdks/snippets/option-2-fern-def.mdx index c0fd80a44..76216d2eb 100644 --- a/fern/products/sdks/snippets/option-2-fern-def.mdx +++ b/fern/products/sdks/snippets/option-2-fern-def.mdx @@ -4,9 +4,9 @@ fern init --organization ``` - `--organization ` configures your organization + `--organization ` configures your organization name in `fern.config.json`. This is required in order to successfully - generate your SDK. + generate your SDK. This creates a `fern` folder in your current directory with the Fern Definition.