Working with the command line
The command line program “tcpkg” enables you to manage TwinCAT components (workloads) or individual packages.
- The TwinCAT Package Manager must be installed. The “tcpkg” command is then available on the system.
- The command line program “tcpkg” can be executed in a PowerShell or a classic command line. You need administration rights for most actions.
- The command integrates a help system. With “tcpkg -h”, the top-level help can be called up; with “tcpkg list -h”, for example, detailed help for the “list” command can be called up. In this help you will find all possible commands that may go beyond this documentation.
- Visual Studio / XAE Shell may need to be closed for the installation.
Command line commands for package management
This list is a selection intended to provide an overview of the most important commands required for package management.
Command | Description |
|---|---|
Querying and changing TcPkg configurations, e.g., Visual Studio integration, or runtime mode and proxy settings. | |
Configuring the sources (feeds). | |
Listing the workloads and packages that are available on a feed or the local system. | |
Installing workloads or packages. | |
Uninstalling workloads and packages. | |
Displaying information on one or more packages. | |
Updating one or more installed packages. | |
Downloading and locally storing one or more packages from a feed. | |
Exporting a flat list of all installed workloads and packages and their versions or a list defined as an argument. | |
Installing a list of packages defined in a .config file or contained in a .tcpkgzip file. |
Commands for creating custom packages and managing third-party certificates
If you want to create your own packages or use third-party packages in the package manager, the following commands are available:
Command | Description |
|---|---|
Verifying a package signature. | |
Signing your own package. | |
Managing trusted certificates. |