wl-copy

Clear and copy to Wayland clipboard. See also: wl-paste, xclip. More information: https://github.com/bugaevc/wl-clipboard.

wl-copy "text"

ls | wl-copy

wl-copy --paste-once "text"

wl-copy < path/to/image

wl-copy --clear