﻿---
title: cloud hosted deployments shutdown-deployment cli command
description: Shuts down Deployment Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4118/reference/elastic-cli/cli/cloud/hosted/deployments/shutdown-deployment
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# cloud hosted deployments shutdown-deployment cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic cloud hosted deployments shutdown-deployment \
  --deployment-id <deployment-id> \
  [options]
```

Shuts down Deployment
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--deployment-id string required">
    Identifier for the Deployment
  </definition>
  <definition term="--hide">
    Whether or not to hide the deployment and its resources.Only applicable for Platform administrators.
  </definition>
  <definition term="--skip-snapshot">
    Whether or not to skip snapshots before shutting down the resources
  </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="--yes">
    confirm destructive action without prompting
  </definition>
</definitions>


## Global Options

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