﻿---
title: stack kb fleet-managed-integrations post-fleet-managed-integrations-upgrade-dryrun cli command
description: Preview a managed integrations upgrade 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-managed-integrations/post-fleet-managed-integrations-upgrade-dryrun
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb fleet-managed-integrations post-fleet-managed-integrations-upgrade-dryrun cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb fleet-managed-integrations post-fleet-managed-integrations-upgrade-dryrun \
  --policy-ids <policy-ids> \
  [options]
```

Preview a managed integrations upgrade
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--policy-ids string[] required">
    IDs of the managed integrations to preview upgrading.
    **Repeatable:** pass `--policy-ids` multiple times to supply more than one value
  </definition>
  <definition term="--pkg-version string">
    Target package version to preview the upgrade against. Defaults to the installed package version.
  </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>