O
Ory CLI
Details
- Command
-
ory - Docs
- https://www.ory.com/docs/category/ory-cli-reference
Authentication
Ory CLI browser login session oauth2 discovered
$ ory auth Acquired by the CLI — running ory auth opens the auth flow and stores the credential.
Ory Network workspace API key
env ORY_WORKSPACE_API_KEY + Ory Network project API key env ORY_PROJECT_API_KEY discovered In the Ory Console, open your workspace menu, go to Workspace settings → API Keys, create a workspace API key, and copy it when shown. Use this for privileged Ory Network workspace admin operations and workspace-scoped project configuration tasks in the CLI.
In the Ory Console, open Project settings → API Keys for your project, click Create new API key, choose a name and expiration, create it, and copy the key immediately. The docs note the key is shown only once. Use this for privileged project admin API calls and project-data operations in the CLI. Keys typically have the ory_apikey_ or ory_pat_ prefix.
env ORY_WORKSPACE_API_KEY env ORY_PROJECT_API_KEY