> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ornn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ornn CLI

> Install the Ornn CLI and manage compute from a terminal.

Use `ornn` to inspect and manage your organization’s resources from a terminal.

## Install

The Ornn CLI requires Node.js 20 or newer. Install it with npm or the hosted installer.

```bash npm theme={null}
npm install -g @ornncompute/cli
```

```bash Hosted installer theme={null}
curl -fsSL https://compute.ornn.com/cli/install | sh
```

If you used the hosted installer, open a new terminal. Run `ornn --version` to check the installation. Then [sign in and try the CLI](https://docs.ornn.com/introduction.md#try-the-cli).

On desktop, Cloud Shell opens a browser terminal with the CLI already signed in.

## Check your organization

Run `ornn context` to see the account and organization the CLI is using. Browser sign-in defaults to the organization you joined most recently.

```bash theme={null}
ornn context
```

On a remote machine, run `ornn login --no-browser` and open the printed URL on your device.

## Find commands and flags

Run `ornn help` for common commands and `ornn resources` to browse by resource. Pass a command to `ornn help` to see its arguments and flags.

```bash theme={null}
ornn help reservations list
```

With a browser session, `ornn connect TARGET` searches your organizations and uses the organization with the unique match. If a hostname is ambiguous, pass the machine ID. For examples, see [Connect to compute](https://docs.ornn.com/guides/access-overview).

Follow the storage and image guides for the commands and mount or push checks. [Mount a volume](https://docs.ornn.com/guides/storage-pricing.md#mount-an-object-storage-volume) · [Import a GCS bucket](https://docs.ornn.com/guides/storage-pricing.md#import-a-gcs-bucket) · [Push a container image](https://docs.ornn.com/guides/kubernetes-access.md#push-images-to-the-ornn-container-registry).

See the endpoint pages for request fields and CLI equivalents. [API reference](https://docs.ornn.com/api-reference/overview.md).

VPN connection commands use the organization that owns the reservation you pass. Private network commands use your current organization.

## Run commands in scripts

Load `ORNN_API_KEY` from your secrets manager. It takes precedence over a saved browser login and uses the organization that issued the key. Unset it before running `ornn login` again. [API keys](https://docs.ornn.com/api-keys.md).

Pass `--format` when running outside an interactive terminal. Use `json` for a single result or `ndjson` to receive progress records before the final result.

```bash theme={null}
ornn reservations list --format json
```

Results use the `ornn.cli/v1` schema. Read `data` for the result, `outcome` for its status, and `errors` for failures. If `page.next_cursor` is non-null, pass it to `--cursor` to read the next page.

For commands that change resources, use exact IDs. If the command supports `--idempotency-key`, reuse the same key and input when retrying. Set a timeout when waiting for readiness.

## Upgrade from CLI 0.2

Run `ornn update --major` to move to CLI 1.x, then check with `ornn --version`. Your saved login and endpoint settings carry over.

Use `ornn context` in place of `ornn whoami`, `ornn connect` in place of `ornn ssh`, and `--format json` in place of `--json`. Run `ornn help` for current commands. You can roll back by reinstalling `@ornncompute/cli@0.2.10` before January 4, 2027 UTC.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.