<@U04UQ68083H> how can I login to ory with ory CLI...
# ory-copilot
l
@chilly-king-10285 how can I login to ory with ory CLI 1.0 within my CI pipeline
b
A message from kapa.ai
In a CI/CD pipeline, you can authenticate to Ory using API keys. The Ory CLI supports both workspace and project API keys. Workspace API keys have permissions to manage project configs, while project API keys have permissions to manage project data. Depending on your use-case, you might need to use one or both. You can set the API keys using the
ORY_WORKSPACE_API_KEY
and
ORY_PROJECT_API_KEY
environment variables. Here's how you can do it:
Copy code
bash export ORY_WORKSPACE_API_KEY=ory_wak_8dwW9s....   export ORY_PROJECT_API_KEY=ory_pt_Wse93s....
Please replace
ory_wak_8dwW9s....
and
ory_pt_Wse93s....
with your actual workspace and project API keys respectively. For more details, you can refer to the [Ory CLI Basics document](https://www.ory.sh/docs/guides/cli/cli-basics#authentication).