c2f - Clipboard to file
Simple CLI tool to write clipboard contents to a file.
Overview
c2f is a lightweight cross-platform command-line utility that saves or appends your clipboard contents to a file.
Installation
Homebrew (Recommended)
Cargo
From Source
Requires Rust 1.70+
Pre-built Binaries
Download the latest release from the releases page.
Usage
# write clipboard to default file ('clipboard')
# write clipboard to specific file
# append to file
# quiet mode
Options
-a, --append- append to file instead of overwriting-q, --quiet- suppress all output-h, --help- Help-V, --version- Version
Configuration
c2f supports a configuration file at ~/.config/c2f/config.toml:
= false # ask for confirmation before writing (default false)
= false # quiet mode (default false)
Examples
# copy text
| # then write it
# append clipboard to file
# save clipboard quietly
Platform Support
c2f is cross-platform:
- macOS
- Linux
- Windows
License
MIT License - see LICENSE for details.
c2f Copyright 2025 balintb