Skip to content

approveapi/approve.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

approve.sh

A simple CLI tool to work with ApproveAPI.

How does it work?

Use approve.sh to request an approval from someone for any workflow in real-time.

  • If the user approves, you can trigger the workflow by attaching it to &&.
  • If the user rejects, the script will fail with an exit code 1 and your workflow will not get triggered.

For example:

./approve.sh --key="sk_test_123" --user="[email protected]" --body='Allow X?' && allow_x

Options

approve.sh: A CLI to work with ApproveAPI. 

where:
 	--key ,  -k 	API key found here: https://dashboard.approveapi.com/api_keys
 	--user,  -u 	user(s) to send an approval prompt
 	--title, -t 	title for prompt
 	--body,  -b 	body for prompt