Easy.Friendly to newbies and power users.Breezy.Zero configuration needed to use.Beautiful.Breaks the rules to look pretty.Unified.Functions exactly the same everywhere.Compatible.Works on anything that supports C++20.Universal.Supports English, Spanish, Portuguese, and Turkish.Tiny.Mere tens of kilobytes in size.Integrated.Connects with many native GUI clipboards.
All Except Windows
curl -sSL https://github.com/Slackadays/Clipboard/raw/main/src/install.sh | bashWindows (run as Administrator)
(Invoke-WebRequest -UseBasicParsing https://github.com/Slackadays/Clipboard/raw/main/src/install.ps1).Content | powershellInstall Manually
Get the latest release instead by adding --branch 0.3.0 right after git clone.... Change the installation prefix by adding -DINSTALL_PREFIX=/CUSTOM/PREFIX to cmake ...
git clone https://github.com/slackadays/Clipboard
cd Clipboard/build
cmake -DCMAKE_BUILD_TYPE=MinSizeRel ..
cmake --build .
cmake --install .Uninstall
Remove all the files in install_manifest.txt. If you're not using Windows, you can also do xargs rm < install_manifest.txt.
Premade Builds
You can also download Clipboard directly from GitHub Actions.
You can substitute cb for clipboard in all commands, and add a number to the end of the action to choose which clipboard you want to use (the default is 0), or _ to use a persistent clipboard.
Copy β clipboard ([--]copy|[-]cp)[(num)|_(id)] (file) [files]
Cut β clipboard ([--]cut|[-]ct)[(num)|_(id)] (file) [files]
Paste β clipboard ([--]paste|[-]p)[(num)|_(id)]
Pipe In β (something) | clipboard [([--]copy|[-]cp)][(num)|_(id)]
Pipe Out β clipboard [([--]paste|[-]p][(num)|_(id)] | (something) or clipboard [([--]paste|[-]p)][(num)|_(id)] > (some file)
Show Contents β clipboard ([--]show|[-]sh)[(num)|_(id)]
Clear Contents β clipboard ([--]clear|[-]clr)[(num)|_(id)]
Show Help Message β clipboard (-h|[--]help)
Examples
cb copy foo.txt launchcodes.doc
clipboard cut1 MyDirectory
cb cp800 bar.conf AnotherDirectory baz.txt
Environment Variables
CI β Set this to make Clipboard overwrite existing items without a user prompt when pasting. This variable is intended for Continuous Integration scripts where a live human is not present to make decisions.
CLIPBOARD_TMPDIR β Set this to the directory that only Clipboard will use to hold the items you cut or copy into a temporary directory.
CLIPBOARD_PERSISTDIR β Set this to the directory that only Clipboard will use to hold the items you cut or copy into a persistent directory.
CLIPBOARD_ALWAYS_PERSIST β Set this to make Clipboard always use persistent clipboards.
CLIPBOARD_NOGUI β Set this to disable integration with GUI clipboards.
FORCE_COLOR β Set this to make Clipboard always show color regardless of what you set NO_COLOR to.
NO_COLOR β Set this to make Clipboard not show any colors.
Flags
--clipboard (clipboard), -c (clipboard) β Add this to choose which clipboard you want to use.
--fast-copy, -fc β Add this to use links when copying, cutting, or pasting. If you modify the items that you used with this flag, then the items you paste will have the same changes.
Go to the Clipboard Wiki for more information, ask your questions in Clipboard Discussions, or join our Discord group!
Thank you to all the contributors who have helped make Clipboard great.






