ory / cli

Create bulk action scripts, automate your tasks, manage your projects, and seamlessly interact with the Ory Network using the Ory command line interface (CLI).
https://www.ory.sh/cli?utm_source=github&utm_medium=banner&utm_campaign=cli
Apache License 2.0
42 stars 22 forks source link

ory delete identity command don't work #297

Closed Sacramentix closed 1 year ago

Sacramentix commented 1 year ago

Preflight checklist

Describe the bug

When i run the command ory delete identity 0a345eb2-9e13-4862-8ad3-d0bd3e28187d --project nervous-wozniak-xhrj507314 I get No project selected! Please use the flag --project to specify one. Despite clearly having one project flag i get this and the command don't work.

Reproducing the bug

1 run: ory delete identity identity-id --project project-id

Relevant log output

log:
`No project selected! Please use the flag --project to specify one.`

Relevant configuration

No response

Version

Version: v0.2.1 Git Hash: d1886fd9ec850e370c147a8ecb26f6e953943c9b Build Time: 2023-01-07T17:43:52Z

On which operating system are you observing this issue?

Windows

In which environment are you deploying?

None

Additional Context

No response

Sacramentix commented 1 year ago

I've try to do it with quote bu it did not work ory delete identity "0a345eb2-9e13-4862-8ad3-d0bd3e28187d" --project "nervous-wozniak-xhrj507314"

Sacramentix commented 1 year ago

Well i did not enter the project id but the project slug. it seems to work with the project id. But the console output is cryptic. it should display that the project id is incorrect and when the command is successfull it should display that has been successfull instead of displaying ID 0a345eb2-9e13-4862-8ad3-d0bd3e28187d

aeneasr commented 1 year ago

You're right! We do have a commit though that will fix this behaviour. @tilschuenemann can you please confirm?

tilschuenemann commented 1 year ago

@Sacramentix This is implemented on master, see here.

A partial slug will also be enough to type as long as it's matching one project :)

aeneasr commented 1 year ago

Great, thank you @tilschuenemann - closing this. We'll release a new version of the Ory CLI soon