The Ory CLI empowers teams to implement identity management and access control directly into CI pipelines — accelerating development and reducing security risks that come with manually repeated tasks.
Streamline, Migrate, and Automate
Automate, scale, and deploy your identity systems with the powerful Ory CLI

Improve workflows with automation and scripting
Use the Ory CLI to quickly manage and sync changes from your version control system to the Ory Network.

Migrate to the Ory Network with ease
You can now migrate all your Identities, Permissions, OAuth2 clients, Auth Flows, and more to the Ory Network. Just export your existing IAM system — the Ory CLI will handle the rest for you.

Integrate with CI/CD pipelines
Automate configuration deployments across multiple environments using API keys for authentication in your CI/CD workflows, enabling consistent identity infrastructure management from development to production.
Everything you need to go deeper with Ory CLI and identity management.
Explore guides and tools to integrate identity workflows into your development process.
import React, { useEffect, useState } from "react"
import { FrontendApi, Configuration, Session } from "@ory/client"
const basePath = "https://ory.example.com"
const ory = new FrontendApi(
new Configuration({
basePath,
baseOptions: { withCredentials: true },
}),
)
function Example() {
const [session, setSession] = useState<Session | undefined>()
useEffect(() => {
ory
.toSession()
.then(({ data }) => {
setSession(data)
})
.catch((err) => {
console.error(err)
// Not signed in, redirect to login
window.location.replace(`${basePath}/self-service/login/browser`)
})
}, [])
if (!session) {
return <p>No session found.</p>
}
return <p>Welcome to, {session?.identity.traits.email}.</p>
}