Now Available v1.0

Master your workflow with OCH CLI

The command-line interface for OpenCodeHub. Manage stacked PRs, sync branches, and streamline your code review process directly from your terminal.

$ npm install -g opencodehub-cli
Read the docs →

Stacked PRs

Create and manage dependent branches easily. `och stack create` handles parent linking automatically.

One-Command Sync

`och stack submit` pushes your entire stack and updates all PRs in the chain at once.

Smart Rebase

Rebase your whole stack onto main with `och stack sync`. Conflicts are detected and handled gracefully.

Quick Start Guide

1. Installation

npm install -g opencodehub-cli

2. Authentication

Login with your credentials or a token.

och auth login

3. Initialization

Run this once in your repository.

och init

4. Start Stacking

Create specific feature branches.

och stack create feature-a

Command Reference

och init Initialize OpenCodeHub in your repository
och auth login Authenticate with your OpenCodeHub instance
och stack create <name> Create a new stacked branch
och stack submit Push changes and create/update PRs
och stack sync Rebase stack on latest main
och status View current stack visualization

Pro Tip: Use och status frequently to visualize your stack.