Integrations
Add an integration package to a Node task and write its settings into task.yaml.
integration:add
Add an integration package to a Node task and write its settings.
- no API key
- asks to confirm
- --json: full
$ ignitify integration:add <name> --task <slug> [--yes | --dry-run] [--dir <base-dir>]$ ignitify integration:add s3-storage --task launch-event@ignitify-integrations/s3-storage@0.1.1 · settings + code execution.network.type: none -> egress + secrets: S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEYyou add: secret S3_ACCESS_KEY_ID (new): ignitify secret:set S3_ACCESS_KEY_ID --stdin secret S3_SECRET_ACCESS_KEY (new): ignitify secret:set S3_SECRET_ACCESS_KEY --stdin egress host: your bucket host: <bucket>.s3.<region>.amazonaws.com on AWS, or the host of your custom endpointApply? [y/N] y✓ @ignitify-integrations/s3-storage@0.1.1 installed✓ task.yaml updated
More examples (1)
$ ignitify integration:add stream --task launch-event --dry-run@ignitify-integrations/stream@0.1.3 · settings + code · runs ffmpeg execution.network.type: none -> bidirectional run.preset: (default) -> std.medium + execution: duration long, interaction continuous + execution.network: inbound_port 8080 + execution.network.inbound_routes: /live/ + build.system_packages: ffmpegyou add: egress host: the host of an https source (for example raw.githubusercontent.com); none for a local filedry run: task.yaml was not changed
$ ignitify integration:add s3-storage --task launch-event --yes --json{
"integration": "@ignitify-integrations/s3-storage",
"version": "0.1.0",
"changes": [
"execution.network.type: none -> egress",
"+ secrets: S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY"
],
"you_add": [
"secret S3_ACCESS_KEY_ID (new): ignitify secret:set S3_ACCESS_KEY_ID --stdin",
"secret S3_SECRET_ACCESS_KEY (new): ignitify secret:set S3_SECRET_ACCESS_KEY --stdin",
"egress host: your bucket host: <bucket>.s3.<region>.amazonaws.com on AWS, or the host of your custom endpoint"
],
"written": true
}$ ignitify integration:add stream --task launch-event@ignitify-integrations/stream@0.1.3 · settings + code · runs ffmpeg✗ execution.interaction is boundary-only but @ignitify-integrations/stream needs continuous: change it by hand or use another task
More examples (2)
$ ignitify integration:add s3-storage --task launch-eventError: /work/tasks/launch-event has no package.json: run npm init in the task folder first; nothing was changed
$ ignitify integration:add s3-storage --task launch-event < /dev/nullError: Refusing to proceed: not a TTY. Re-run with --yes to apply the plan, or with --dry-run to see it.
| Flag | Value | Default | Description |
|---|---|---|---|
<name>required | — | — | The integration name. The npm package is @ignitify-integrations/<name>. |
--dir | <base-dir> | $IGNITIFY_TASKS_DIR, else tasks | Folder that holds your task folders. |
--yes, -y | — | — | Apply the plan without the question. Use it when no terminal is attached. |
--taskrequired | <slug> | — | The task folder name to add the integration to. |
--dry-run | — | — | Show the plan, then stop. Nothing in the task changes. |
What happens
- Downloads the latest version of the package into a temporary folder, not into the task.
- Shows the plan, which is every change to task.yaml and what you must add yourself.
- Asks you to confirm, unless you pass
--yesor--dry-run. - Installs that version with npm in the task folder, then writes task.yaml.