O

Ory CLI

CLI discovered

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
Ory Network workspace API key api_key Get key ↗

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.

Ory Network project API key api_key Get key ↗

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.

Ory Network workspace API key api_key discovered Get key ↗
env ORY_WORKSPACE_API_KEY
Ory Network project API key api_key discovered Get key ↗
env ORY_PROJECT_API_KEY