clipboard

Cut, copy, and paste anything, anywhere from the terminal

brewmacoslinux
Try with needOr install directly
Source

About

Cut, copy, and paste anything, anywhere, all from the terminal

Commands

cb

Examples

Copy text to clipboard$ echo 'Hello World' | cb copy
Paste clipboard contents to stdout$ cb paste
Cut text to clipboard$ echo 'Text to cut' | cb cut