Skip to Content
FeaturesPublishing Packages

Publishing Packages

Anyone with a Forest account can upload packages to the registry. Publishing is two commands: forest init scaffolds a package workspace, and forest publish uploads it.

$forest publish

The first publish asks for the package’s visibility (public or private), description, and license; later publishes ask what kind of change you made (bugfix, new feature, or breaking change) and bump the SemVer  version accordingly. You never edit version numbers by hand.

forest publish
$ forest publish
? What kind of change is this? New feature
ℹ Version will be 1.3.0 (currently 1.2.4)
🌳 Published my-studio/sauce@1.3.0

Dependencies your package declares in forest.json are uploaded with it, so consumers get them installed automatically. Every published version also gets an automated license safety rating shown on its package page.

Per-platform authoring

The publish flow is the same everywhere; what’s inside the package differs:

Going deeper

  • Publishing a Package for the full walkthrough, prerequisites, and license details.
  • Studios for publishing under a shared team scope instead of your username.
  • Local Directory Linking for iterating on a package inside a real project without publishing every change.
Last updated on