﻿---
title: stack es ilm move-to-step cli command
description: Move to a lifecycle step. 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/es/ilm/move-to-step
---

# stack es ilm move-to-step cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack es ilm move-to-step \
  --index <index> \
  --current-step <current-step> \
  --next-step <next-step> \
  [options]
```

Move to a lifecycle step.
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--index string required">
    The name of the index whose lifecycle step is to change
  </definition>
  <definition term="--current-step string required">
    The step that the index is expected to be in.
  </definition>
  <definition term="--next-step string required">
    The step that you want to run.
  </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>