Ignitify.dev
Integrations
CLI reference

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
synopsis
$ ignitify integration:add <name> --task <slug> [--yes | --dry-run] [--dir <base-dir>]
terminal
$ 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)
Plan only
$ 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
terminal
$ ignitify integration:add s3-storage --task launch-event --yes --json
--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
}
A setting that conflicts
$ 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)
No package.json
$ 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
No terminal and no --yes
$ 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.
FlagValueDefaultDescription
<name>required——The integration name. The npm package is @ignitify-integrations/<name>.
--dir<base-dir>$IGNITIFY_TASKS_DIR, else tasksFolder 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

  1. Downloads the latest version of the package into a temporary folder, not into the task.
  2. Shows the plan, which is every change to task.yaml and what you must add yourself.
  3. Asks you to confirm, unless you pass --yes or --dry-run.
  4. Installs that version with npm in the task folder, then writes task.yaml.