Skip to main content

Installation

The Ory CLI is a convenient and easy-to-use tool that helps you manage and configure Ory Network projects.

Its functionality is essential for self-hosting Ory components and local development. The built-in proxy and tunneling mechanisms help route application traffic to the appropriate endpoints in a safe and hassle-free manner.

The ability to export configurations allows you to bring your setup from a self-hosted environment to the cloud and from The Ory Network to self-hosted setups alike.

Installation

You can install the Ory CLI directly on your machine, or run the tool in Docker.

macOS

Run this command to install the Ory CLI using Homebrew:

brew install ory/tap/cli

Verify the installation:

ory help

Linux

The Ory CLI works on all Linux distributions. Run this command to install:

bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) -b . ory

You may want to move the Ory CLI to your $PATH:

sudo mv ./ory /usr/local/bin/

Verify the installation after moving to $PATH:

ory help

Windows

To install the CLI on Windows, use scoop. Run:

> scoop bucket add ory https://github.com/ory/scoop.git
> scoop install ory

Verify the installation:

ory help

Docker

### Pull Ory CLI image
docker pull oryd/ory

### Run image, enter container, and run a CLI command
docker run --rm -it oryd/ory help

Binary

You can download the server and client binaries from the GitHub "releases" tab.

To install, add the binary to the PATH environment variable or move it to a path that's already in your $PATH, for example /usr/local/bin.