CLI reference

CLI

paxfx command reference for the @pax-sh/cli executable. Generated from source to prevent drift.

1 min readUpdated

paxfx is the Pax command-line interface from @pax-sh/cli. Every command runs locally and supports --json for stable machine-readable output.

Install

pnpm
pnpm install
pnpm build
pnpm paxfx --help

Concept first

Commands group into three families:

  1. Production loopunderstand, direct, design, motion, lottie, film, critic, repair, ship
  2. Lifecycleinit, doctor, update, migrate, uninstall
  3. Registry and agentsblocks, effects, protocol, mcp, integrations

Legacy aliases (scan, check, create, recipes) still work with deprecation warnings. Prefer the loop namespace for new scripts.

Global flags

FlagPurpose
--jsonStable machine-readable JSON on stdout
--verboseVerbose diagnostics on stderr
--quietSuppress non-essential stdout
--no-colorDisable ANSI color
--ciNon-interactive CI mode
--dry-runPreview mutations without writing
--yesConfirm destructive actions
--forceOverwrite existing targets
--cwd <path>Working directory

Generated command reference

Auto-generated from paxfx --help --json (CLI v1.0.0). Run pnpm docs:generate after command changes.

Global flags

FlagPurpose
--jsonSee paxfx --help
--verboseSee paxfx --help
--quietSee paxfx --help
--no-colorSee paxfx --help
--ciSee paxfx --help
--dry-runSee paxfx --help
--yesSee paxfx --help
--forceSee paxfx --help
--cwdSee paxfx --help
--helpSee paxfx --help
--versionSee paxfx --help

Production loop commands

  • understand
  • direct
  • design
  • motion
  • lottie
  • film
  • critic
  • repair
  • ship

Production loop

CommandSummaryJSONMutatingNetwork
paxfx criticRun deterministic or rendered visual QA checksyesnono
paxfx design addInstall a registry block or component into the host appyesyesno
paxfx design exportExport design plan, install script, or token sheetyesyesno
paxfx design initScaffold .pax/design.json from locked directionyesyesno
paxfx design inspectHuman-readable design plan reportyesnono
paxfx design listList registry design assetsyesnono
paxfx design matchMatch registry assets to semantic roles without writing filesyesnono
paxfx design planGenerate design plan from direction, brand, and registry matchingyesyesno
paxfx design tokensEmit resolved CSS token bindings for the host stackyesnono
paxfx design validateValidate design plan against schema, direction, and brandyesnono
paxfx direct approveApprove a proposed direction and write approval diffyesyesno
paxfx direct exportExport downstream pillar constraints (design, motion, lottie, film)yesyesno
paxfx direct generateGenerate distinct creative directions from brief and brandyesyesno
paxfx direct initCreate a non-interactive creative brief templateyesyesno
paxfx direct inspectInspect creative direction and agent contextyesnono
paxfx direct lockLock direction fields for downstream change controlyesyesno
paxfx direct rejectReject a direction and append to rejection logyesyesno
paxfx direct reviseCreate a versioned revision of the active directionyesyesno
paxfx direct validateValidate direction against schema and brand modelyesnono
paxfx film demoRender deterministic demo or launch videoyesyesno
paxfx film exportExport scene or demo to media or compile targetsyesyesno
paxfx lottie validateValidate Lottie JSONyesnono
paxfx motion exportExport motion report, timeline snapshots, lottie, or film segmentsyesyesno
paxfx motion initInitialize motion plan from locked directionyesyesno
paxfx motion inspectInspect motion plan: ownership, timing, conflicts, budgetyesnono
paxfx motion planBuild or refresh motion plan with semantic roles and timelinesyesyesno
paxfx motion profileInspect scanned .pax/motion.json profileyesnono
paxfx motion validateValidate motion plan against roles, budget, and reduced-motion policyyesnono
paxfx repairApply safe repairs from the latest check reportyesyesno
paxfx ship addInstall registry assets into the host repositoryyesyesno
paxfx ship exportExport artifacts ready for host app integrationyesyesno
paxfx understand brandIngest, inspect, and version the brand intelligence documentyesyesno
paxfx understand scanScan repository for brand and motion signalsyesyesno

Lifecycle

CommandSummaryJSONMutatingNetwork
paxfx doctorDiagnose toolchain, config, cache, and provider modeyesnono
paxfx initCreate .pax/ project files and manifest without clobbering existing contentyesyesno
paxfx migrate projectMigrate pax.project.json to the current schema versionyesyesno
paxfx migrate sceneMigrate a scene document to the current schema versionyesyesno
paxfx uninstall integrationsRemove Pax editor integrationsyesyesno
paxfx uninstall paxRemove .pax/ project state (requires --yes)yesyesno
paxfx update configMerge missing defaults into project configyesyesno
paxfx update projectRefresh project manifest provenance and schema metadatayesyesno

Registry

CommandSummaryJSONMutatingNetwork
paxfx addInstall blocks/<id> into the host repositoryyesyesno

Agent integrations

CommandSummaryJSONMutatingNetwork
paxfx protocol generateRegenerate agent adapters from canonical protocolyesyesno
paxfx protocol infoShow creative-engineering protocol version and stagesyesnono
paxfx protocol installMerge generated protocol instructions into agent host filesyesyesno
paxfx protocol parityVerify generated adapters match canonical protocol hashyesnono
paxfx protocol validateValidate canonical protocol structureyesnono

Deprecated aliases

PreferLegacy alias
paxfx understand scanunderstand scan
paxfx understand brandunderstand brand
paxfx design listdesign list
paxfx design adddesign add
paxfx film exportfilm export
paxfx film demofilm demo
paxfx criticcritic
paxfx adddesign add or ship add
paxfx migrate scenemigrate scene
paxfx uninstall integrationsuninstall integrations

Schemas

JSON schemas shipped with Pax. Source: docs/architecture/schemas/.

SchemaPurpose
pax-brand.v1.jsonPax Brand Intelligence Document
pax-brief.v1.jsonPax Creative Brief
pax-check-report.v1.jsonPax Check Report
pax-check-report.v2.jsonPax Check Report
pax-creative-protocol.v1.jsonPax Creative-Engineering Protocol
pax-design-plan.v1.jsonPax Design Plan
pax-direction.v1.jsonPax Creative Direction
pax-motion-plan.v1.jsonPax Motion Plan
pax-output-manifest.v1.jsonPax Output Manifest
pax-project.v1.jsonPax Project Manifest
pax-protocol-run.v1.jsonPax Protocol Run Checkpoint
pax-scene.v1.jsonPax Scene

Exit codes

CodeMeaning
0Success
1Usage error
2Unknown command
3Configuration / check failure
4IO error
5Process failure
130Cancelled

Was this page helpful?

Answers are not recorded or transmitted. Pax has no telemetry.