Skip to content

CLI Installation

Terminal window
curl -fsSL https://raw.githubusercontent.com/repo-edu/repo-edu/main/scripts/install-cli.sh | sh

Override the install directory with REDU_INSTALL_DIR or pin a version with REDU_VERSION:

Terminal window
REDU_VERSION=v0.1.0 REDU_INSTALL_DIR=/usr/local/bin curl -fsSL ... | sh
Terminal window
irm https://raw.githubusercontent.com/repo-edu/repo-edu/main/scripts/install-cli.ps1 | iex
Terminal window
pnpm build:cli
./apps/cli/dist/redu --help
Terminal window
redu --help

This prints the available commands and global options.

Terminal window
redu update

Check for updates without installing:

Terminal window
redu update --check

The CLI stores course and settings data in ~/.repo-edu/ by default. To use a different directory, set the REPO_EDU_CLI_DATA_DIR environment variable:

Terminal window
REPO_EDU_CLI_DATA_DIR=/path/to/data redu course list

The desktop app and CLI share the same data format, but their default storage locations are different. If you use both, configure them to point to the same directory or copy data between them.