Skip to content

CLI Overview

The OpenCodeHub CLI (och) is a structured, command‑group based tool. Most workflows start with authentication and repository initialization, then move into PR, stack, and CI operations.

Terminal window
npm install -g opencodehub-cli
  • --help, -h: Show help
  • --version, -v: Print version
  • --debug: Verbose diagnostics
GroupPurposeSubcommands (common)
authAuthenticate with an instancelogin, logout, status
configCLI configurationlist, get, set, unset, path, reset
repoRepository actionscreate, clone, list, push
prPull requestscreate, list, view, merge, checkout, close, diff, ready
issueIssuescreate, list, view, close, reopen, comment
stackStacked PR workflowcreate, submit, view, sync, status, rebase
queueMerge queueadd, list, status, remove
reviewReviews & AI reviewai, status, approve, request-changes, comment
ciCI/CD runslist, view, trace
metricsMetrics summaryshow
insightsMetrics + leaderboardshow, team, repo
inboxPR inboxlist, section
notifyNotificationslist, read, settings
automateAutomation ruleslist, create, enable, disable, delete
branchGit branch managementlist, create, checkout, rename, delete, track
releaseReleasescreate, list, view, delete
searchSearch across entitiesrepos, issues, prs
secretWorkflow secretslist, set, delete
ssh-keySSH keyslist, add, delete
apiRaw API callsSingle command with --method
ShorthandConvenience commandsinit, sync, status, whoami, push, completion

Some subcommands are interactive by design. Use --help on any group for the authoritative list.

Run och config path to see the exact config file location for your OS.