npm / cpy-cli
cpy-cli
What changed in cpy-cli 3 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-23.
9 breaking4 new APIs and options
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcpy-cli 76 changes
Breaking changes 2
Patterns that match no files now cause the CLI to exit with an error instead of silently doing nothing.
A single-file source with a destination that is not an existing directory is treated as a file-to-file copy; use a trailing separator or existing directory to force directory semantics.
New APIs and options 4
Controls how destination paths are calculated for patterns, using cwd or the pattern.
Lists files that would be copied without actually copying them.
Skips files that already exist at the destination without error.
Copies only when the source is newer, or when sizes differ with the same modification time.
cpy-cli 61 changes
Breaking changes 1
Requires Node.js 20, so developers must use that runtime to run cpy-cli.
cpy-cli 51 changes
Breaking changes 1
Requires Node.js 16 to run cpy-cli.
cpy-cli 43 changes
Breaking changes 3
Node.js 12 is now required to run cpy-cli.
The --parents flag was removed.
Copying is now recursive by default; use --flat for flat output.
cpy-cli 32 changes
Breaking changes 2
Node.js 8 is now required to use cpy-cli.
cpy-cli throws if the given source file does not exist.