Create a preset custom command configuration - Demisto SDK Guide - Cortex - Security Operations

Demisto SDK Guide

Creation date
2023-08-01
Last date published
2024-04-01
Category
Demisto SDK Guide
Abstract

Create a custom configuration for demisto-sdk commands.

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 enables you to set a default value to the existing command flags that take effect whenever the command is run. Use the following structure in the file:

[command_name]
flag_name=flag_default_value

Note

Use the flag's full name. If there is a dash - in the flag name, change that to an underscore _. For example, instead of no-docker-checks use no_docker_checks.

The following are examples of preset custom command configurations in the .demisto-sdk-conf file.

  • If you prefer not to use the MyPy linter in your environment when using the lint command:

    [lint]
    no_mypy=true
  • If you want to include untracked git files in your validation when running the validate command:

    [validate]
    include_untracked=true
  • If you want to automatically use minor version changes when running the update-release-notes command:

    [update-release-notes]
    update_type=minor