Hi all! I was trying to list all my projects from ...
# ory-network
c
Hi all! I was trying to list all my projects from the CLI, and can only see one. Is there a reason behind this? Did I miss anything?
s
They are probably part of a workspace. A new CLI supporting workspaces is coming soon (days). You can use the project by specifying the ID directly, e.g. for
ory get project
1
c
Thanks for your answer, @steep-lamp-91158. I'm trying to modify the issuer of a JWT token from an OAuth2 client. Since I configured a custom domain on my project, I thought the issuer would match this, but this is not the case. The change seems trivial from the CLI, but my projects are in workspaces, so I can't count on it here. What's your recommended approach for this?
In case this helps somebody else, I was able to make it work through a simple curl command:
Copy code
curl -X PATCH <https://api.console.ory.sh/projects/><ORY_PROJECT_ID> \
-H "Authorization: Bearer <ORY_WORKSPACE_PAT>" \
-H "Content-Type: application/json" \
-d '[
    {
      "op": "replace",
      "path": "/services/oauth2/config/urls/self/issuer",
      "value": "<YOUR_NEW_ISSUER>"
    }
  ]'
s
You should be able to just do
ory patch ... <project-id>
even if the project is in a workspace. Only the list command does not show it. Regardless, happy you made it work
You can also try the new Ory CLI now: https://github.com/ory/cli/releases/tag/v1.0.0-alpha.0
👀 1