import

Command: import

Description: With the import command you can install a list of packages that are defined in a .config file or contained in a .tcpkgzip file.

Use: tcpkg import [options]

Options:

-i, --input <input> (REQUIRED)

The file from which the list of packages to be installed is imported.

--params <params>

When this option is used, parameters are provided that are queried and evaluated in the Install, Uninstall, and BeforeModify scripts in the package.

Example: --params "Test1=5 Test2"

--params-sensitive <params-sensitive>

With this option, the parameters used are not written to the log file.

--params-file <params-file>

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 the import.

-n, --name <name>

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

--all-sources

When using this option, the latest version is used across all configured feeds, regardless of their priority.

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

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

--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 import versions lower than those already imported via a downgrade.

Examples:

The packages from the Beckhoff Stable Feed specified in the config file are installed on a target system:

tcpkg import -i C:\Users\User\Documents\CurrentConfig.config -n “Beckhoff Stable Feed”

All packages from a .tcpkgzip file are installed on a target system:

tcpkg import -i C:\Users\User\Documents\download.tcpkgzip