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, catalogue, orders, appointments, employees,
support cases, 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:
- Authenticate once.
pxb authstores credentials in your OS keychain. - Say where you are.
pxb location use <name>pins the location that calls needing one will use. - Work.
pxb customer list,pxb post ..., 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 helptopic — the CLI and these docs are generated from one source, so they can't disagree.
pxb help install→pxb help auth→pxb help commands→pxb help resources→pxb help context→pxb help output→pxb help scopes→pxb help config→pxb help errors→For 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