42064de633
Build and Push Docker Container / build-and-push (push) Successful in 1m3s
- Add a separate installable NanoShare CLI package under cli/. - Implement browser login with local callback and refresh-token config. - Add upload, list, download, sync, and watch CLI commands. - Add private owner-only file download endpoint for CLI downloads. - Add CLI auth endpoints for browser login and token refresh. - Return file_id from ServiceLink uploads for reliable sync state. - Exclude the CLI package from NanoShare container builds. - Include tests for private downloads and sync state updates.
21 lines
412 B
Markdown
21 lines
412 B
Markdown
# NanoShare CLI
|
|
Desktop CLI and folder sync client for NanoShare.
|
|
|
|
## Install locally
|
|
```bash
|
|
uv tool install ./cli
|
|
```
|
|
|
|
## Login
|
|
```bash
|
|
nanoshare login https://your-nanoshare.example
|
|
```
|
|
|
|
## Sync
|
|
```bash
|
|
nanoshare sync ~/NanoShare
|
|
nanoshare watch ~/NanoShare --interval 10
|
|
```
|
|
|
|
The CLI stores config in `~/.config/nanoshare/config.toml` and sync state in `.nanoshare-sync/state.json` inside the synced folder.
|