@iksdev/shard-cli 0.1.6 → 0.1.8
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 +9 -1
- package/bin/shard.js +870 -741
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,13 @@ shard --help
|
|
|
24
24
|
shard login --server http://localhost:3000 --username admin --password secret
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
2.
|
|
27
|
+
2. Partage local (sans stockage serveur)
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
shard share ./MonFichier.mp4 --server https://shard-0ow4.onrender.com --local --public-url https://xxxx.trycloudflare.com --limits 0 --temps 0
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
3. Sync un dossier
|
|
28
34
|
|
|
29
35
|
```bash
|
|
30
36
|
shard sync ./MonDossier
|
|
@@ -35,6 +41,7 @@ shard sync ./MonDossier
|
|
|
35
41
|
- `shard login --username <name> --password <pass> [--server <url>]`
|
|
36
42
|
- `shard whoami [--server <url>]`
|
|
37
43
|
- `shard sync <folder> [--server <url>] [--dry-run] [--force]`
|
|
44
|
+
- `shard share <file> [--server <url>] [--limits <n>] [--temps <jours>] [--local --public-url <url> --port <n>]`
|
|
38
45
|
- `shard logout`
|
|
39
46
|
- `shard config show`
|
|
40
47
|
- `shard config set-server <url>`
|
|
@@ -44,3 +51,4 @@ shard sync ./MonDossier
|
|
|
44
51
|
- Le CLI stocke la config dans `~/.shard-cli/config.json`.
|
|
45
52
|
- Le CLI stocke l'etat de sync dans `<ton-dossier>/.shard-sync-state.json`.
|
|
46
53
|
- Les uploads passent par `POST /api/files/upload` avec token `Bearer`.
|
|
54
|
+
- En mode `--local`, le fichier reste sur ton PC: le serveur stocke seulement metadata + token.
|