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:
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
If you have the SDK installed, but it is not the latest version, upgrade.
pip3 install --upgrade demisto-sdk
If you do not have the SDK installed, install the library and upgrade.
pip3 install demisto-sdk
For the
validate
andformat
commands to work correctly, installnode.js
, and verify@mdx-js/mdx
,fs-extra
andcommander
are installed in node-modules foldernpm install ...
. Set theDEMISTO_README_VALIDATION
environment variable toTrue
.MDX is used to validate markdown files, and to ensure they render properly on Cortex XSOAR/Cortex XSIAM and xsoar.pan.dev.
Restart your terminal.