Clipboard

Read or write the macOS clipboard. Use when copying/pasting text, transferring data between apps, or accessing clipboard contents.

mikeyobrien Updated 378 repo stars
rho web ui

File contents

Clipboard Operations

Read clipboard

pbpaste

Write to clipboard

echo "text to copy" | pbcopy

Copy file contents

pbcopy < file.txt

Copy command output

ls -la | pbcopy

Returns the clipboard contents as plain text. Binary/image data is not supported via these commands.

mikeyobrien/rho commit d85177bc9c

Frequently asked questions

npx get-skill add mikeyobrien/clipboard-2