px spans — Fetch and Filter Spans from the CLI
March 22, 2026
Available in arize-phoenix 13.16.0+ and @arizeai/phoenix-cli 0.12.0+
The Phoenix CLI (px) now has a spans command that fetches spans for a project with full filtering support. Pipe the output to other tools, save it to a file for offline analysis, or use it in scripts and CI pipelines.
--span-kindfilters by span kind (LLM,CHAIN,TOOL,RETRIEVER,EMBEDDING,AGENT,RERANKER,GUARDRAIL,EVALUATOR,UNKNOWN); accepts multiple values--status-codefilters by status (OK,ERROR,UNSET); accepts multiple values--namematches one or more span names--trace-idnarrows to specific traces; accepts multiple values--last-n-minutesand--sincecontrol the time window--format pretty|json|rawcontrols terminal output; file output is always JSON--include-annotationsattaches span annotations to each span in the output
px self update — Self-Update the CLI
March 22, 2026
Available in @arizeai/phoenix-cli 0.12.0+
px self update upgrades the installed CLI to the latest published version. It detects how px was installed (npm, pnpm, bun, or Deno) and runs the appropriate update command automatically.
GET /v1/user — Authenticated User Endpoint
March 22, 2026
Available in arize-phoenix 13.16.0+
A new GET /v1/user endpoint returns the profile of the currently authenticated user, including their username, email, and role. When authentication is disabled, the endpoint returns an anonymous user representation instead of an error.
px auth status Shows Username and Role
March 23, 2026
Available in arize-phoenix 13.17.0+ and @arizeai/phoenix-cli 0.12.0+
px auth status now displays the authenticated username and role alongside the endpoint and token info. This uses the new GET /v1/user endpoint to verify credentials and surface identity at a glance.
/v1/user endpoint (older versions), the command falls back gracefully and reports that verification is unavailable without failing.
