stack kb cases add-case-file cli command
Auth required
elastic stack kb cases add-case-file --case-id <case-id> --file <file> [options]
Attach a file to a case
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--case-idstringrequired- The caseId parameter
--filestringrequired- The file being attached to the case.
--filenamestring- The desired name of the file being attached to the case, it can be different than the name of the file in the filesystem. This should not include the file extension.
--input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--json-
output as JSON