demisto-sdk


Namedemisto-sdk JSON
Version 1.38.8 PyPI version JSON
download
home_pageNone
Summary"A Python library for the Demisto SDK"
upload_time2025-07-22 14:43:36
maintainerNone
docs_urlNone
authorDemisto
requires_python<3.13,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Demisto SDK

[![PyPI version](https://badge.fury.io/py/demisto-sdk.svg)](https://badge.fury.io/py/demisto-sdk)
[![CircleCI](https://circleci.com/gh/demisto/demisto-sdk/tree/master.svg?style=svg)](https://circleci.com/gh/demisto/demisto-sdk/tree/master)
[![Coverage Status](https://coveralls.io/repos/github/demisto/demisto-sdk/badge.svg?branch=master)](https://coveralls.io/github/demisto/demisto-sdk?branch=master)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

The Demisto SDK is a Python library designed to aid the development process, both to validate entities being developed and to assist in the interaction between your development setup and Cortex XSOAR or Cortex XSIAM.

Requirements:

- Python 3.9, 3.10 or 3.11.
- git installed.
- A linux, mac or WSL2 machine.

Windows machines are not supported - use WSL2 or run in a container instead.

## Usage

### Installation

- **Install** - `pip3 install demisto-sdk`
- **Upgrade** - `pip3 install --upgrade demisto-sdk`

### Environment Variable Setup
**Connect demisto-sdk with Cortex XSOAR server** - Some SDK commands require you to have an interaction with the Cortex XSOAR or Cortex XSIAM server. Examples of such interactions
include uploading and downloading entities to or from XSOAR or XSIAM and running commands in the CLI.

To use these functions, Set the following environment variables, or place an [.env file](https://pypi.org/project/python-dotenv/) at the root of the content pack:

#### For Cortex XSOAR 6.x Only
 1. Get your API key by going to the Cortex XSOAR server -> `Settings` -> `Integrations` -> `API Keys` -> `Get Your Key` -> Give your key a name and press `Generate Key`.
 2. Copy the given key.
 3. Add the following parameters to `~/.zshrc` and `~/.bash_profile`:

    ```bash
    export DEMISTO_BASE_URL=<http or https>://<demisto-server url or ip>:<port>
    export DEMISTO_API_KEY=<API key>
    ```

#### For Cortex XSIAM or Cortex XSOAR 8.x and above
1. The base URL should be retrieved from the XSIAM instance by navigating to `Settings` -> `Configurations` -> `API Keys` -> clicking on the `Copy URL` button located at the top right corner of the page, and not the browser URL.
2. The API key should be set to a Standard security level and must have the Instance Administrator role.
3. The `XSIAM_AUTH_ID` environment variable needs to be set. Get it from the `ID` column of the created API Key.
4. Add the following parameters to `~/.zshrc` and `~/.bash_profile`:

    ```bash
    export DEMISTO_BASE_URL=<BASE_URL>
    export DEMISTO_API_KEY=<API_KEY>
    export XSIAM_AUTH_ID=<THE_XSIAM_AUTH_ID>
    ```

- Please note that once the `XSIAM_AUTH_ID` environment variable is set, the SDK commands will be configured to work with a Cortex XSIAM / XSOAR 8.x instance.
In order to set Demisto SDK to work with a Cortex XSOAR 6.x instance, you need to delete the `XSIAM_AUTH_ID` parameter from your environment. To do this, please run the following command:
    ```bash
    unset XSIAM_AUTH_ID
    ```


- In case the primary git branch is not **master**, or the upstream is not named **origin**, set them with environment variables:
    ```bash
    export DEMISTO_DEFAULT_BRANCH = <branch name here>
    export DEMISTO_DEFAULT_REMOTE = <upstream name here>
    ```

    > For more configurations, check the [demisto-py](https://github.com/demisto/demisto-py) repo (the SDK uses demisto-py to communicate with Cortex XSOAR).

- For the **Validate** and **Format** commands to work properly:
      - Install node.js, and make sure `@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 make sure they render properly on XSOAR and [xsoar.pan.dev](https://xsoar.pan.dev).

- Reload your terminal.

---

### CLI usage

You can use the SDK in the CLI as follows:

```bash
demisto-sdk <command> <args>
```

For more information, run `demisto-sdk -h`.

For more information on a specific command execute `demisto-sdk <command> -h`.

### Content path

The **demisto-sdk** is made to work with Cortex content, structured similar to the [official Cortex content repo](https://github.com/demisto/content).

Demisto-SDK commands work best when called from the content directory or any of its subfolders.
To run Demisto-SDK commands from other folders, you may set the `DEMISTO_SDK_CONTENT_PATH` environment variable.

We recommend running all demisto-SDK commands from a folder with a git repo, or any of its subfolders. To suppress warnings about running commands outside a content repo folder, set the `DEMISTO_SDK_IGNORE_CONTENT_WARNING` environment variable.

### Version Check

`demisto-sdk` will check against the GitHub repository releases for a new version every time it runs and will issue a warning if you are not using the latest and greatest. If you wish to skip this check you can set the environment variable: `DEMISTO_SDK_SKIP_VERSION_CHECK`. For example:

```bash
export DEMISTO_SDK_SKIP_VERSION_CHECK=yes
```

### Run using Docker image

You can run the Demisto-SDK using a docker image. For more details go to [Demisto-SDK Docker](./docs/create_command.md).

---

## Commands

Supported commands:

1. [init](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/init/README.md)
2. [Validate](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/validate/README.md)
3. [Pre-Commit](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/pre_commit/README.md)
4. [Secrets](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/secrets/README.md)
5. [Prepare-Content](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/prepare_content/README.md#prepare-content)
6. [Split](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/split/README.md)
7. [Format](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/format/README.md)
8. [Run](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/run_cmd/README.md)
9. [Run-playbook](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/run_playbook/README.md)
10. [Upload](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/upload/README.md)
11. [Download](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/download/README.md)
12. [Generate-docs](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/generate_docs/README.md)
13. [Generate-test-playbook](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/generate_test_playbook/README.md)
14. [Generate-outputs](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/generate_outputs/README.md)
15. [Update-release-notes](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/update_release_notes/README.md)
16. [Zip-packs](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/zip_packs/README.md)
17. [openapi-codegen](https://xsoar.pan.dev/docs/integrations/openapi-codegen)
18. [postman-codegen](https://xsoar.pan.dev/docs/integrations/postman-codegen)
19. [generate-integration](https://xsoar.pan.dev/docs/integrations/code-generator)
20. [generate-yml-from-python](https://xsoar.pan.dev/docs/integrations/yml-from-python-code-gen)
21. [generate-unit-tests](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/generate_unit_tests/README.md)
22. [setup-env](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/setup_env/README.md)

---

### Logs

Log files are generated and stored automatically by default in the user's home directory:  
**Linux / macOS**: `$HOME/.demisto-sdk/logs`  
**Windows**: `%USERPROFILE%\.demisto-sdk\logs`  

The default directory can be overriden using the `--log-file-path` flag, or the `DEMISTO_SDK_LOG_FILE_PATH` environment variable.

---

### Customizable command configuration

You can create your own configuration for the `demisto-sdk` commands by creating a file named `.demisto-sdk-conf` within the directory from which you run the commands.
This file will enable you to set a default value to the existing command flags that will take effect whenever the command is run.
This can be done by entering the following structure into the file:

```INI
[command_name]
flag_name=flag_default_value
```

Note: Make sure to use the flag's full name and input `_` instead of a `-` if it exists in the flag name (e.g. instead of `no-docker-checks` use `no_docker_checks`).

Here are a few examples:

- As a user, I would like to include untracked git files in my validation when running the `validate` command. In the `.demisto-sdk-conf` file I'll enter:

   ```INI
   [validate]
   include_untracked=true
   ```

- As a user, I would like to automatically use minor version changes when running the `update-release-notes` command. In the `.demisto-sdk-conf` file I'll enter:

   ```INI
   [update-release-notes]
   update_type=minor
   ```

---

## License

MIT - See [LICENSE](LICENSE) for more information.

---

## How to setup a development environment?

Follow the guide found [here](CONTRIBUTION.md#2-install-demisto-sdk-dev-environment) to setup your `demisto-sdk` dev environment.
The development environment is connected to the branch you are currently using in the SDK repository.

---

## Contributions

Contributions are welcome and appreciated.
For information regarding contributing, press [here](CONTRIBUTION.md).

---

## Internet Connection

An internet connection is required for the following commands to work properly:

1. [Format](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/format/README.md)
2. [Validate](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/validate/README.md)
3. [Update-release-notes](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/update_release_notes/README.md)
4. [Pre-commit](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/pre_commit/README.md)

Note that the [Download](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/download/README.md) command will work only partially without an internet connection, it will fail when using the '-fmt, --run-format' argument.

- When working offline (or in an airgapped environment), set the `DEMISTO_SDK_OFFLINE_ENV` environment variable to `true`:

   ```bash
   export DEMISTO_SDK_OFFLINE_ENV=TRUE
   ```

   When set, Demisto-SDK features requiring an internet connection will not be run, often saving some time and avoiding errors.

---

## Docker Usage

Docker is required to run certain commands.

The following command requires Docker:

1. [setup-env](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/setup_env/README.md)

However, some commands can be executed partially without Docker:

1. [Format](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/format/README.md) - To run without Docker, use the `--no-graph` flag.
2. [Generate-docs](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/generate_docs/README.md) - To run without Docker, use the `--no-graph` flag.
3. [Validate](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/validate/README.md) - To skip Docker validation, use the `--no-docker-checks` flag.
4. [pre-commit](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/pre_commit/README.md) - To run without Docker hooks, use the `--no-docker` flag.

---

## XSOAR CI/CD

For information regarding XSOAR CI/CD, please see [this article](https://xsoar.pan.dev/docs/reference/packs/content-management)

## Custom Container Registry

By default, the `demisto-sdk` will use `dockerhub` as the container registry to pull the integrations and scripts docker image.
In order configure a custom container registry, the following environment variables must be set:

- `DEMISTO_SDK_CONTAINER_REGISTRY`: the URL of the container registry.
- `DEMISTO_SDK_CR_USER`: the username to use in the container registry.
- `DEMISTO_SDK_CR_PASSWORD`: the password to use in the container registry.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "demisto-sdk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "Demisto",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/1c/7e/7c4734d24bbc1d284919e4d71c95ea88c6b6f269af01549156f149faaa0f/demisto_sdk-1.38.8.tar.gz",
    "platform": null,
    "description": "# Demisto SDK\n\n[![PyPI version](https://badge.fury.io/py/demisto-sdk.svg)](https://badge.fury.io/py/demisto-sdk)\n[![CircleCI](https://circleci.com/gh/demisto/demisto-sdk/tree/master.svg?style=svg)](https://circleci.com/gh/demisto/demisto-sdk/tree/master)\n[![Coverage Status](https://coveralls.io/repos/github/demisto/demisto-sdk/badge.svg?branch=master)](https://coveralls.io/github/demisto/demisto-sdk?branch=master)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)\n[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nThe Demisto SDK is a Python library designed to aid the development process, both to validate entities being developed and to assist in the interaction between your development setup and Cortex XSOAR or Cortex XSIAM.\n\nRequirements:\n\n- Python 3.9, 3.10 or 3.11.\n- git installed.\n- A linux, mac or WSL2 machine.\n\nWindows machines are not supported - use WSL2 or run in a container instead.\n\n## Usage\n\n### Installation\n\n- **Install** - `pip3 install demisto-sdk`\n- **Upgrade** - `pip3 install --upgrade demisto-sdk`\n\n### Environment Variable Setup\n**Connect demisto-sdk with Cortex XSOAR server** - Some SDK commands require you to have an interaction with the Cortex XSOAR or Cortex XSIAM server. Examples of such interactions\ninclude uploading and downloading entities to or from XSOAR or XSIAM and running commands in the CLI.\n\nTo use these functions, Set the following environment variables, or place an [.env file](https://pypi.org/project/python-dotenv/) at the root of the content pack:\n\n#### For Cortex XSOAR 6.x Only\n 1. Get your API key by going to the Cortex XSOAR server -> `Settings` -> `Integrations` -> `API Keys` -> `Get Your Key` -> Give your key a name and press `Generate Key`.\n 2. Copy the given key.\n 3. Add the following parameters to `~/.zshrc` and `~/.bash_profile`:\n\n    ```bash\n    export DEMISTO_BASE_URL=<http or https>://<demisto-server url or ip>:<port>\n    export DEMISTO_API_KEY=<API key>\n    ```\n\n#### For Cortex XSIAM or Cortex XSOAR 8.x and above\n1. The base URL should be retrieved from the XSIAM instance by navigating to `Settings` -> `Configurations` -> `API Keys` -> clicking on the `Copy URL` button located at the top right corner of the page, and not the browser URL.\n2. The API key should be set to a Standard security level and must have the Instance Administrator role.\n3. The `XSIAM_AUTH_ID` environment variable needs to be set. Get it from the `ID` column of the created API Key.\n4. Add the following parameters to `~/.zshrc` and `~/.bash_profile`:\n\n    ```bash\n    export DEMISTO_BASE_URL=<BASE_URL>\n    export DEMISTO_API_KEY=<API_KEY>\n    export XSIAM_AUTH_ID=<THE_XSIAM_AUTH_ID>\n    ```\n\n- Please note that once the `XSIAM_AUTH_ID` environment variable is set, the SDK commands will be configured to work with a Cortex XSIAM / XSOAR 8.x instance.\nIn order to set Demisto SDK to work with a Cortex XSOAR 6.x instance, you need to delete the `XSIAM_AUTH_ID` parameter from your environment. To do this, please run the following command:\n    ```bash\n    unset XSIAM_AUTH_ID\n    ```\n\n\n- In case the primary git branch is not **master**, or the upstream is not named **origin**, set them with environment variables:\n    ```bash\n    export DEMISTO_DEFAULT_BRANCH = <branch name here>\n    export DEMISTO_DEFAULT_REMOTE = <upstream name here>\n    ```\n\n    > For more configurations, check the [demisto-py](https://github.com/demisto/demisto-py) repo (the SDK uses demisto-py to communicate with Cortex XSOAR).\n\n- For the **Validate** and **Format** commands to work properly:\n      - Install node.js, and make sure `@mdx-js/mdx`, `fs-extra` and `commander` are installed in node-modules folder (`npm install ...`).\n      - Set the `DEMISTO_README_VALIDATION` environment variable to True.\n\n       MDX is used to validate markdown files, and make sure they render properly on XSOAR and [xsoar.pan.dev](https://xsoar.pan.dev).\n\n- Reload your terminal.\n\n---\n\n### CLI usage\n\nYou can use the SDK in the CLI as follows:\n\n```bash\ndemisto-sdk <command> <args>\n```\n\nFor more information, run `demisto-sdk -h`.\n\nFor more information on a specific command execute `demisto-sdk <command> -h`.\n\n### Content path\n\nThe **demisto-sdk** is made to work with Cortex content, structured similar to the [official Cortex content repo](https://github.com/demisto/content).\n\nDemisto-SDK commands work best when called from the content directory or any of its subfolders.\nTo run Demisto-SDK commands from other folders, you may set the `DEMISTO_SDK_CONTENT_PATH` environment variable.\n\nWe recommend running all demisto-SDK commands from a folder with a git repo, or any of its subfolders. To suppress warnings about running commands outside a content repo folder, set the `DEMISTO_SDK_IGNORE_CONTENT_WARNING` environment variable.\n\n### Version Check\n\n`demisto-sdk` will check against the GitHub repository releases for a new version every time it runs and will issue a warning if you are not using the latest and greatest. If you wish to skip this check you can set the environment variable: `DEMISTO_SDK_SKIP_VERSION_CHECK`. For example:\n\n```bash\nexport DEMISTO_SDK_SKIP_VERSION_CHECK=yes\n```\n\n### Run using Docker image\n\nYou can run the Demisto-SDK using a docker image. For more details go to [Demisto-SDK Docker](./docs/create_command.md).\n\n---\n\n## Commands\n\nSupported commands:\n\n1. [init](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/init/README.md)\n2. [Validate](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/validate/README.md)\n3. [Pre-Commit](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/pre_commit/README.md)\n4. [Secrets](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/secrets/README.md)\n5. [Prepare-Content](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/prepare_content/README.md#prepare-content)\n6. [Split](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/split/README.md)\n7. [Format](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/format/README.md)\n8. [Run](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/run_cmd/README.md)\n9. [Run-playbook](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/run_playbook/README.md)\n10. [Upload](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/upload/README.md)\n11. [Download](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/download/README.md)\n12. [Generate-docs](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/generate_docs/README.md)\n13. [Generate-test-playbook](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/generate_test_playbook/README.md)\n14. [Generate-outputs](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/generate_outputs/README.md)\n15. [Update-release-notes](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/update_release_notes/README.md)\n16. [Zip-packs](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/zip_packs/README.md)\n17. [openapi-codegen](https://xsoar.pan.dev/docs/integrations/openapi-codegen)\n18. [postman-codegen](https://xsoar.pan.dev/docs/integrations/postman-codegen)\n19. [generate-integration](https://xsoar.pan.dev/docs/integrations/code-generator)\n20. [generate-yml-from-python](https://xsoar.pan.dev/docs/integrations/yml-from-python-code-gen)\n21. [generate-unit-tests](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/generate_unit_tests/README.md)\n22. [setup-env](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/setup_env/README.md)\n\n---\n\n### Logs\n\nLog files are generated and stored automatically by default in the user's home directory:  \n**Linux / macOS**: `$HOME/.demisto-sdk/logs`  \n**Windows**: `%USERPROFILE%\\.demisto-sdk\\logs`  \n\nThe default directory can be overriden using the `--log-file-path` flag, or the `DEMISTO_SDK_LOG_FILE_PATH` environment variable.\n\n---\n\n### Customizable command configuration\n\nYou can create your own configuration for the `demisto-sdk` commands by creating a file named `.demisto-sdk-conf` within the directory from which you run the commands.\nThis file will enable you to set a default value to the existing command flags that will take effect whenever the command is run.\nThis can be done by entering the following structure into the file:\n\n```INI\n[command_name]\nflag_name=flag_default_value\n```\n\nNote: Make sure to use the flag's full name and input `_` instead of a `-` if it exists in the flag name (e.g. instead of `no-docker-checks` use `no_docker_checks`).\n\nHere are a few examples:\n\n- As a user, I would like to include untracked git files in my validation when running the `validate` command. In the `.demisto-sdk-conf` file I'll enter:\n\n   ```INI\n   [validate]\n   include_untracked=true\n   ```\n\n- As a user, I would like to automatically use minor version changes when running the `update-release-notes` command. In the `.demisto-sdk-conf` file I'll enter:\n\n   ```INI\n   [update-release-notes]\n   update_type=minor\n   ```\n\n---\n\n## License\n\nMIT - See [LICENSE](LICENSE) for more information.\n\n---\n\n## How to setup a development environment?\n\nFollow the guide found [here](CONTRIBUTION.md#2-install-demisto-sdk-dev-environment) to setup your `demisto-sdk` dev environment.\nThe development environment is connected to the branch you are currently using in the SDK repository.\n\n---\n\n## Contributions\n\nContributions are welcome and appreciated.\nFor information regarding contributing, press [here](CONTRIBUTION.md).\n\n---\n\n## Internet Connection\n\nAn internet connection is required for the following commands to work properly:\n\n1. [Format](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/format/README.md)\n2. [Validate](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/validate/README.md)\n3. [Update-release-notes](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/update_release_notes/README.md)\n4. [Pre-commit](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/pre_commit/README.md)\n\nNote that the [Download](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/download/README.md) command will work only partially without an internet connection, it will fail when using the '-fmt, --run-format' argument.\n\n- When working offline (or in an airgapped environment), set the `DEMISTO_SDK_OFFLINE_ENV` environment variable to `true`:\n\n   ```bash\n   export DEMISTO_SDK_OFFLINE_ENV=TRUE\n   ```\n\n   When set, Demisto-SDK features requiring an internet connection will not be run, often saving some time and avoiding errors.\n\n---\n\n## Docker Usage\n\nDocker is required to run certain commands.\n\nThe following command requires Docker:\n\n1. [setup-env](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/setup_env/README.md)\n\nHowever, some commands can be executed partially without Docker:\n\n1. [Format](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/format/README.md) - To run without Docker, use the `--no-graph` flag.\n2. [Generate-docs](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/generate_docs/README.md) - To run without Docker, use the `--no-graph` flag.\n3. [Validate](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/validate/README.md) - To skip Docker validation, use the `--no-docker-checks` flag.\n4. [pre-commit](https://github.com/demisto/demisto-sdk/blob/master/demisto_sdk/commands/pre_commit/README.md) - To run without Docker hooks, use the `--no-docker` flag.\n\n---\n\n## XSOAR CI/CD\n\nFor information regarding XSOAR CI/CD, please see [this article](https://xsoar.pan.dev/docs/reference/packs/content-management)\n\n## Custom Container Registry\n\nBy default, the `demisto-sdk` will use `dockerhub` as the container registry to pull the integrations and scripts docker image.\nIn order configure a custom container registry, the following environment variables must be set:\n\n- `DEMISTO_SDK_CONTAINER_REGISTRY`: the URL of the container registry.\n- `DEMISTO_SDK_CR_USER`: the username to use in the container registry.\n- `DEMISTO_SDK_CR_PASSWORD`: the password to use in the container registry.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\"A Python library for the Demisto SDK\"",
    "version": "1.38.8",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4c4fcd472076f89aefaad202038779525691f483c0ae8981f90fa9ed34e6138",
                "md5": "0322c82ce5c51b49e595890b4700a93a",
                "sha256": "8bae55c7f847084233ff5a2f4a0a5a801735d4a5d6b4734572ea089b599d3955"
            },
            "downloads": -1,
            "filename": "demisto_sdk-1.38.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0322c82ce5c51b49e595890b4700a93a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.9",
            "size": 2343888,
            "upload_time": "2025-07-22T14:43:34",
            "upload_time_iso_8601": "2025-07-22T14:43:34.801238Z",
            "url": "https://files.pythonhosted.org/packages/d4/c4/fcd472076f89aefaad202038779525691f483c0ae8981f90fa9ed34e6138/demisto_sdk-1.38.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1c7e7c4734d24bbc1d284919e4d71c95ea88c6b6f269af01549156f149faaa0f",
                "md5": "75cbb5b6f0e15dfa547b9b25e0862846",
                "sha256": "90d3230df9b96897e5879d53770897c4f58c82fce05ba132d09e74a575b2b1a9"
            },
            "downloads": -1,
            "filename": "demisto_sdk-1.38.8.tar.gz",
            "has_sig": false,
            "md5_digest": "75cbb5b6f0e15dfa547b9b25e0862846",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.9",
            "size": 1787163,
            "upload_time": "2025-07-22T14:43:36",
            "upload_time_iso_8601": "2025-07-22T14:43:36.906059Z",
            "url": "https://files.pythonhosted.org/packages/1c/7e/7c4734d24bbc1d284919e4d71c95ea88c6b6f269af01549156f149faaa0f/demisto_sdk-1.38.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-22 14:43:36",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "demisto-sdk"
}
        
Elapsed time: 0.40808s