Fern will automatically publish your SDKs to registries like NPM, PyPI, and Maven
Fern will automatically publish your SDKs to registries like NPM, PyPI, and Maven. This means that you can easily distribute your SDKs to your users without having to worry about the publishing process.
Step 1: Configure your output location
In your generators.yml
you can specify which generators (e.g. Python, Go, TypeScript) you
would like to subscribe to. To publish to a registry, you will need to specify the output
location for the SDK.
Step 2: Run fern generate
Once you have configured your generators.yml
, you can run fern generate
to
trigger the SDK generation process.
To control the version of your package specify the --version
flag. For example,
fern generate --version 1.0.0
would publish version 1.0.0
.
Private registries
In some cases, you may want to publish your SDKs to a private registry. Fern hosts
private registries for you at npm.buildwithfern.com
, pypi.buildwithfern.com
,
maven.buildwithfern.com
, etc. To use an internal registry, simply specify the
url
field in your generators.yml
:
To use a private registry, you will need to set the FERN_TOKEN
environment variable.