export

Command: export <packages>

Description: You can use this command to export a flat list of all installed workloads and packages and their versions or a list defined as an argument. The list is saved in a file with the extension .config.

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

Arguments:

<packages>

If you do not want to export the installed packages, but a freely defined list of packages in a .config file, you can enter this list as an argument to the command. If there is more than one package, the package IDs must be separated by a space. If you also want to specify a version, it must be written directly after the package ID, separated by an equal sign. If no fixed version is specified, the version that is found first in the feeds according to their priorities will be exported.

Options:

-o, --output <output> (REQUIRED)

Use this option to specify the path where the file is to be saved. If you do not define a name here, "CurrentConfig.config" is used as the default.

--exclude-package-versions

When using this option, the versions are not saved.

-t, --type Workload

Use this option to define whether you only want to export workloads.

--as-json

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

-n, --name <name>

If a list of packages is to be exported, this option can be used to specify a specific feed from which the necessary information is to be retrieved.

--all-sources

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

--verbatim

If you want to use packages and versions in the freely defined list that cannot be found in the configured feeds, the check can be switched off with this option.