Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

DevOps Script Example

This example shows a shell-first Approva flow for operators and scripts.

Files:

Run

From the repo root:

pnpm install
pnpm cli:build

Then:

export APPROVA_BASE_URL=http://localhost:4000
export APPROVA_API_KEY=approva_sk_...

bash examples/devops-script/deploy-with-approva.sh

Optional 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.sh

The 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: