﻿---
title: stack kb fleet-server-hosts put-fleet-fleet-server-hosts-itemid cli command
description: Update a Fleet Server host Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4089/reference/elastic-cli/cli/stack/kb/fleet-server-hosts/put-fleet-fleet-server-hosts-itemid
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb fleet-server-hosts put-fleet-fleet-server-hosts-itemid cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb fleet-server-hosts put-fleet-fleet-server-hosts-itemid \
  --item-id <item-id> \
  [options]
```

Update a Fleet Server host
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--item-id string required">
    The ID of the Fleet Server host
  </definition>
  <definition term="--allow-edit string[]">
    **Repeatable:** pass `--allow-edit` multiple times to supply more than one value
  </definition>
  <definition term="--host-urls string[]">
    **Repeatable:** pass `--host-urls` multiple times to supply more than one value
  </definition>
  <definition term="--is-default">
  </definition>
  <definition term="--is-internal">
  </definition>
  <definition term="--name string">
  </definition>
  <definition term="--proxy-id string">
  </definition>
  <definition term="--secrets string">
  </definition>
  <definition term="--ssl string">
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

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