{% extends "docs/base.html" %} {% block docs_content %}
Get a repo's upstream fork record, or find a specific owner's fork of an upstream repo
# Get this repo's upstream fork record
pearing-cli get-fork website
# Get a specific user's fork of an upstream repo
pearing-cli get-fork teams/platform/website --owner alice
# Get a specific team's fork of an upstream repo
pearing-cli get-fork alice/website --owner teams/platform-forks
Prints a single JSON object from the API. With --owner, the CLI switches from upstream lookup mode to owner-specific fork lookup mode.
404 Not Found when the referenced resource does not exist.403 Forbidden when owner/repo access checks fail.Common auth errors are documented on the CLI overview page.
Get a repo's upstream fork record, or a specific owner's fork of an upstream repo.
Usage: pearing-cli get-fork [OPTIONS] <REPO>
Arguments:
<REPO> Repo locator (`teams/<team_slug>/<repo_slug>` or `<username>/<repo_slug>`), or `<repo_slug>` for authenticated user
Options:
--owner <OWNER> Fork owner locator (`teams/<team_slug>` or `<username>`). When omitted, gets this repo's upstream fork record
-h, --help Print help (see more with '--help')