For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog inStart for free
  • Overview
    • Introduction
    • How it works
    • Quickstart
    • Customer showcase
  • Working with SDKs
    • Project structure
    • Adding custom code
    • Migrating to Replay
    • Capabilities
  • Generators
  • Reference
    • generators.yml
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
Book a demoLog inStart for free
On this page
  • Next steps
Overview

Quickstart

||View as Markdown|
Was this page helpful?
Edit this page
Previous

How SDKs work

Next

Project structure

Get up and running with Fern in under 5 minutes. This quickstart walks you through installing the CLI, initializing your project, and generating your first SDK locally.

1

Install the Fern CLI

$npm install -g fern-api
2

Initialize the fern folder

Initialize the fern folder with your existing OpenAPI specification. Specify your organization name using the --organization flag.

$fern init --openapi path/to/openapi.yml \
>--organization <YourOrganization>

OpenAPI accepts both JSON and YAML formats.

This creates a fern folder in your current directory.

fern
fern.config.json# root-level configuration
api# your API
generators.yml# generators you're using
openapi
openapi.yml# API-level configuration
3

Validate your API definition

Check that your API definition is valid, and fix errors before proceeding:

$fern check
4

Generate

fern init includes a TypeScript SDK generator by default. Run fern generate to see it in action:

$fern generate

This creates a sdks/typescript folder containing your generated SDK:

fern# created by fern init
sdks# created by fern generate
typescript
Client.ts
index.ts
core
api

Next steps

Now that you have a working SDK, set up GitHub repositories and configure publishing, generate SDKs in another languages, or learn more about Fern SDKs.

TypeScript

Set up GitHub, publish to npm, and more.

All languages

See all supported languages, including Python, Go, and Java.

How it works

Understand the Fern SDK generation pipeline.

Project structure

Learn about Fern’s multi-repo file structure and GitHub setup.