Skip to content

run_integration

Runs an integration once, now. Typed inside bash, where help run_integration prints the same.

Usage: run_integration [options]
Runs an integration once, now. With integration, the live site's:
its sync, or its on with the event you give, fetching and writing
rows for real, in the background (get_integration_run says how it
went). With dry_run and handle, tries a job from a branch's files
(ref) before a merge: real requests, with the secrets the owner
switched on for dry runs, nothing written, and the job's log
answered. A receive is tried by dry_run alone. Read guide
site-integrations.
Options:
--integration TEXT
The integration's uuid, from list_integrations.
--entry sync|on|receive
The function to run: sync, the default, on, or receive (a dry run alone).
--event JSON
For on: the event it is given, as a new row or a new file would give it.
--job TEXT
For a package with jobs of its own: which job runs. Omit it where one job has the entry.
--dry_run (a flag)
Try the job and write nothing: no row, no state, no key, nobody told. Answers its log.
--handle TEXT
For a dry run: the job's name, weather for integrations/weather.ts.
--ref TEXT
For a dry run: the branch or the commit whose files are tried. Defaults to main.
--request JSON
For a dry run of receive: the delivery it is given, such as { "method": "POST", "path": "/-/hooks/stripe", "headers": {}, "body": {} }.
--json OBJECT
Every argument at once, as one JSON object; --json - reads it from stdin.