> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/resilience-testing/chaos-engineering/use-chaos-engineering/probes/command-probes/command-probe-usage.md).

# Configure Command probe

This topic guides you on how to use the **command probe** inline and how to configure source parameter with the command probe. You can follow the same steps for other resilience probes.

### Before you begin, review the following <a href="#before-you-begin-review-the-following" id="before-you-begin-review-the-following"></a>

* [Command Probe](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/command-probes/index.md)
* [Create Probe](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/index.md#create-a-resilience-probe)

In the final step of creating a probe, provide details specific to that resilience probe (such as a command for the command probe, a query to the Prometheus probe, and so on).

#### Configure Command Probe <a href="#configure-command-probe" id="configure-command-probe"></a>

You can configure a probe using the YAML manifest or from the UI. When you use the UI to configure a probe, the probe attributes are minified in the corresponding YAML, and are referred using the **probeID**.

In this example, you will specify details of the command probe from the UI.

1. In the **Probe Details** modal, enter a command in the **Command** field.

   ![Step 1](/files/dws2k8ziKVsTuW4LkzOL)
2. Enter the **Type**, **Comparison criteria**, and the **Value**. Click **Configure Properties**. Provide other values like **Timeout**, **Interval**, **Attempt**, **Polling Interval**, and **Verbosity**. Click **Setup Probe**.

   ![Step 2](/files/caWIMVWnef1lp3wGyk8O)

Go to [sample YAML inline](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/command-probes/index.md#inline-mode) to tune a resilience probe from the manifest.

#### Configure Command probe with source parameter <a href="#configure-command-probe-with-source-parameter" id="configure-command-probe-with-source-parameter"></a>

1. Enter the **Type**, **Comparison criteria**, **Value**. Toggle to switch on the **Source** mode. Select **Setup probe**.

   ![Step 2](/files/D5kL01WfHI5emweuFhij)

{% hint style="info" %}
Alongside the **source** parameter, you can provide other specifications (for example, `imagePullPolicy`, custom image, environment variables, and so on). You can reference values from the ConfigMap and secret too.
{% endhint %}

Go to [sample YAML with source parameter](/resilience-testing/chaos-engineering/use-chaos-engineering/probes/command-probes/index.md#source-mode) to tune a resilience probe with source field configuration from the manifest.
