CLI
Context
Companies, locations, and the ids filled in for you.
A browser sign-in reaches every company you connected it to. Pick the one to act in; every call names it from then on:
pxb company list
pxb company use acme
A company API client belongs to exactly one company, so working across
several with clients means one profile each — pxb auth --profile acme --client-id … per company — and pxb company use switches between those
profiles instead.
Within a company, many endpoints require a locationId — customers,
products, orders, appointments, gallery, hours. Pin one and it is filled in
automatically, in query strings and request bodies alike:
pxb location list
pxb location use headquarters
pxb customer list -q limit=5
# 200 GET customers
# using locationId=Headquarters (loc_abc123)
Anything you pass explicitly wins, and --no-context turns it off for a
single call. Switching company unpins the location, which belonged to the old
one. pxb location clear unpins it too.
In your terminal: pxb help context