Building UiPath library nuget in CLI

We have developed a set of UiPath library processes, which we would like to install to Orchestrator by Jenkins.

When UiPath Studio builds a new library nuget-package, it creates library dll-file to the folder \lib\net45 of the package. To create corresponding nuget-package in Jenkins, we should also build the same dll-file in command line interface by Jenkins.

How we should do that?

If you are looking into how to build a .nupkg with Command Line, I recommend looking into .nuspec files and NuGet CLI (documentation). With this you can define basic the structure of your package, including ID, version, files and dependencies.
Also, make sure to check the UIPath Custom Activities guides to ensure you are following the packages guidelines.