The PreFlight CLI lives in packages/cli.
The package is published as @vinaystwt/preflight-cli with the binary name preflight.
npm install -g @vinaystwt/preflight-cli
preflight --helpnpm ci
npm run build --prefix packages/cli
node packages/cli/dist/index.js --help
(cd packages/cli && npm pack --dry-run)preflight verify https://api.example.com/mcpThe command calls the hosted PreFlight API. A full paid verification still goes through the x402 payment flow; the CLI is only a client, not a replacement for the hosted service.
Exit codes:
| Code | Meaning |
|---|---|
0 |
RELEASE |
1 |
BLOCK |
2 |
UNKNOWN |
3 |
infrastructure or client error |
preflight verify-receipt receipt.json --pubkeys-file pubkeys.jsonReceipt verification checks:
- canonical JSON payload hashing;
- Ed25519 signature validity;
- key ID and public key match;
- payload hash drift.
The hosted public-key endpoint is:
https://api.usepreflight.xyz/api/v1/pubkeys