﻿---
title: mv cli command
description: Move a file or folder and rewrite all inbound links across the documentation set. 
url: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/2927/cli/mv
products:
  - Elastic Docs Builder
---

# mv cli command
```bash
docs-builder mv <source> <target> [options]
```

<warning>
  **Destructive operation** — changes made by this command cannot be undone.
</warning>
> Scope: `directory`.
Move a file or folder and rewrite all inbound links across the documentation set.

## Arguments

<definitions>
  <definition term="<source> string required">
    Source file or folder path.
  </definition>
  <definition term="<target> string required">
    Destination file or folder path.
  </definition>
</definitions>


## Options

<definitions>
  <definition term="--[no-]dry-run">
    Print the changes that would be made without applying them. (preview changes without applying them)
  </definition>
  <definition term="-p --path string">
    Documentation root. Defaults to cwd.
  </definition>
  <definition term="-l --log-level enum">
    Minimum log level.
    **Values:** trace, debug, information, warning, error, critical, none
    **Default:** `information`
  </definition>
  <definition term="-c --config-source enum">
    Override the configuration source: local, remote
    **Values:** local, remote, embedded
  </definition>
  <definition term="--[no-]skip-private-repositories">
    Skip cloning private repositories
  </definition>
</definitions>