Install Demisto SDK - Demisto SDK Guide - Cortex - Security Operations

Demisto SDK Guide

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

How to install the Demisto SDK or upgrade it if it is already installed.

Danger

  • Python 3.9, 3.10, or 3.11

  • git installed

  • A machine running Linux, macOS, or WSL2 (Windows Subsystem for Linux)

    Windows users should run Demisto SDK commands through WSL2 or a container.

Installation

If you already implemented the development setup bootstrap process you don't need to install the SDK manually since it is installed for you on your virtual environment.

These installation steps are only required if you are not working with the bootstrap or if you are working on a repository which is not part of the content repository. To manually install the Demisto SDK, enter your terminal and run the following commands:

  1. If you already have the SDK installed, verify which version of the SDK is installed. You can also check the latest version number.

    demisto-sdk -v

  2. If you have the SDK installed, but it is not the latest version, upgrade.

    pip3 install --upgrade demisto-sdk

  3. If you do not have the SDK installed, install the library and upgrade.

    pip3 install demisto-sdk

  4. For the validate and format commands to work correctly, install node.js, and verify @mdx-js/mdxfs-extra and commander are installed in node-modules folder npm install .... Set the DEMISTO_README_VALIDATION environment variable to True.

    MDX is used to validate markdown files, and to ensure they render properly on Cortex XSOAR/Cortex XSIAM and xsoar.pan.dev.

  5. Restart your terminal.