CLI Installation
Quick install
Section titled “Quick install”macOS / Linux
Section titled “macOS / Linux”curl -fsSL https://raw.githubusercontent.com/repo-edu/repo-edu/main/scripts/install-cli.sh | shOverride the install directory with REDU_INSTALL_DIR or pin a version with REDU_VERSION:
REDU_VERSION=v0.1.0 REDU_INSTALL_DIR=/usr/local/bin curl -fsSL ... | shWindows (PowerShell)
Section titled “Windows (PowerShell)”irm https://raw.githubusercontent.com/repo-edu/repo-edu/main/scripts/install-cli.ps1 | iexBuild from source
Section titled “Build from source”pnpm build:cli./apps/cli/dist/redu --helpVerify the installation
Section titled “Verify the installation”redu --helpThis prints the available commands and global options.
Update
Section titled “Update”redu updateCheck for updates without installing:
redu update --checkData directory
Section titled “Data directory”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:
REPO_EDU_CLI_DATA_DIR=/path/to/data redu course listThe 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.