cp-cli is a Node.js CLI tool that replicates the UNIX cp command for cross-platform file and directory copying. Current stable version is 2.0.0, which exits with code 1 on error instead of 0 as in prior versions. It is a lightweight alternative to shell commands or more complex build tools, with no runtime dependencies after installation (only dev deps). Release cadence is irregular; the last release was v2.0.0 with a breaking change in exit code behavior.
npm install cp-cliVerified import paths — ran on the pinned version, not inferred.
Demonstrates global installation and common copy operations using cp-cli CLI.
Update scripts that check exit codes: errors now return 1 instead of 0.
Use other tools like fs-extra or ncp for recursive directory copying.
Use bash cp or other tools like copyfiles for glob patterns.
Run 'npm install -g cp-cli' or use 'npx cp-cli'.
Provide both source and target file paths (e.g., 'cp-cli foo.txt bar.txt').
Check that the source path is correct and the file exists.
No dependency data recorded yet.