Refer to library package in script console

In the script console I would like to be able to refer to a package from the Library, preferably in Powershell, and copy it to some servers. I can’t find any documentation about the command/syntax to refer to library packages.

Hi @rcrowley,

Welcome to the forums and thank you for contacting Octopus Support.

Here is an example PowerShell script that can download a Package from the built-in feed:

Let me know if this is along the lines of what you are looking for.

Best Regards,
Donny Bell

1 Like

Thank you. I was able to find the API reference but I was hoping all of that wasn’t necessary if already connected to the script console.

Hi @rcrowley,

Thank you for getting back to me.

For that, you would need to use a Project as this is not functionality the script console currently has.

Let me know if there is anything else we can assist with.

Best Regards,
Donny Bell

Thanks again, it does work great!

2 Likes

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.