co repo — repositories
Manage CollabOps repositories — clone / list / view / create / edit / delete
co repo manages workspace repositories — clone / list / view / create / edit / delete.
co repo clone <target> [dir]
Clones a repository in the workspace. Defaults to SSH (uses your ~/.ssh keys, so no token plumbing); force with --https, and pass git clone options through after --.
co repo clone collabops-cli # collabops-cli in current workspace
co repo clone collabops-one/collabops-cli # explicit workspace
co repo clone collabops-cli ./checkout-dir # target directory
co repo clone collabops-cli --https # CI-friendly (pair with PAT/JOB_TOKEN credential helper)
co repo clone collabops-cli -- --depth 1 # after "--" passes through to git clone| Flag | Description |
|---|---|
| --ssh | Force SSH (default) |
| --https | Force HTTPS. In CI, pair with a credential helper returning ${COLLABOPS_JOB_TOKEN} |
| --workspace <slug> | Workspace override when <target> is a bare <repo> |
The URL format is name-based (<workspace>/<repo>.git) for both protocols. The SSH gateway rejects UUID-form repo_path — the rationale is documented in the code.
To clone a private repo over SSH, your SSH public key must be registered on your CollabOps profile. For HTTPS in CI, configure a credential helper that returns ${COLLABOPS_JOB_TOKEN}.
co repo list
Lists repositories in the current workspace. Filter by name with -q.
co repo list
co repo list -q cli # filter by name
co repo list --web # open the repos page in the browser
co repo list --json # raw JSON arrayco repo view [target]
Shows repository details. With no argument it uses the current git remote.
co repo view # current cwd's git remote
co repo view collabops-cli # explicit (current workspace)
co repo view collabops-one/collabops-cli # explicit workspace + repo
co repo view --web
co repo view --jsonco repo create
Creates a new repository. --name is required. Use --initial-commit to seed an initial commit on the default branch.
co repo create -n my-service
co repo create -n my-service -d "billing service" --visibility private
co repo create -n my-service --default-branch main --initial-commit
co repo create -n my-service --json| Flag | Description |
|---|---|
| -n, --name <name> | Repository name (required) |
| -d, --description <text> | Repository description |
| --visibility <private | public> |
| --default-branch <name> | Default branch name |
| --initial-commit | Seed an initial commit on the default branch |
| --json | Emit the created repository as JSON |
co repo edit <key>
Edits repository metadata (name / description / visibility / default branch). Only the flags you pass are sent.
co repo edit 15 -d "new description"
co repo edit 15 --visibility private
co repo edit 15 --default-branch develop
co repo edit 15 -n renamed-repo --jsonco repo delete <key>
Permanently deletes a repository. Use -y to skip the confirmation prompt.
co repo delete 15 # confirmation prompt
co repo delete 15 -y # skip confirmation