{"id":21120,"library":"demisto-sdk","title":"Demisto SDK","description":"A Python library for developing, testing, and managing Cortex XSOAR content. Version 1.38.24 supports Python 3.9-3.12. Released approximately monthly.","status":"active","version":"1.38.24","language":"python","source_language":"en","source_url":"https://github.com/demisto/demisto-sdk","tags":["demisto","xsoar","cortex","sdk","security","automation"],"install":[{"cmd":"pip install demisto-sdk","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from demisto_sdk import DemistoSDK","symbol":"commands","correct":"from demisto_sdk import commands"}],"quickstart":{"code":"from demisto_sdk import DemistoSDK\nimport os\n\napi_key = os.environ.get('DEMISTO_API_KEY', '')\nbase_url = os.environ.get('DEMISTO_BASE_URL', 'https://api.demisto.com')\nsdk = DemistoSDK(api_key=api_key, base_url=base_url)\n# Example: validate content\nsdk.content_validate()","lang":"python","description":"Initialize DemistoSDK with API key and base URL, then run a content validation."},"warnings":[{"fix":"Use `from demisto_sdk import DemistoSDK`","message":"In v1.16.0, the DemistoSDK class moved from `demisto_sdk` to `demisto_sdk.__main__`. Import from `demisto_sdk` directly going forward.","severity":"breaking","affected_versions":"<1.16.0"},{"fix":"Use `--previous-version` instead","message":"The `validate` command's `--prev-ver` flag is deprecated in favor of `--previous-version`.","severity":"deprecated","affected_versions":">=1.30.0"},{"fix":"Use environment variables or a secrets manager.","message":"API keys should be stored securely. The SDK does not encrypt keys; avoid hardcoding.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'-3.12':19 '1.38.24':15 '3.9':18 'approxim':21 'autom':28 'content':13 'cortex':11,25 'demisto':1,23 'develop':7 'librari':5 'manag':10 'month':22 'python':4,17 'releas':20 'sdk':2,26 'secur':27 'support':16 'test':8 'version':14 'xsoar':12,24","created_at":"2026-04-27T16:58:11.349739+00:00","updated_at":"2026-04-27T16:58:11.349739+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.39.1","cli_name":"demisto-sdk","cli_version":"Traceback (most recent call last):","type":"library","homepage":"https://www.paloaltonetworks.com/cortex/xsoar","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/demisto-sdk/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","testing","workflow"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}