The upload command uploads a content entity to Cortex XSOAR or Cortex XSIAM.
Uploads an entity to Cortex XSOAR or Cortex XSIAM.
The upload command requires interactions with Cortex XSIAM or Cortex XSOAR. Before you use the command, verify you have set up the environment variables.
Argument | Description |
|---|---|
-i <PATH_IN_CONTENT>, --input --<PATH_IN_CONTENT> | <PATH_IN_CONTENT> is one of the following:
|
-z/-nz, --zip/--no-zip | Whether to compress a pack to a zip file before upload. This flag is relevant only for packs. |
--keep-zip <DIRECTORY_FOR_THE_ZIP> | If a pack is passed in the |
--override-existing | If true, skips the override confirmation prompt while uploading packs. |
--insecure | Skips certificate validation. |
--input-config-file | The path to the config file to download all the custom packs from. |
--skip-validation | If true, skips all upload pack validations. Use only when migrating existing custom content entities to custom content packs to override all the entities with the packs. |
-x, --xsiam | Uploads the pack to a Cortex XSIAM tenant. Must be used together with |
--console-log-threshold | Minimum logging threshold for the console logger. Default value is |
--file-log-threshold | Minimum logging threshold for the file logger. Default value is |
-tpb | Adds the test playbook for upload. This flag is relevant only for packs. |
-mp, --marketplace | The Marketplace to which the content will be uploaded. |
--reattach | Reattaches detached files in the Cortex XSOAR instance for the CI/CD flow. If you set the |
You can upload these content entities to a remote instance.
Integrations
Playbooks
Scripts
Widgets
Dashboards
Incident types
Incident fields
Indicator fields
Layouts
Layout containers
Classifiers
Packs
Zipped packs
Reports
demisto-sdk upload -i Packs/HelloWorld/Integrations/HelloWorld/Creates a unified integration YAML file and uploads it to the Cortex XSOAR instance.
demisto-sdk upload -i Packs/HelloWorld/Scripts/HelloWorldScriptCreates a temporary unified file of the
HelloWorldScriptscript which is uploaded to the Cortex XSOAR instance.demisto-sdk upload -i Packs/HelloWorld/ScriptsIterates over the scripts folder in the
HelloWorldpack and creates a temporary unified file for each script and uploads it to the Cortex XSOAR instance.demisto-sdk upload -i Packs/HelloWorldIterates over all content entities in the
HelloWorldpack and uploads each entity to the Cortex XSOAR instance.demisto-sdk upload -i Packs/HelloWorld -zZips the
HelloWorldpack and uploads the zip fileuploadable_packs.zipas a pack to the designated Cortex XSOAR Marketplace.demisto-sdk upload -i Packs/HelloWorld -z --keep-zip some/directoryZips the
HelloWorldpack insome/directory/uploadable_packs.zipdirectory and uploads the zip file as a pack to the designated Cortex XSOAR Marketplace.demisto-sdk upload -i path/to/HelloWorld.zipUploads the zipped
HelloWorld.zippack to the Cortex XSOAR instance.demisto-sdk upload -i Integrations/GoogleCloudTranslate/integration-GoogleCloudTranslate.yml --insecureUploads the integration YAML file
integration-GoogleCloudTranslate.ymlto the Cortex XSOAR instance without a certificate validation.demisto-sdk upload --input-config-file demisto_sdk/commands/upload/tests/data/xsoar_config.jsonUploads the custom packs from the config file, a custom pack can be a zipped or unzipped file.
demisto-sdk upload -i Packs/HelloWorld -z --skip-validationZips the
HelloWorldpack and uploads without any validation the zip fileuploadable_packs.zipas a pack to the designated Cortex XSOAR Marketplace. This skip validation parameter is for migration from custom content entities to custom content packs.demisto-sdk upload -i Packs/HelloWorld -z --xsiamZips the
HelloWorldpack and will uploads it to the Cortex XSIAM server Marketplace page.