Commands

tracee workflows

Automations: a trigger and steps across apps.

catalog

Workflow triggers and steps. Every trigger and action with its inputs and an example output. Pass app (e.g. ap_hubspot) for one connected app's steps in full.

tracee workflows catalog [--app <app>]
  • --appstring

    One connected app's steps in full, e.g. ap_hubspot

    up to 60 characters

Example
tracee workflows catalog --app slack
Calls GET /api/v1/workflows/catalog

list

List workflows.

tracee workflows list

Calls GET /api/v1/workflows

create

Create a workflow draft. A trigger and steps, saved as a draft; a person publishes and turns it on from the link in the answer. Give steps a key to read their output later as {{key.output.field}}.

tracee workflows create --name <name> --trigger <trigger> --steps <steps>
  • --namestringrequired

    1–80 characters

  • --triggerobjectrequired

    JSON text or @file.json.

  • --stepsobject[]required

    Run in order JSON text or @file.json.

    up to 25 items

--data <json|@file|-> sends the whole body instead of flags.

Example
tracee workflows create --data @flow.json
flow.json
{
  "name": "Weekly launch digest",
  "trigger": {
    "piece": "schedule",
    "trigger": "every_week",
    "input": {
      "day_of_week": 1,
      "hour_of_the_day": 9
    }
  },
  "steps": [
    {
      "key": "notify",
      "piece": "slack",
      "action": "send_message",
      "input": {
        "channel": "#marketing",
        "text": "Time to plan the posts for this week"
      }
    }
  ]
}
Calls POST /api/v1/workflows

get

Get a workflow. Step by step, with anything still missing.

tracee workflows get <workflow_id>
  • <workflow_id>argumentrequired

    From GET /api/v1/workflows or create

    uuid

Example
tracee workflows get $WORKFLOW_ID
Calls GET /api/v1/workflows/{workflow_id}

update

Change a workflow draft. Replace its name, trigger or steps (steps replace all steps).

tracee workflows update <workflow_id> [--name <name>] [--trigger <trigger>] [--steps <steps>]
  • <workflow_id>argumentrequired

    From GET /api/v1/workflows or create

    uuid

  • --namestring

    1–80 characters

  • --triggerobject

    JSON text or @file.json.

  • --stepsobject[]

    Run in order JSON text or @file.json.

    up to 25 items

--data <json|@file|-> sends the whole body instead of flags.

Example
tracee workflows update $WORKFLOW_ID --name "Monday launch digest"
Calls PATCH /api/v1/workflows/{workflow_id}

test

Test-run a workflow. With sample data; steps that write to other apps or publish are simulated.

tracee workflows test <workflow_id>
  • <workflow_id>argumentrequired

    From GET /api/v1/workflows or create

    uuid

Example
tracee workflows test $WORKFLOW_ID
Calls POST /api/v1/workflows/{workflow_id}/test