Overview
Copies nothing — the file must already exist under~/.moorcheh/uploads. The CLI maps the host path to /uploads/... and calls POST /namespaces/{namespace_name}/files.
Poll progress with moorcheh file-job-status.
Synopsis
Options
| Flag | Required | Description |
|---|---|---|
--namespace-name | Yes | Target text namespace |
--file | Yes | Host path to a file under ~/.moorcheh/uploads |
--force-reindex | No | Replace index even if size/mtime unchanged |
--metadata-json | No | JSON object merged into chunk metadata |
--base-url | No | Default http://localhost:8080 |
Examples
Batch upload from JSON
Usemoorcheh upload-files with a JSON file whose files[].path values are container paths (/uploads/...). See API: Upload file.