@jr2804/livesync-cli 1.0.0-cli.1 → 1.0.17-cli.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,20 +17,61 @@ livesync-cli <database-path> daemon --vault /path/to/vault
17
17
 
18
18
  ## Commands
19
19
 
20
+ ### Core
21
+
20
22
  | Command | Description |
21
23
  |---------|-------------|
22
24
  | `daemon` | (default) Run mirror scan then continuously sync CouchDB ↔ local filesystem |
23
25
  | `sync` | Run one replication cycle and exit |
24
- | `ls [prefix]` | List DB files |
26
+ | `mirror` | Run a full mirror scan (filesystem → DB) without continuous sync |
27
+
28
+ ### File operations
29
+
30
+ | Command | Description |
31
+ |---------|-------------|
32
+ | `ls [prefix]` | List files in local database, optionally filtered by prefix |
25
33
  | `cat <src>` | Read file from local database to stdout |
34
+ | `cat-rev <src> <rev>` | Read file at a specific revision from local database |
26
35
  | `put <dst>` | Write stdin to local database path |
27
36
  | `push <src> <dst>` | Push local file into local database |
28
37
  | `pull <src> <dst>` | Pull file from local database to local file |
38
+ | `pull-rev <src> <dst> <rev>` | Pull file at a specific revision to local file |
29
39
  | `rm <path>` | Mark file as deleted in local database |
40
+ | `info <path>` | Show file metadata, conflicts, and revision history |
41
+
42
+ ### Conflict resolution
43
+
44
+ | Command | Description |
45
+ |---------|-------------|
46
+ | `resolve <path> <rev>` | Resolve a conflicted file by keeping a specific revision |
47
+ | `mark-resolved [remote-id]` | Mark all replication conflicts as resolved, optionally for a specific remote |
48
+
49
+ ### Remote management
50
+
51
+ | Command | Description |
52
+ |---------|-------------|
53
+ | `remote-add <name> <connstr>` | Add a remote CouchDB configuration |
54
+ | `remote-rm <id>` | Remove a remote configuration |
55
+ | `remote-ls` | List configured remotes |
56
+ | `remote-export <id>` | Print the connection URI for a remote |
57
+ | `remote-set <id> <connstr>` | Update a remote's connection string |
58
+ | `remote-activate <id>` | Switch the active remote configuration |
59
+ | `remote-status [id]` | Show replication status, optionally for a specific remote |
60
+ | `lock-remote [id]` | Lock the remote database, optionally for a specific remote |
61
+ | `unlock-remote [id]` | Unlock the remote database, optionally for a specific remote |
62
+
63
+ ### Setup
64
+
65
+ | Command | Description |
66
+ |---------|-------------|
30
67
  | `init-settings [file]` | Create settings JSON from defaults |
31
68
  | `setup <setupURI>` | Apply setup URI to settings file |
32
- | `remote-add <name> <connstr>` | Add a remote CouchDB |
33
- | `remote-ls` | List configured remotes |
69
+
70
+ ### P2P
71
+
72
+ | Command | Description |
73
+ |---------|-------------|
74
+ | `p2p-host` | Start P2P host mode and wait until interrupted |
34
75
  | `p2p-peers <timeout>` | Discover P2P peers |
35
76
  | `p2p-sync <peer> <timeout>` | Sync with a P2P peer |
36
77