CLI

mba-cli v0.3.2 reads a tenant's data from the terminal and prints JSON. It hits the same endpoints as the API reference.

Install#

bash
curl -fsSL https://mppreleasesymdz2uyxyd7aq.blob.core.windows.net/mba-cli/install.sh | sh

Authenticate#

Create an API key in Settings → API keys. See Authentication for details.

bash
# interactive — stores the key in the OS keychain
mba-cli connector auth

# verify
mba-cli tenant ls

Configuration#

Every option has an environment-variable fallback, so scripts and CI need no flags.

bash
# CI / agents — configure with environment variables instead
export MBA_API_KEY=mba_...        # tenant API key (required)
export MBA_API_BASE_URL=...       # default: the production gateway
export MBA_APIM_SUBSCRIPTION_KEY=4fb0f9a3b14a44e98698e80cef2aebeb   # public; this is the default

booking

Read bookings (key-scoped)

customer

Read customers (key-scoped)

employee

Read employees (key-scoped)

invoice

Read invoices

pet

Read pets (key-scoped)

Output#

  • All commands print JSON to stdout; human hints go to stderr.
  • List commands accept --page / --limit, or --all to fetch every row.
  • Failures exit non-zero and print the API's message.

Get help#

bash
mba-cli --help            # all commands
mba-cli customer --help   # one group
Was this page helpful?