env command

Allows a state to refer to an environment variable. This command is provided via the tymly plugin and isn't offered by any of the other core plugins.

Command config

{
  "sendingEmail": {
    "options": {
      "to": {
        "$env": {
          "variableName": "TYMLY_WELCOME_RECIPIENTS",
          "failIfNotSet": true
        }
      },
      "subject": "Welcome to Tymly!",
      "text": "Congratulations... you are now part of the wonderful world of Tymly! <3"
    }
  }
}
Property Type Description Required
variableName string Name of an environment variable to read a value from Yes
failIfNotSet boolean Should things fail if the environment variable hasn't been set? Defaults to false. No