swadhinbiswas ✨ feat(cli): harden auth, TLS, retries, and repo parsing · 1/22/2026
bdf41c6
112 lines · 1.9 KB
Raw Download

title: "Core Commands"
description: "Repository, PR, issue, CI, and release workflows from the CLI."

This page summarizes the most common non‑stack workflows.

Repository

och repo create my-repo --private --description "My repo"
och repo clone owner/my-repo
och repo list

Shorthand:

och init --url http://localhost:3000
och push --branch main

Pull requests

och pr create --base main --title "Fix auth" --body "Adds token checks"
och pr list --state open
och pr view 42
och pr merge 42 --squash
och pr checkout 42
och pr diff 42
och pr ready 42

Issues

och issue create --title "Crash on login" --body "Steps to reproduce..."
och issue list --state open
och issue view 12
och issue comment 12 --body "I can reproduce"
och issue close 12 --comment "Fixed in #34"
och issue reopen 12

Branches

och branch list
och branch create feature/notes --checkout
och branch rename feature/notes feature/release-notes
och branch delete feature/notes --remote

CI/CD

och ci list --branch main
och ci view 101 --jobs
och ci trace 809 --follow

Releases

och release create v1.2.0 --title "1.2.0" --generate-notes
och release list
och release view v1.2.0
och release delete v1.2.0

Search

och search repos "opencode"
och search issues "crash" --state open
och search prs "refactor" --state open

Secrets

# repo secret
printf "s3cr3t" | och secret set API_TOKEN

# environment secret
printf "s3cr3t" | och secret set API_TOKEN --env production

# org secret
printf "s3cr3t" | och secret set API_TOKEN --org my-org

och secret list
och secret delete API_TOKEN --yes

SSH keys

och ssh-key add --file ~/.ssh/id_ed25519.pub
och ssh-key list
och ssh-key delete <key-id>

Direct API calls

och api /user
och api /repos/owner/name -X PATCH -F "description=New description"

All commands support --help for full options.