> 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). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Install Demisto SDK

Install the Demisto SDK or upgrade it if it is already installed.

Ensure you have the following:

* A Linux, macOS, or WSL2 (Windows Subsystem for Linux) machine.

  Windows users should run Demisto SDK commands through WSL2 or a container.
* Python 3.10 to 3.14
* Git
* Check whether the SDK is installed and the version:\
  `demisto-sdk -v`\
  If it prints a version number, compare it with the latest release by going to [demiso.sdk Release History](https://pypi.org/project/demisto-sdk/#history). If you have the SDK installed, but it is not the latest version, upgrade:\
  `pip3 install --upgrade demisto-sdk`
* Check Node.js.\
  The validate and format commands use Node.js to check Markdown files. This makes sure your README files render correctly in Cortex XSOAR, Cortex XSIAM, and xsoar.pan.dev.\
  `node -v`\
  If not installed, install [Node.js](https://nodejs.org/).

### Install the Demsito SDK

If you already implemented the development setup `bootstrap` process, you don't need to install the SDK manually since it is installed for you in 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 that is not part of the content repository.

1. Open your terminal and run the following command:\
   `pip3 install demisto-sdk`
2. Install the required Node.js packages:\
   The `validate` and `format` commands need Node.js to check Markdown files. This check makes sure your README files render correctly. Install the required packages in your `node_modules` folder:\
   `npm install @mdx-js/mdx fs-extra commander`

#### Next step

Set up [Demisto SDK environment variables](https://cortex-docs.paloaltonetworks.com/demisto-sdk-development-guide/demisto-sdk-guide/install-demisto-sdk/environment-variables-setup.md).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
