{"id":13566116,"url":"https://github.com/sindresorhus/cpy-cli","last_synced_at":"2025-05-15T18:06:38.117Z","repository":{"id":37549442,"uuid":"48960698","full_name":"sindresorhus/cpy-cli","owner":"sindresorhus","description":"Copy files","archived":false,"fork":false,"pushed_at":"2024-02-03T06:20:19.000Z","size":22,"stargazers_count":351,"open_issues_count":16,"forks_count":34,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-24T20:12:08.578Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sindresorhus.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","buy_me_a_coffee":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2016-01-03T21:04:57.000Z","updated_at":"2025-03-09T10:15:27.000Z","dependencies_parsed_at":"2024-04-13T11:43:24.503Z","dependency_job_id":"c1b755f4-951f-4fdb-9bc3-e4df324caca2","html_url":"https://github.com/sindresorhus/cpy-cli","commit_stats":{"total_commits":33,"total_committers":12,"mean_commits":2.75,"dds":"0.33333333333333337","last_synced_commit":"959daa8e33305459768c5fa045bf386307832370"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fcpy-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fcpy-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fcpy-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Fcpy-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/cpy-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246547382,"owners_count":20794970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T13:02:02.417Z","updated_at":"2025-03-31T21:50:07.635Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://buymeacoffee.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["Files and Directories","JavaScript","[Node.js](http://nodejs.org/) feature module and bundler","Cross-platform Utilities"],"sub_categories":["Deleting, Copying, and Renaming"],"readme":"# cpy-cli\n\n\u003e Copy files\n\n## Why\n\n- Fast by using streams.\n- Resilient by using [graceful-fs](https://github.com/isaacs/node-graceful-fs).\n- User-friendly by accepting [globs](https://github.com/sindresorhus/globby#globbing-patterns) and creating non-existent destination directories.\n- User-friendly error messages.\n\n## Install\n\n```sh\nnpm install --global cpy-cli\n```\n\n## Usage\n\n```\n$ cpy --help\n\n  Usage\n    $ cpy \u003csource …\u003e \u003cdestination\u003e\n\n  Options\n    --no-overwrite       Don't overwrite the destination\n    --cwd=\u003cdir\u003e          Working directory for files\n    --rename=\u003cfilename\u003e  Rename all \u003csource\u003e filenames to \u003cfilename\u003e. Supports string templates.\n    --dot                Allow patterns to match entries that begin with a period (.)\n    --flat               Flatten directory structure. All copied files will be put in the same directory.\n    --concurrency        Number of files being copied concurrently\n\n  \u003csource\u003e can contain globs if quoted\n\n  Examples\n    Copy all .png files in src folder into dist except src/goat.png\n    $ cpy 'src/*.png' '!src/goat.png' dist\n\n    Copy all files inside src folder into dist and preserve path structure\n    $ cpy . '../dist/' --cwd=src\n\n    Copy all .png files in the src folder to dist and prefix the image filenames\n    $ cpy 'src/*.png' dist --cwd=src --rename=hi-{{basename}}\n```\n\n## Related\n\n- [cpy](https://github.com/sindresorhus/cpy) - API for this module\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fcpy-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Fcpy-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Fcpy-cli/lists"}