Skip to main content

命令:--downloadAddOn

功能:该命令将指定的附加组件下载到指定的目标目录。

称呼APInstaller.CLI

20. 选项

--targetDirectory <target directory>

必需的

存储下载内容的目标目录

--location <location>

安装目录的完全限定路径

如果设置,则安装的所有附加组件都将存储在目标目录中。指定的包 Guid 将被忽略。

--packageIds <packages>

包 GUID 和版本元组的 json 序列化列表

--channel <channel>

设置频道的名称。

如果未使用此选项,则只要指定了安装的附加通道,就会使用安装的附加通道。默认设置:“Releases”



9. 示例

APInstaller.CLI.exe --downloadAddOn --location "C:\Program Files\CODESYS 3.5.18.0\CODESYS\AdditionalFolders\Default" --targetDirectory="C:\temp\sandbox"

APInstaller.CLI.exe --downloadAddOn --packageIds "[{\"Guid\":\"2b7e9a81-f3f3-4ad2-96d5-35d1af40c03c\",\"Version\":\"1.2.3.4\"}]" --targetDirectory="C:\temp\sandbox" --channel="CustomRepo"