Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_common/install-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Windows from '@site/src/components/Install/Windows'
<Linux repo="ory" name="the Ory CLI" />
</TabItem>
<TabItem value="macos">
<MacOS repo="cli" name="the Ory CLI" />
<MacOS repo="cli" command="ory" name="the Ory CLI" />
</TabItem>
<TabItem value="windows">
<Windows repo="ory" name="the Ory CLI" />
Expand Down
2 changes: 1 addition & 1 deletion docs/_common/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import Linux from '@site/src/components/Install/Linux'
```mdx-code-block
import MacOS from '@site/src/components/Install/MacOS'

<MacOS repo={props.repo} name={props.name} />
<MacOS repo={props.repo} command={props.command} name={props.name} />
```

## Windows
Expand Down
55 changes: 5 additions & 50 deletions docs/guides/cli/01_installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,58 +13,13 @@ Network to self-hosted setups alike.

## Installation

You can install the Ory CLI directly on your machine, or run the tool in Docker.
```mdx-code-block
import Install from '@site/docs/_common/install-cli.mdx'

### macOS

Run this command to install the Ory CLI using Homebrew:

```shell
brew install ory/tap/cli
```

Verify the installation:

```shell
ory help
```

### Linux

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

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

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

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

Verify the installation after moving to `$PATH`:

```shell
ory help
```

### Windows

To install the CLI on Windows, use [scoop](https://scoop.sh). Run:

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

Verify the installation:

```shell
ory help
<Install />
```

### Docker
#### Docker

```shell
### Pull Ory CLI image
Expand All @@ -74,7 +29,7 @@ docker pull oryd/ory
docker run --rm -it oryd/ory help
```

### Binary
#### Binary

You can download the server and client binaries from the [GitHub "releases" tab](https://github.com/ory/cli/releases).

Expand Down
10 changes: 7 additions & 3 deletions src/components/Install/MacOS.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import React from "react"
import CodeBlock from "@theme/CodeBlock"

export default function MacOS(props: { repo: string; name: string }) {
const { repo, name } = props
export default function MacOS(props: {
repo: string
name: string
command: string
}) {
const { repo, name, command } = props
return (
<>
<p>
Install {name} using <a href={"https://brew.sh"}>homebrew</a> on macOS:
</p>
<CodeBlock language="shell">{`brew install ory/tap/${repo}
${repo} help`}</CodeBlock>
${command} help`}</CodeBlock>
</>
)
}
16 changes: 0 additions & 16 deletions src/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,22 +730,6 @@ const hydra: SidebarItemsConfig = [
items: [
"hydra/self-hosted/deploy-hydra-example",
"hydra/self-hosted/upgrade",
"hydra/reference/api",
{
"Command Line Interface (CLI)": [
{
type: "autogenerated",
dirName: "hydra/cli",
},
],
},
{
SDK: [
"hydra/sdk/overview",
"hydra/self-hosted/go",
"hydra/self-hosted/js",
],
},
],
},
{
Expand Down
Loading