Get inspired by SDKs built with Fern: Merge | Square | ElevenLabs | Flatfile |
- Node 18 or higher
- A GitHub account
- The Fern GitHub App installed
- Click on the Use this template button (found at the top right of this page). You must be logged into GitHub.
- Choose the option to create a new repository. Name it whatever you'd like.
- Clone your newly created repository and open it in your favorite code editor (e.g., VS Code).
- Open
fern.config.json
and update theorganization
field with your organization name.
{
"organization": "your-organization-name",
"version": "0.46.5"
}
- Install the Fern CLI globally:
npm install -g fern-api
- Log in to Fern:
fern login
The repository comes pre-configured for TypeScript and Python SDK generation in generators.yml
. You'll need to:
- Create a GitHub repository for each SDK you want to generate
- Install the Fern GitHub App in your target repository.
- Uncomment and update the GitHub section in
generators.yml
with your repository information:
# For Python SDK
github:
repository: your-org/your-python-sdk-repo
# For TypeScript SDK
github:
repository: your-org/your-typescript-sdk-repo
To generate and publish your SDKs:
fern generate --group python-sdk
AND
fern generate --group ts-sdk
The generated SDKs will be:
- Committed to your specified GitHub repositories
- Published to npm (TypeScript) and PyPI (Python) if configured
- Version-controlled using semantic versioning
The starter comes with some pre-configured options in generators.yml
:
You can modify these configurations or add additional options by editing generators.yml
.
Need help? Set up a call with an expert or email us at [email protected].