mv
Move or rename files with dry-run preview and overwrite protection. Relocates files on the filesystem, returning JSON with source and destination paths.
Instructions
Move or rename files and directories with dry-run and overwrite protection. Destructive: relocates files on the filesystem (or renames them). Overwrite protection enabled by default — use --allow_overwrite to replace existing targets. Use --dry_run to preview. Returns JSON with source and destination paths. Use to relocate or rename files. Not for creating copies — use 'cp' to duplicate. Not for creating links — use 'ln'. See also 'cp', 'ln'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_overwrite | No | Allow replacing destination. | |
| destination | Yes | Destination path. | |
| dry_run | No | Report operation without changing files. | |
| parents | No | Create missing parent directories. | |
| source | Yes | Source path. |