﻿---
title: stack kb security-endpoint-management-api endpoint-kill-process-action cli command
description: Terminate a process 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/406/cli/stack/kb/security-endpoint-management-api/endpoint-kill-process-action
---

# stack kb security-endpoint-management-api endpoint-kill-process-action cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-endpoint-management-api endpoint-kill-process-action \
  --endpoint-ids <endpoint-ids> \
  --parameters <parameters> \
  [options]
```

Terminate a process

## Options

<definitions>
  <definition term="--endpoint-ids string[] required">
    List of endpoint IDs (cannot contain empty strings). Max of 250.
  </definition>
  <definition term="--parameters string required">
  </definition>
  <definition term="--agent-type string">
    List of agent types to retrieve. Defaults to `endpoint`.
  </definition>
  <definition term="--alert-ids string[]">
    If this action is associated with any alerts, they can be specified here. The action will be logged in any cases associated with the specified alerts. Max of 50.
  </definition>
  <definition term="--case-ids string[]">
    The IDs of cases where the action taken will be logged. Max of 50.
  </definition>
  <definition term="--comment string">
    Optional comment
  </definition>
</definitions>


## stack Options

<definitions>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="-V --[no-]version">
    Print the Elastic CLI version
  </definition>
  <definition term="--config-file string">
    path to a config file (default: ~/.elasticrc.yml)
  </definition>
  <definition term="--use-context string">
    override the active context from the config file
  </definition>
  <definition term="--command-profile string">
    restrict available commands to a deployment profile (serverless, stack, default)
  </definition>
  <definition term="--[no-]json">
    output as JSON
  </definition>
  <definition term="--output-fields string">
    comma-separated list of fields to include in output (dot-notation supported)
  </definition>
  <definition term="--output-template string">
    Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
  </definition>
  <definition term="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>