CLI reference

Every command and flag: xray, the capture pipeline, the Playwright engine and the factory.

xray

The one-command entry point. Runs capture, refine and wire in order.

xray <url> --site <slug> [options]
FlagEffect
--site <slug>Names the clone. Becomes the tenant key and the deploy name.
--out <dir>Output root. Defaults to a durable directory under your home, not a temp folder.
--max-pages <n>Cap on routes crawled.
--recaptureIgnore an existing capture and fetch again. Without it, re-runs reuse what is on disk.
--sharedRegister as a tenant on the shared database rather than creating a new project.
--ref <ref>Target an existing database by reference.
--createCreate a dedicated database for this clone.
--domain <fqdn>Custom domain for the deploy.
--modules a,bTurn specific modules on. --no-<id> turns one off.
--no-interactionsSkip interaction recording.
--reseedRe-seed content slots. Overwrites values edited in the admin.
--skip-deployStop after wiring.

Capture pipeline

The capture stage on its own, with per-step opt-outs.

xray capture <url> [out-dir] [--max-pages n] [--engine static|playwright|auto]

Steps run in order and each can be skipped with --no-<step>: clone, interactions, pwa, optimize, dedupe, minify, validate, score.

Browser engine

Flags that only apply when the browser engine is running.

FlagEffect
--allFollow the sitemap and crawl deeply, rather than just linked pages.
--login <email:pass>Sign in before capturing.
--save-authPersist the session so later runs reuse it.
--bake-sessionClear a bot challenge once and reuse the cookies.
--passcode /route:CODEUnlock a password-gated route.
--interactiveRecord clicks and the DOM changes they cause.
--responsiveCapture at several viewports.
--concurrency <n>Parallel page workers.
--headedShow the browser. Useful when a capture behaves differently than expected.

Factory

Manage every clone you have built.

xray factory list
xray factory status <site>
xray factory redeploy <site>
xray factory open <site>