I’m trying to configure octo url and api key as environment variables as described in https://octopus.com/docs/octopus-rest-api/octo.exe-command-line
but got no success.
" The server url, api key, username and password can be set as the environment variables OCTOPUS_CLI_SERVER
, OCTOPUS_CLI_API_KEY
, OCTOPUS_CLI_USERNAME
and OCTOPUS_CLI_PASSWORD
respectively. Values set via command line arguments take precedence over environment variables."
After setting up the variables I’ve checked their values in a new powershell session
$env:OCTOPUS_CLI_SERVER
$env:OCTOPUS_CLI_API_KEY
and tested calling octo list-deployments but got this error:
Octopus Deploy Command Line Tool, version 4.22.1
Please specify the Octopus Server URL using --server=http://your-server/
Exit code: -1
is this configuration still valid?