Similar to this posting, we have a need to be able to export all octopus variables in bash (project variables and library variable sets).
Reason for this is to simplify the experience when creating new projects. Each project would typically have different variables defined (e.g. docker container variables). We have a library script module that has common script code to help deploy a project.
What we are currently having to do for each project is to explicity export each of the variables. Furthermore, if we later add new variables, we need to remember to export that variable.
Ideally, we have a mechanism similar to Azure Devops where all the variables are automatically exported.
Alternatively if there was a way for a bash script to query the list of all available Octopus variables (bash list or csv), we can at least iterate over the list to the read the variable and export it. I believe powershell has that ability.