# mba-cli pet

> Read pets (key-scoped)

Read pets (key-scoped)

CLI version: `0.3.2`

## Commands

### mba-cli pet get

Get one pet by id

Retrieve pet by ID

Fetches detailed pet information using its unique identifier. Returns complete pet data including associated metadata.

Get one pet by id

Flags:

- `--id` (string): Pet record id

API endpoints:

- GET /pets/{id} — https://mybusinessapp.co.za/developers/api/pet#tag/Pet/get_single_pet

### mba-cli pet ls

List pets

List all pets with pagination and filtering

Retrieves a paginated list of pets with optional customer-based filtering. Supports customizable page size and customer-specific views. Returns pet records with their associated metadata.

List pets

Flags:

- `--all` (bool, default `false`): Return all rows (paginate=false)
- `--customer-id` (string): Query parameter customerId (from the API spec)
- `--limit` (int, default `20`): Query parameter limit (from the API spec)
- `--page` (int, default `1`): Query parameter page (from the API spec)
- `--paginate` (bool, default `true`): Query parameter paginate (from the API spec)

API endpoints:

- GET /pets — https://mybusinessapp.co.za/developers/api/pet#tag/Pet/get_all_pets

---

[Rendered page](https://mybusinessapp.co.za/developers/cli/reference/pet)

© MyBusinessApp (Pty) Ltd. Proprietary documentation — do not republish.
