--- import BaseLayout from "@/layouts/BaseLayout.astro"; import { Terminal, Cpu, GitBranch, Share2, Layers, CheckCircle2, } from "lucide-react"; const commands = [ { cmd: "och init", desc: "Initialize OpenCodeHub in your repository", }, { cmd: "och auth login", desc: "Authenticate with your OpenCodeHub instance", }, { cmd: "och stack create ", desc: "Create a new stacked branch", }, { cmd: "och stack submit", desc: "Push changes and create/update PRs", }, { cmd: "och stack sync", desc: "Rebase stack on latest main", }, { cmd: "och status", desc: "View current stack visualization", }, ]; ---
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

{ commands.map((item, i) => (
{item.cmd} {item.desc}
)) }

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