> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/demisto-sdk-development-guide/demisto-sdk-guide/install-demisto-sdk.md).

# Install Demisto SDK

{% hint style="warning" %}

### Prerequisites

* Python 3.9, 3.10, or 3.11
* Git is installed
* A machine running Linux, macOS, or WSL2 (Windows Subsystem for Linux)

  Windows users should run Demisto SDK commands through WSL2 or a container.
  {% endhint %}

### 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](https://pypi.org/project/demisto-sdk/#history).

   `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/mdx`, `fs-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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/demisto-sdk-development-guide/demisto-sdk-guide/install-demisto-sdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
