Automated publishing to registries
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.
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
:
If you are using a private registry, then your package name must have fern
postfixed to it.
For example, @imdb-fern/sdk
, imdb-fern
, and com.imdb.fern:imdb-java
.
To use a private registry, you will need to set the FERN_TOKEN
environment variable.