get-repo

Fetch a repo by locator or self shorthand

Auth

Authenticated Owner Scope

Example

ghit-cli get-repo website
# or
# ghit-cli get-repo teams/platform/website
# or
# ghit-cli get-repo alice/website

Expected Response

Prints a single JSON object from the API.

Errors

  • 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.

Help Output

Fetch a repo by locator or self shorthand

Usage: ghit-cli get-repo <REPO>

Arguments:
  <REPO>  Repo locator (`teams/<team_slug>/<repo_slug>` or `<username>/<repo_slug>`) or `<repo_slug>` for authenticated user

Options:
  -h, --help  Print help