<@U04UQ68083H> I'm getting this error with Ory CLI...
# ory-copilot
b
@chilly-king-10285 I'm getting this error with Ory CLI in Powershell. The same project id works for other commands like
ory list relation-tuples --project=$project_id
Copy code
ory update opl $project_id --file ./permissionModel.ts
Error: unknown command "<MY PROJECT ID HERE>" for "ory update opl"
c
A message from kapa.ai
The error message you're seeing suggests that the
ory update opl
command is not recognizing your project ID as a valid argument. This could be due to the way you're passing the project ID in Powershell. In the examples provided in the extracts, the project ID is passed as an argument directly after the
ory update opl
command, like so:
Copy code
bash ory update opl ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 --file /path/to/namespace_config.ts
In your case, you should replace
ecaaa3cb-0730-4ee8-a6df-9553cdfeef89
with your actual project ID. If you're using a variable to store the project ID, make sure the variable is being correctly interpreted. In Powershell, you might need to use the syntax
${project_id}
instead of
$project_id
. So your command would look like this:
Copy code
bash ory update opl ${project_id} --file ./permissionModel.ts
If you're still having issues, please double-check your project ID and the file path to ensure they are correct.