Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.1 KB

File metadata and controls

57 lines (40 loc) · 1.1 KB

CLI

The PreFlight CLI lives in packages/cli.

The package is published as @vinaystwt/preflight-cli with the binary name preflight.

Install

npm install -g @vinaystwt/preflight-cli
preflight --help

Local build

npm ci
npm run build --prefix packages/cli
node packages/cli/dist/index.js --help
(cd packages/cli && npm pack --dry-run)

Verify a release

preflight verify https://api.example.com/mcp

The 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

Verify a signed receipt

preflight verify-receipt receipt.json --pubkeys-file pubkeys.json

Receipt 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