cpy-cli is command-line software to copy files.
Example usage:
Copy all .png files in src folder into dist except src/goat.png
$ cpy 'src/*.png' '!src/goat.png' dist
Copy all files inside src folder into dist and preserve path structure
$ cpy . '../dist/' --cwd=src
Copy all .png files in the src folder to dist and prefix the image filenames
$ cpy 'src/*.png' dist --cwd=src --rename=hi-{{basename}}
This is free and open source software.
Key Features
- Fast by using streams.
- Resilient by using graceful-fs.
- User-friendly by accepting globs and creating non-existent destination directories.
- User-friendly error messages.
Website: github.com/sindresorhus/cpy-cli
Support:
Developer: Sindre Sorhus
License: MIT License

cpy-cli is written in JavaScript. Learn JavaScript with our recommended free books and free tutorials.
Related Software
| Alternatives to cp | |
|---|---|
| xcp | Extended cp written in Rust |
| fcp | Significantly faster alternative to cp |
| gcp | Goffi's cp, a fancy file copier |
| pycp | cp and mv with a progressbar |
| rsync | Fast incremental file transfer |
| Fast Unix Commands | Provides alternatives for rm and cp |
| renameutils | Make copying files faster and less cumbersome |
| cpy-cli | Accepts globs and creates non-existent destination directories. |
| cpz | Zippy alternative to cp |
| lunas | Syncing tool handling more than two directories locally and remotely |
| BCMR | Better Copy Move Remove |
| cpx | Modern replacement for the traditional cp command |
| advcpmv | Patch for cp |
| RCP Tools | Manage large filesets |
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.