﻿---
title: stack kb elastic-agent-binary-download-sources post-fleet-agent-download-sources cli command
description: Create an agent binary download source Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4948/reference/elastic-cli/cli/stack/kb/elastic-agent-binary-download-sources/post-fleet-agent-download-sources
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb elastic-agent-binary-download-sources post-fleet-agent-download-sources cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb elastic-agent-binary-download-sources post-fleet-agent-download-sources \
  --host <host> \
  --name <name> \
  [options]
```

Create an agent binary download source
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--host string required">
  </definition>
  <definition term="--name string required">
  </definition>
  <definition term="--auth string">
  </definition>
  <definition term="--id string">
  </definition>
  <definition term="--is-default">
  </definition>
  <definition term="--proxy-id string">
    The ID of the proxy to use for this download source. See the proxies API for more information.
  </definition>
  <definition term="--reserve-diskspace">
    If `true`, Elastic Agent reserves disk space equal to the size of the new agent package before an upgrade, so the upgrade fails early if there is not enough space. If not set, defaults to `true` on the agent side.
  </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>
  <definition term="--no-validate">
    skip input validation and send the request as-is
  </definition>
</definitions>


## Global Options

<definitions>
  <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="--json">
    output as JSON
  </definition>
</definitions>