Command Line Interface | Ory
Ory DX: Ory CLI
Manage your identity access infrastructure with code
Create bulk action scripts, automate your tasks, manage your projects, and seamlessly interact with the Ory Network, Ory Enterprise License (OEL) implementations, or open source using the Ory CLI.
Ory CLI streamlines your implementation
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 any implementation of Ory's IAM solution suite.
Migrate to Ory with ease
Migrate all your Identities, Permissions, OAuth2 clients, Auth Flows, and more to Ory. 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>
}
Ory DX: Build secure apps at the speed of thought, the right way.
Ory DX is the ultimate developer toolkit that unifies AI automation with Ory’s hardened security ecosystem. By seamlessly blending Model Context Protocol (MCP) servers, plugins, CLI, and Ory Elements, it gives developers a conversational, agent-led workflow to develop enterprise-ready identity, access management, and fine-grained permissions.