cclip
v3.0.1
Published
A simple CLI tool to copy text to clipboard
Downloads
298
Maintainers
Readme
CloudyClipy
Your own clipboard in the cloud
it use gist to store your clipboard data inspired by CloudClip
prerequisites
- nodejs
- npm or yarn or pnpm or bun
- github account
- generate a github token
Installation
npm i -g cclip
or
yarn global add cclip
or
npx cclip
or
pnpm add -g cclip
or
bun install -g cclip
Usage
so first you need to create a github token
A github access token is needed before everything, you can generate a new one from: https://github.com/settings/tokens
then you can use the following commands
cclip init "your-github-token"
it will generate a config file in your home directory with the gist id
after that you can use the following commands
when you want to copy something
cclip copy "the name of gist"
when you want to paste something
cclip paste "the name of gist"
for more information you can use
cclip --help
now you will have in your clipboard the content of the gist
Troubleshooting
if you faced this issue with paste and looks like this
Command failed: C:\Users\Yourusername\WhereYouSavedYourClipBoard\node_modules\.pnpm\[email protected]\node_modules\clipboardy\fallbacks\windows\clipboard_x86_64.exe --paste thread 'main' panicked at 'Error: Could not paste from clipboard: Error { repr: Os { code: 0, message: "The operation completed successfully." } }', src\libcore\result.rs:906:4 note: Run with RUST_BACKTRACE=1 for a backtrace.
You will find the path where the clipboard_x86_64.exe is located in the error and try to do this github issue
C:\Users\Yourusername\WhereYouSavedYourClipBoard\node_modules.pnpm\[email protected]\node_modules\clipboardy\fallbacks\windows\clipboard_x86_64.exe