Publish your public-facing Fern Ruby SDK to the RubyGems registry. After following the steps on this page, you’ll have a versioned package published on RubyGems.
fern folder on
your local machine. See Set up the fern folder for more
details.company-ruby (or something similar) for your SDK, if you haven’t done so already.generators.ymlRun fern add <generator>
Navigate to your generators.yml on your local machine. Your generators.yml lives inside of your fern folder and contains all the configuration for your Fern generators.
Add a new generator to generators.yml:
Once the command completes, you’ll see a new group created in your generators.yml:
Configure output location
Next, change the output location in generators.yml from local-file-system (the default) to pypi to indicate that Fern should publish your package directly to the PyPI registry:
Your package name must be unique in the RubyGems repository, otherwise publishing your SDK to RubyGems will fail. Update your package name if you haven’t done so already:
When prompted to create a new API key:
All Gems under Gem Scope.If you are overriding an existing gem, you can select the relevant package instead of entering All Gems.

At this point, you’re ready to generate a release for your SDK.