ory delete identity command don't work
Sacramentix opened this issue · comments
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Network project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
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: d1886fd 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
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"
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
You're right! We do have a commit though that will fix this behaviour. @tilschuenemann can you please confirm?
@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 :)
Great, thank you @tilschuenemann - closing this. We'll release a new version of the Ory CLI soon