Skip to content

Support comma-delimited values on octopus release deploy --deployment-target command #556

@KennethBates

Description

@KennethBates

The bug

When trying to pass in multiple targets via the --deployment-target argument in the release deploy command using comma-delimitation, the command fails with the following error.

Octopus API error: There was a problem with your request. [Unable to locate deployment target(s) named 'ABC,XYZ']

Preferably, this should work in the same way the old deprecated CLI can have multiple targets passed via --specificMachines="ABC,XYZ", e.g. octopus release deploy --deployment-target "ABC,XYZ"

Command to reproduce

octopus release deploy --deployment-target "ABC,XYZ"

Outcome

Octopus API error: There was a problem with your request. [Unable to locate deployment target(s) named 'ABC,XYZ']

Workaround

You can still pass a subset of targets by defining multiple arguments in the command, e.g. --deployment-target "ABC" --deployment-target "XYZ"

Versions

cli: 2.19.1

Octopus Server: 2025.4.5038

Links

Report (private): https://octopus.zendesk.com/agent/tickets/258815

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions