The package manager for TwinCAT libraries

Install PLC libraries from TwinCAT XAE or Visual Studio. Pin versions in your repository and restore them anywhere, including your CI server.

Free and open source on GitHub. Browse all packages

Preferred

Install from the IDE

Twinpack is built for TwinCAT XAE and Visual Studio. Right-click References, open the catalog, pick a package and click + Add. Dependencies are resolved for you.

Right-click References and choose Twinpack Catalog in TwinCAT XAE
1. Right-click References → Twinpack Catalog…
The Twinpack catalog inside TwinCAT XAE, with Browse, Referenced and Updates tabs
2. Search, choose a version, click + Add

The command line is there for CI and scripting. Day to day, use the IDE.

Get started

Install Twinpack once, then work from the IDE. Use the CLI when you automate builds.

Download the installer. It sets up the IDE extension for TcXaeShell and Visual Studio and the twinpack command line tool.

Download Twinpack Read the quickstart

In TwinCAT XAE or Visual Studio, open a PLC project, right-click References and choose Twinpack Catalog…. Search the catalog, pick a version and click + Add.

That is the preferred way to install packages. Twinpack downloads the library with its dependencies and adds the references for you.

See the screenshots above

For scripts and terminals, search and add from the command line. Omit --version to get the latest.

twinpack search --search-term ZCore
twinpack add --package ZCore --version 1.2.19.0

Every package page on this site has a ready-to-copy command.

The versions you use are stored in .Zeugwerk/config.json next to your solution. On a fresh checkout or a build server one command installs them all:

twinpack restore

Why Twinpack

Preferred in the IDE

Browse and install from TcXaeShell or Visual Studio. The same actions are available on the command line when you need them in CI.

Reproducible builds

Pin exact versions, branches and configurations in a config file. Everyone, and every build server, gets the same libraries.

Three package sources

The Twinpack server, your own NuGet server for private libraries, and the Beckhoff library repository, all in one catalog.

Popular packages

Browse all packages

Publish your library

Share with the community on twinpack.dev, or keep libraries private on your own on-prem NuGet server.

Twinpack Registry

Open a pull request that adds your GitHub repository. Libraries from your GitHub releases are published automatically. Twinpack-Registry

From CI

Push from your pipeline with twinpack push or the Twinpack GitHub action. You need a free Zeugwerk account.

From the IDE

Right-click the PLC project, choose Twinpack, then Publish. Set distributor and version and upload.

Private on-prem NuGet

Run twinpack nuget pack to turn your built libraries into .nupkg files and push them to any NuGet server, including one you host yourself. Add it in Twinpack as a private registry. Read the guide

Free and open source

Twinpack is developed in the open on GitHub under the GNU General Public License v3.0. Read the code, report issues, request features or send a pull request.

View on GitHub Report an issue License