https://github.com/sindresorhus/move-file-cli
Move a file on the command-line
https://github.com/sindresorhus/move-file-cli
Last synced: 3 days ago
JSON representation
Move a file on the command-line
- Host: GitHub
- URL: https://github.com/sindresorhus/move-file-cli
- Owner: sindresorhus
- License: mit
- Created: 2019-08-30T04:02:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-05-14T10:35:55.000Z (almost 2 years ago)
- Last Synced: 2025-02-08T14:33:42.333Z (13 days ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 73
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# move-file-cli
> Move a file on the command-line
This is a simpler and cross-platform alternative to `mv` for build scripts, etc.
Note: It only handles a single file at the time. It does not handle directories.
## Install
```sh
npm install --global move-file-cli
```## Usage
```
move-file --helpUsage
$ move-fileOptions
--no-overwrite Don't overwrite an existing destination fileExample
$ move-file source/unicorn.png destination/unicorn.png
```## Related
- [move-file](https://github.com/sindresorhus/move-file) - API for this module
- [cpy-cli](https://github.com/sindresorhus/cpy-cli) - Copy files on the command-line