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/HelloWorldScript
Creates a temporary unified file of the
HelloWorldScript
script which is uploaded to the Cortex XSOAR instance.demisto-sdk upload -i Packs/HelloWorld/Scripts
Iterates over the scripts folder in the
HelloWorld
pack and creates a temporary unified file for each script and uploads it to the Cortex XSOAR instance.demisto-sdk upload -i Packs/HelloWorld
Iterates over all content entities in the
HelloWorld
pack and uploads each entity to the Cortex XSOAR instance.demisto-sdk upload -i Packs/HelloWorld -z
Zips the
HelloWorld
pack and uploads the zip fileuploadable_packs.zip
as a pack to the designated Cortex XSOAR Marketplace.demisto-sdk upload -i Packs/HelloWorld -z --keep-zip some/directory
Zips the
HelloWorld
pack insome/directory/uploadable_packs.zip
directory and uploads the zip file as a pack to the designated Cortex XSOAR Marketplace.demisto-sdk upload -i path/to/HelloWorld.zip
Uploads the zipped
HelloWorld.zip
pack to the Cortex XSOAR instance.demisto-sdk upload -i Integrations/GoogleCloudTranslate/integration-GoogleCloudTranslate.yml --insecure
Uploads the integration YAML file
integration-GoogleCloudTranslate.yml
to the Cortex XSOAR instance without a certificate validation.demisto-sdk upload --input-config-file demisto_sdk/commands/upload/tests/data/xsoar_config.json
Uploads 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-validation
Zips the
HelloWorld
pack and uploads without any validation the zip fileuploadable_packs.zip
as 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 --xsiam
Zips the
HelloWorld
pack and will uploads it to the Cortex XSIAM server Marketplace page.