﻿---
title: stack kb apm-agent-configuration search-single-configuration cli command
description: Lookup single agent configuration Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/474/cli/stack/kb/apm-agent-configuration/search-single-configuration
---

# stack kb apm-agent-configuration search-single-configuration cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb apm-agent-configuration search-single-configuration \
  --service <service> \
  [options]
```

Lookup single agent configuration
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--service string required">
    Service
  </definition>
  <definition term="--etag string">
    If etags match then `applied_by_agent` field will be set to `true`
  </definition>
  <definition term="--[no-]mark-as-applied-by-agent">
    `markAsAppliedByAgent=true` means "force setting it to true regardless of etag".
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--[no-]json">
    output as JSON
  </definition>
</definitions>