cli icon indicating copy to clipboard operation
cli copied to clipboard

Some arguments do not accept the ID instead of the name

Open olyop opened this issue 2 years ago • 0 comments

The bug

A few commands do not accept the ID of the object I am targeting. I am trying to update one of our custom build tools to this CLI version and we currently rely on the ID's everywhere instead of the name (as we change this sometimes). It would be much preferred if we don't have to specify the name.

Command to reproduce

octopus release create `
  --project 'Projects-423' `
  --channel 'Channels-681' `
  --version='4.35.0.0' `
  --package-version '4.35.0.0 `
  --release-notes 'Automated release' `
  --no-prompt

octopus release deploy `
  --project 'Projects-423' `
  --tenant 'Tenants-708' `
  --environment 'Environments-201 ' `
  --version '4.35.0.0' `
  --force-package-download `
  --no-prompt

Outcome

Octopus API error: Channel named 'Channels-681' within project '<my project name>' was not found.
Octopus API error: Environment named 'Environments-201' within project '<my project name>' was not found.

Versions

cli: 1.4.0 Octopus Server: 2023.3.4135 os: Fedora Linux 38 cli: bash and powershell (latest)

olyop avatar Jun 29 '23 07:06 olyop