Documentation

cpy-cli – command-line utility to copy files

Last Updated on May 17, 2026

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 help

cpy-cli is written in JavaScript. Learn JavaScript with our recommended free books and free tutorials.


Related Software

Alternatives to cp
xcpExtended cp written in Rust
fcpSignificantly faster alternative to cp
gcpGoffi's cp, a fancy file copier
pycpcp and mv with a progressbar
rsyncFast incremental file transfer
Fast Unix CommandsProvides alternatives for rm and cp
renameutilsMake copying files faster and less cumbersome
cpy-cliAccepts globs and creates non-existent destination directories.
cpzZippy alternative to cp
lunasSyncing tool handling more than two directories locally and remotely
BCMRBetter Copy Move Remove
cpxModern replacement for the traditional cp command
advcpmvPatch for cp
RCP ToolsManage large filesets

Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments