Skip to main content

Goals

  • Install and configure the orwd CLI
  • Create, deploy, and manage environments without leaving the terminal
  • Use structured output formats for scripting and automation

Prerequisites

Installation

Install the openreward package, which includes the orwd CLI:
Then set your API key:
Most commands require OPENREWARD_API_KEY. The only exception is orwd init, which scaffolds files locally without touching the API.

Shell alias (for development)

If you’re developing the SDK locally and want orwd to always point at your working copy:
Use --project (not --directory) so orwd runs relative to your current directory, not the SDK directory.

Creating an Environment

Interactive wizard

The fastest way to go from zero to a deployed environment:
This walks you through every step: naming, template selection, GitHub repo creation, and linking. At each prompt, you can accept the default (shown in parentheses) or type a different value.

Non-interactive mode

Pass all arguments as flags and add -y to skip prompts:
This is useful for scripting or CI workflows. Any argument you omit will still be prompted for interactively (unless -y is set, in which case it falls back to its default).

Harbor environments

To create an environment that uses the Harbor task specification:

Step by step

If you prefer more control, you can run the individual steps yourself:

Managing Environments

Listing environments

By default, orwd list fetches all results (auto-paginating through the API). Use --limit to cap the number returned.

Getting environment details

Updating an environment

GitHub Integration

Linking

This connects an environment to a GitHub repository and triggers the first deployment. If you haven’t authorized GitHub yet, the CLI opens your browser to complete OAuth. Default compute settings (matching the web UI): Override any of these:

Unlinking

Change compute or scaling settings on an already-linked environment:

Monitoring Deployments

Listing deployments

Viewing logs

Harbor task builds

For Harbor environments, each task gets its own Docker image build. To check their status:
To view the build logs for a specific task:
Use orwd task-builds my-org/my-env -o json to get the full task build IDs for use with task-build-logs.

File Management

Environments have a file store for uploading data files (datasets, ground truth, task inputs). These files are available at /orwd_data/ on the deployed environment server. See Where Environment Data Lives for details on how uploaded files are used.

Uploading files

By default, files are uploaded using their relative path from the current working directory. Use --dest to set a custom destination path:
Upload concurrency defaults to 10 parallel transfers. Adjust with --concurrency:

Listing files

Deleting files

Runs and Rollouts

Browse your evaluation runs and their rollouts from the CLI:

Structured Output

Every command (except init and new) supports the -o / --output flag for machine-readable output. This is useful for piping into jq, scripting, or loading into other tools.

Examples

Command Reference

Run orwd <command> --help for full usage details on any command.