CLI
Command Line Interface
Reference for pxb, the Pixelbase command line interface — install, authenticate, list resources, and drive the API from a script or an agent.
pxb is the command line for the Pixelbase API. Everything a company
runs on — locations, customers, catalog, orders, appointments, employees,
threads, the ledger — is reachable from one command.
It is built for two audiences: developers scripting against the API, and AI agents operating a company without a browser in the loop.
A session has three steps:
- Sign in once.
pxb authopens your browser to approve it, and keeps the token in your OS keychain. - Say where you are.
pxb company use <name>andpxb location use <name>pin the company and location calls act in. - Work.
pxb customer list,pxb product update ..., and so on.
Requires Node 18.17 or newer. The binary is self-contained — no package manager, no dependency tree.
Install
One command. Needs Node 18.17 or newer; everything else is self-contained.
curl -fsSL https://www.pxb.app/cli/install.sh | shSee the CLI overview for what it's for, or read on for how to use it.
Topics
Every page here is also a pxb help topic — the CLI and these docs are generated from one source, so they can't disagree.
pxb help installpxb help upgradepxb help authpxb help commandspxb help resourcespxb help contextpxb help outputpxb help scopespxb help configpxb help errorsFor agents
The whole reference is available as one document, in two formats, so an agent can read it in a single fetch rather than crawling these pages.
curl https://www.pxb.app/docs/cli/docs.md
curl https://www.pxb.app/docs/cli/docs.json
pxb help --markdown
pxb help --json