install

Command: install <packages>

Description: Use this command to install a workload or a package, as well as a list of workloads and packages.

Use: tcpkg install <packages>... [options]

Arguments:

<packages>

In this argument, you can specify the package or a list of packages to be installed. If you want to specify lists of packages, you must separate the individual package IDs with a space. If you also want to specify a version, this must be written directly after the package ID, separated by an equals sign.

If no fixed version is specified, the version that is found first in the feeds according to their priorities will be installed.

Options:

-n, --name <name>

This option defines a specific feed from which to install. If no version is specified, the latest version from this feed will be installed.

-p, --pre, --include-prereleases

When using this option, pre-release versions are also considered.

--params <params>

You can only use these parameters for TwinCAT HMI servers. When this option is used, parameters are provided that are queried and evaluated in the package.

Sample: --params „Test1=5 Test2“

--params-sensitive <params-sensitive>

You can only use these parameters for TwinCAT HMI servers. With this option, the parameters used are not written to the log file.

--params-file <params-file>

You can only use these parameters for TwinCAT HMI servers. With this option, you can specify the path to a text file in which the parameters are entered in the following format.

PackageID=Parameters

Please note that only one package is entered per line. To enter parameters for all packages, use "all":

all=Parameters

If you also enter an "*", the parameters are treated as "--params-sensitive" and are not written to the log file.

-y, --bypass, --bypass-confirmation, --no-prompt

Use this option to prevent queries from being made during installation.

--all-sources

With this option, you can specify that the latest versions of all configured feeds should be installed without taking the priorities of the feeds into account.

--no-cache

When using this option, no cached information is used for this command.

--as-json

If this option is used, the output text is returned in JSON format. This implicitly sets the -y option.

--allow-downgrade

This option allows you to install versions that are lower than those already installed via a downgrade.

Samples:

Installation of TwinCAT Standard Engineering in version 4026.18 and the OPCUA Configurator in version 4.5.7
tcpkg install twincat.standard.xae=4026.18.0 TF6100.OpcUaConfigurator.XAE=4.5.7