← Learn
Safe
curl -fsS -X POST https://example.com/api/deploy -H "Authorization: Bearer $DEPLOY_TOKEN" -d '{"ref":"main"}'

cross-platform · bash · Expert

Triggers a deployment through an authenticated API call. -f makes curl fail loudly on an HTTP error instead of silently writing an error page, which is the flag you want in automation.

Think you can spot these under time pressure?

Start Training

More Networking