# Validate a policy.yaml without the network — parse + check every constraint
hexgate policy validate policy.yaml
# See the Rego your YAML compiles to (stdout)
hexgate policy show-rego policy.yaml
# Dry-run a single decision. --engine wasm compiles + evaluates in wasmtime
# (matching production); the default pydantic engine needs no opa.
hexgate policy test policy.yaml --role billing --tool refund_order \
--args '{"amount": 200, "currency": "USD"}' --engine wasm
# Compile a bundle: writes {stem}.yaml + .rego + .wasm + .bundle.json
hexgate policy build policy.yaml --out ./bundle
# Generate an Ed25519 keypair for signing bundles
hexgate policy keygen --out ./keys/dev # → dev.private (0600) + dev.public