@@ -24,20 +24,40 @@ cargo run --bin clipper-cli -- watch
2424## Commands
2525
2626``` bash
27- clipper-cli create < content> [--tags tag1,tag2] [--notes " notes" ]
28- clipper-cli get < id> [--format json| text]
29- clipper-cli update < id> [--tags tag1,tag2] [--notes " notes" ]
30- clipper-cli search < query> [--tags tag1,tag2] [--start-date ISO8601] [--end-date ISO8601] [--page 1] [--page-size 20] [--format json| text]
31- clipper-cli delete < id>
32- clipper-cli watch # Real-time notifications as NDJSON
33- clipper-cli share < id> [--expires < hours> ] # Create a short URL for sharing (requires server with CLIPPER_SHORT_URL_BASE)
27+ clipper-cli create < content> [--tags tag1,tag2] [--notes " notes" ] # Alias: c
28+ clipper-cli get < id> [--format json| text] # Alias: g
29+ clipper-cli update < id> [--tags tag1,tag2] [--notes " notes" ] # Alias: u
30+ clipper-cli search < query> [--tags tag1,tag2] [--start-date ISO8601] [--end-date ISO8601] [--page 1] [--page-size 20] [--format json| text] # Alias: s
31+ clipper-cli list [--tags tag1,tag2] [--start-date ISO8601] [--end-date ISO8601] [--page 1] [--page-size 100] [--format json| text] # Alias: l
32+ clipper-cli delete < id> # Alias: d
33+ clipper-cli watch # Alias: w - Real-time notifications as NDJSON
34+ clipper-cli upload < file> [--tags tag1,tag2] [--notes " notes" ] [--content " override" ]
35+ clipper-cli share < id> [--expires < hours> ] [--format url| json] # Create a short URL for sharing
36+ clipper-cli export [--output < path> ] # Alias: e - Export clips to tar.gz
37+ clipper-cli import < file> [--format text| json] # Alias: i - Import clips from tar.gz
38+ clipper-cli search-tag [< query> ] [--page 1] [--page-size 100] [--format text| json] # Alias: st - Search/list tags
3439```
3540
36- ## Environment Configuration
41+ ## Configuration
3742
43+ Configuration priority: CLI arg > env var > config file > Clipper desktop app config > default
44+
45+ ### CLI Options
46+
47+ - ` -c, --config <path> ` - Path to config file
48+ - ` -u, --url <url> ` - Server URL
49+ - ` -t, --token <token> ` - Bearer token for authentication
50+
51+ ### Environment Variables
52+
53+ - ` CLIPPER_CONFIG ` - Path to config file
3854- ` CLIPPER_URL ` - Server URL (default: ` http://localhost:3000 ` )
3955- ` CLIPPER_TOKEN ` - Bearer token for authentication (optional)
4056
57+ ### Config File
58+
59+ Shares the same format as Clipper desktop app's ` settings.json ` . If no config is specified, CLI will try to use the desktop app's config.
60+
4161## Self-Signed Certificate Support
4262
4363When connecting to an HTTPS server with a self-signed certificate, clipper-cli will:
0 commit comments