@jr2804/livesync-cli 0.25.80-cli.2 → 1.0.0-cli
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/LICENSE +21 -0
- package/README.md +56 -0
- package/bin/livesync-cli.js +6 -0
- package/dist/index.cjs +25391 -29746
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jan Reimes
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# @jr2804/livesync-cli
|
|
2
|
+
|
|
3
|
+
**npm-published wrapper** for the [Self-hosted LiveSync CLI](https://github.com/vrtmrz/obsidian-livesync/tree/main/src/apps/cli).
|
|
4
|
+
|
|
5
|
+
No build steps, no Docker — just `npx` or `npm install -g`.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Run directly
|
|
11
|
+
npx @jr2804/livesync-cli <database-path> [options] <command>
|
|
12
|
+
|
|
13
|
+
# Install globally
|
|
14
|
+
npm install -g @jr2804/livesync-cli
|
|
15
|
+
livesync-cli <database-path> daemon --vault /path/to/vault
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Commands
|
|
19
|
+
|
|
20
|
+
| Command | Description |
|
|
21
|
+
|---------|-------------|
|
|
22
|
+
| `daemon` | (default) Run mirror scan then continuously sync CouchDB ↔ local filesystem |
|
|
23
|
+
| `sync` | Run one replication cycle and exit |
|
|
24
|
+
| `ls [prefix]` | List DB files |
|
|
25
|
+
| `cat <src>` | Read file from local database to stdout |
|
|
26
|
+
| `put <dst>` | Write stdin to local database path |
|
|
27
|
+
| `push <src> <dst>` | Push local file into local database |
|
|
28
|
+
| `pull <src> <dst>` | Pull file from local database to local file |
|
|
29
|
+
| `rm <path>` | Mark file as deleted in local database |
|
|
30
|
+
| `init-settings [file]` | Create settings JSON from defaults |
|
|
31
|
+
| `setup <setupURI>` | Apply setup URI to settings file |
|
|
32
|
+
| `remote-add <name> <connstr>` | Add a remote CouchDB |
|
|
33
|
+
| `remote-ls` | List configured remotes |
|
|
34
|
+
| `p2p-peers <timeout>` | Discover P2P peers |
|
|
35
|
+
| `p2p-sync <peer> <timeout>` | Sync with a P2P peer |
|
|
36
|
+
|
|
37
|
+
See the [upstream README](https://github.com/vrtmrz/obsidian-livesync/blob/main/src/apps/cli/README.md) for full documentation.
|
|
38
|
+
|
|
39
|
+
## How it works
|
|
40
|
+
|
|
41
|
+
This package wraps the upstream CLI from [vrtmrz/obsidian-livesync](https://github.com/vrtmrz/obsidian-livesync) at the `*-cli` release tag. The build process:
|
|
42
|
+
|
|
43
|
+
1. Checks out the upstream repo at the matching `*-cli` tag
|
|
44
|
+
2. Runs `npm install` and `npm run build` inside `src/apps/cli/`
|
|
45
|
+
3. Packages the built `dist/` files into an npm package
|
|
46
|
+
|
|
47
|
+
No modifications are made to the upstream code — this is purely a packaging layer.
|
|
48
|
+
|
|
49
|
+
## Versioning
|
|
50
|
+
|
|
51
|
+
Versions match upstream `*-cli` tags (e.g. `0.25.80-cli`). When a new upstream CLI release is published, this package is updated to match.
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT — this wrapper project.
|
|
56
|
+
The upstream CLI is licensed under MIT by [vorotamoroz](https://github.com/vrtmrz).
|