The Package Server
This guide introduces the Rhino Package Manager server - https://yak.rhino3d.com
We host a public package server for everyone to use. You don’t need to configure anything. Both the Yak CLI tool and Rhino already know where to look.
Packages shared on the public package server are free to download and install. They may be free to use or require a license – see the Cloud Zoo and Zoo guides for ways to implement licensing in your plug-in using our tools.
Below are a few useful facts about our package server.
Authentication and authorization
Once a package author has published a package, only they can publish future versions using the same package name.
The package server has a few conventions that must be followed.
Package names are pretty strict. They only allow letters, numbers, hyphens and underscores, e.g.
Package names adopt the case used in the very first version that was uploaded. Future uploads ignore the case of the package name and all queries are case-insensitive.
Package version numbers must either follow Semantic Versioning 2.0.0 (e.g.
System.Version a.k.a. Microsoft’s four-digit standard (e.g.
It’s recommended to use Semantic Versioning because it allows package authors to specify prerelease versions. These are handy for limited testing, since by default the latest stable version is installed.
Four-digit version numbers were added in v0.8 (August 2019) to support existing plug-ins that use
System.Version-style version numbers. They do not support pre-release or build metadata.
Partial version numbers and normalisation
When a package is created you may notice that the version number in the filename is different to the one in
manifest.yml. This is due to version number normalisation. This same process happens behind the scenes on the package server and is done to avoid ambiguity between semantically equivalent versions.
There are two cases where version numbers can be semantically equivalent.
- Semantic versions that only differ in build metadata1, i.e.
- A four-digit version and semantic version that are identical except for a “0” fourth digit (no prerelease or build metadata), e.g.
Normalisation is different to expansion of partial (e.g.
1.0) version numbers. Partial versions numbers are expanded and stored in their full form. For example, if you upload a package as
1.0, it will actually be saved as
1.0.0. Subsequently, any requests (REST, CLI, etc.) for version
1.0 will be automatically redirected.