cclip(1)
| cclip(1) | User Commands | cclip(1) |
NAME
cclip - command line interface for cclip database.
SYNOPSIS
cclip [OPTIONS...] ACTION ACTION_ARGS
DESCRIPTION
Interact with a cclipd(1) database.
OPTIONS
- -d DB_PATH
- Path to database file. Database will NOT be created if it doesn't exist.
Default is $XDG_DATA_HOME/cclip/db.sqlite3, where XDG_DATA_HOME defaults to $HOME/.local/share if it is unset. - -h
- Print help message and exit 0.
- -V
- Print version and exit 0.
ACTIONS
You must specify exactly one of the following actions:
list [-t] [-T TAG] [FIELDS]
If -t is specified, only print those entries that have at least
one tag.
If -T is specified, only print those entries that have a matching
TAG.
Output format can be controlled by specifying a list of comma-separated fields as FIELDS. Available fields are (also applies to get, see below):
- id (alias: rowid)
- preview
- mime_type (aliases: mime, type)
- data_size (alias: size)
- timestamp (alias: time)
- tags (alias: tag)
If FIELDS argument is not specified, it defaults to id,mime_type,preview.
get ID [FIELDS]
copy [-pf] ID
If -p is specified, primary selection will be used.
If -f is specified, cclip will stay in foreground.
delete [-s] ID
If -s is specified, overwrites deleted entry with zeroes for security (this uses the secure_delete pragma provided by sqlite under the hood).
tag ID TAG
tag -d ID [TAG]
tags [list]
tags delete TAG
tags wipe
vacuum
wipe [-ts]
If -t is specified, tagged entries are not preserved.
If -s is specified, it is treated in the same way as in delete.
EXAMPLES
Get most recently saved PNG image and display it with chafa(1)
cclip list id,mime | awk '$2 == "image/png" {print $1; exit}' | cclip get - | chafa
Interactive picker using fzf(1)
cclip list | fzf --with-nth 3.. --accept-nth 1 | cclip copy -
BUGS
Please report bugs to https://github.com/heather7283/cclip/issues.
When reporting bugs:
- Provide backtrace with symbols if you experience a crash.
- Describe steps necessary to reproduce the issue.
SEE ALSO
| 2026-04-07 | 3.3.1 |
