This example shows a shell-first Approva flow for operators and scripts.
Files:
From the repo root:
pnpm install
pnpm cli:buildThen:
export APPROVA_BASE_URL=http://localhost:4000
export APPROVA_API_KEY=approva_sk_...
bash examples/devops-script/deploy-with-approva.shOptional continuation if you already have a raw capability token from a valid exchange flow:
export APPROVA_CAPABILITY_TOKEN=cap_...
bash examples/devops-script/deploy-with-approva.shThe script is intentionally simple and poll-based. It stops cleanly if no raw capability token is available, and the recommended fully automated path is Approva's signed webhook plus exchange_token delivery mode.
Canonical reference: