generate-yml-from-python - Demisto SDK Guide - Cortex - Security Operations

Demisto SDK Guide

Creation date
2023-08-01
Last date published
2024-04-01
Category
Demisto SDK Guide
Abstract

The generate-yml-from-python command creates a YAML file from Python code that includes a specific syntax.

Generates a YAML file from Python code that includes its special syntax.

The output file name is the same as the Python code but with the .yml extension instead of .py.

The generation currently supports integrations only. The feature is supported from content Base pack version 1.20.0 and on. You must have the following line in your Python code: from CommonServerPython import *.