💻 CLI Reference

Stack-first PR workflows from your terminal.

📦 Installation

$ npm install -g opencodehub-cli
$ och --version

🔐 Authentication

och auth login Interactive login
och auth login --token TOKEN CI/CD token login
och auth whoami Show current user
och auth logout Clear credentials

📚 Stacked PRs

Create dependent pull requests that auto-update when parents change.

och stack create <name> Create new branch in stack
och stack view View current stack
och stack submit Push and create PRs
och stack sync Rebase stack on main

Example

och stack create database-schema
git commit -m "Add tables"
och stack create auth-service  
git commit -m "Add auth"
och stack submit  # Creates 2 stacked PRs

📋 All Commands

och init Initialize repo for OpenCodeHub
och status Show stack status
och sync Sync with remote
och config list List configuration