list-teams

List teams the caller is a member of

Auth

Token Staff (with --all)

Example

pearing-cli list-teams --page 1 --per-page 50

List all teams (staff only):

pearing-cli list-teams --all

Expected Response

Prints a paginated JSON response from the API. By default, returns only teams the caller is a member of. With --all, returns all teams (staff only).

Errors

  • 403 Forbidden when --all is used by a non-staff user.

Common auth errors are documented on the CLI overview page.

Help Output

List teams the caller is a member of. Use --all for all teams (staff only).

Usage: pearing-cli list-teams [OPTIONS]

Options:
      --page <PAGE>          Page number (1-based)
      --per-page <PER_PAGE>  Results per page
      --all                  List all teams (staff only)
  -h, --help                 Print help (see more with '--help')