A cross-platform command-line tool to copy and paste text to/from the system clipboard.
clipboard-cli is a cross-platform command-line utility that allows users to copy text to and paste text from the system clipboard directly in the terminal. It solves the problem of manually interacting with the clipboard when working in shell environments, streamlining workflows like copying command outputs or pasting content into scripts.
Developers, system administrators, and power users who frequently work in terminal environments and need to integrate clipboard operations into scripts, automation, or daily command-line tasks.
Developers choose clipboard-cli for its simplicity, cross-platform reliability, and seamless integration with shell pipelines, offering a lightweight alternative to platform-specific clipboard commands or GUI dependencies.
Access the system clipboard (copy/paste)
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Works on macOS, Windows, Linux, OpenBSD, FreeBSD, and Android via Termux, as stated in the README, ensuring consistent clipboard access across diverse operating systems without platform-specific commands.
Enables copying by piping output (e.g., `echo "text" | clipboard`) and pasting without arguments, integrating directly into terminal workflows for automation, as shown in the usage example.
Requires zero configuration and can be aliased to `cb` for faster commands, per the README's tip, making it easy to adopt and use in daily shell tasks.
Built on the robust `clipboardy` package, leveraging a well-maintained API for reliable clipboard operations, as mentioned in the related section, reducing the risk of bugs or platform inconsistencies.
Only supports plain text clipboard operations, lacking native support for rich text, images, or binary data, which restricts its use in workflows involving formatted content or multimedia.
Requires Node.js and npm for installation, adding overhead compared to native system clipboard commands (e.g., `pbcopy` on macOS), which may not be suitable for environments prioritizing minimal dependencies or performance.
Focuses solely on basic copy/paste without advanced functionalities like clipboard history, multiple clipboards, or format stripping, limiting its utility for power users with complex needs.