cinch pull
cinch pull retrieves the latest clip from the relay and writes it to stdout.
cinch pull [flags]Examples
Section titled “Examples”# Pull to stdoutcinch pull
# Pull and pipe to macOS clipboardcinch pull | pbcopy
# Pull and open (e.g. a URL)cinch pull | xargs open
# Pull latest clip from a specific machinecinch pull --from prod-server
# Pull latest clip from a machine, text clips onlycinch pull --from staging --text-only
# Pull an image clip to a filecinch pull --from prod > screenshot.png
# Pull an image directly to the Mac clipboard (TTY only)cinch pull --from prod --copy
# Fetch a specific clip by IDcinch pull --id abc123def456
# Fetch raw image bytes for a specific clipcinch pull --id abc123def456 --raw > image.png
# Pull the latest clip from any device other than this onecinch pull --exclude-self
# Stream new clips live (Ctrl-C to stop)cinch pull --watch
# Stream new clips from a specific devicecinch pull --watch --from desktop| Flag | Type | Default | Description |
|---|---|---|---|
--from | string | — | Pull the latest clip pushed from this device (by nickname or hostname) |
--id | string | — | Fetch a specific clip by ID instead of “latest”. Incompatible with --from, --watch, --exclude-self |
--raw | bool | false | Print raw bytes only; do not write to the system clipboard |
--text-only | bool | false | Skip image clips, return the latest text clip only |
--copy | bool | false | Copy text content to the system clipboard (TTY only). Ignored when --raw is set |
--exclude-self | bool | false | Pull the latest clip not authored by this device. Incompatible with --from and --id |
--watch | bool | false | Subscribe to the live clip stream and print each new clip as it arrives. Combine with --from to filter to a single device. Incompatible with --id and --exclude-self |
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Success |
1 | Generic error |
2 | Authentication failure — run cinch auth login |
3 | Network error — relay unreachable |
4 | Relay error — server-side failure |
Was this page helpful?