{
  "id": "airflow",
  "name": "Apache Airflow",
  "homepage": "https://airflow.apache.org",
  "description": "Apache Airflow is a platform to programmatically author, schedule, and monitor workflows.",
  "icon": "SimpleIcons:apacheairflow",
  "executables": [
    "airflow"
  ],
  "dotfiles": {
    "paths": [
      "~/airflow/airflow.cfg"
    ],
    "exclude": [
      "~/airflow/logs/",
      "~/airflow/airflow.db",
      "~/airflow/airflow-webserver.pid"
    ],
    "secret": [],
    "machine_lines": [
      {
        "file": "~/airflow/airflow.cfg",
        "match": {
          "prefix": [
            "dags_folder",
            "plugins_folder",
            "base_log_folder"
          ]
        },
        "scope": "backup"
      }
    ],
    "secret_paths": [
      {
        "file": "~/airflow/airflow.cfg",
        "match": {
          "prefix": [
            "fernet_key",
            "sql_alchemy_conn",
            "secret_key",
            "smtp_password"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Apache Airflow CLI",
    "description": "Work with DAGs and tasks. Celery, db, users, connections and other admin commands are left out.",
    "quality": "ai-draft",
    "base": "fig:airflow",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/airflow.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "dags",
          "list"
        ],
        "label": "List DAGs",
        "description": "List all DAGs.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/airflow.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "output",
            "label": "Output format",
            "type": "string",
            "option": [
              "--output",
              "-o"
            ],
            "suggestions": [
              {
                "value": "table",
                "label": "table"
              },
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "yaml",
                "label": "yaml"
              },
              {
                "value": "plain",
                "label": "plain"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "subdir",
            "label": "DAG file or directory",
            "description": "Defaults to AIRFLOW_HOME/dags.",
            "type": "path",
            "option": [
              "--subdir",
              "-S"
            ],
            "path": {
              "kind": "any",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List DAGs",
            "fields": [
              "output"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "output"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "subdir"
            ]
          }
        ]
      },
      {
        "path": [
          "dags",
          "trigger"
        ],
        "label": "Trigger a DAG run",
        "description": "Trigger a run of a DAG.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/airflow.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dag_id",
            "label": "DAG id",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "conf",
            "label": "Run configuration (JSON)",
            "type": "string",
            "option": [
              "--conf",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "run_id",
            "label": "Run id",
            "type": "string",
            "option": [
              "--run-id",
              "-r"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "exec_date",
            "label": "Execution date",
            "type": "string",
            "option": [
              "--exec-date",
              "-e"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "subdir",
            "label": "DAG file or directory",
            "description": "Defaults to AIRFLOW_HOME/dags.",
            "type": "path",
            "option": [
              "--subdir",
              "-S"
            ],
            "path": {
              "kind": "any",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "trigger",
            "label": "Trigger a run",
            "fields": [
              "dag_id",
              "conf",
              "run_id",
              "exec_date"
            ],
            "required": [
              "dag_id"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dag_id",
              "conf",
              "run_id",
              "exec_date"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "subdir"
            ]
          }
        ]
      },
      {
        "path": [
          "dags",
          "pause"
        ],
        "label": "Pause a DAG",
        "description": "Pause a DAG.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/airflow.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dag_id",
            "label": "DAG id",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "pause",
            "label": "Pause",
            "fields": [
              "dag_id"
            ],
            "required": [
              "dag_id"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dag_id"
            ]
          }
        ]
      },
      {
        "path": [
          "dags",
          "unpause"
        ],
        "label": "Unpause a DAG",
        "description": "Resume a paused DAG.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/airflow.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dag_id",
            "label": "DAG id",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "unpause",
            "label": "Unpause",
            "fields": [
              "dag_id"
            ],
            "required": [
              "dag_id"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dag_id"
            ]
          }
        ]
      },
      {
        "path": [
          "tasks",
          "list"
        ],
        "label": "List tasks of a DAG",
        "description": "List the tasks within a DAG.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/airflow.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dag_id",
            "label": "DAG id",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tree",
            "label": "Tree view",
            "type": "boolean",
            "option": [
              "--tree",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "subdir",
            "label": "DAG file or directory",
            "description": "Defaults to AIRFLOW_HOME/dags.",
            "type": "path",
            "option": [
              "--subdir",
              "-S"
            ],
            "path": {
              "kind": "any",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "list",
            "label": "List tasks",
            "fields": [
              "dag_id",
              "tree"
            ],
            "required": [
              "dag_id"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dag_id",
              "tree"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "subdir"
            ]
          }
        ]
      },
      {
        "path": [
          "tasks",
          "test"
        ],
        "label": "Test a task",
        "description": "Test one task instance without recording state.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/airflow.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dag_id",
            "label": "DAG id",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "task_id",
            "label": "Task id",
            "type": "string",
            "position": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "execution_date",
            "label": "Execution date or run id",
            "type": "string",
            "position": 2,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dry_run",
            "label": "Dry run (render templates only)",
            "type": "boolean",
            "option": [
              "--dry-run",
              "-n"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "task_params",
            "label": "Task params (JSON)",
            "type": "string",
            "option": [
              "--task-params",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "subdir",
            "label": "DAG file or directory",
            "description": "Defaults to AIRFLOW_HOME/dags.",
            "type": "path",
            "option": [
              "--subdir",
              "-S"
            ],
            "path": {
              "kind": "any",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "test",
            "label": "Test a task",
            "fields": [
              "dag_id",
              "task_id",
              "execution_date",
              "dry_run"
            ],
            "required": [
              "dag_id",
              "task_id"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dag_id",
              "task_id",
              "execution_date",
              "dry_run"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "task_params",
              "subdir"
            ]
          }
        ]
      }
    ]
  }
}
