@csalvato/remarq-cli
v2.1.0
Published
CLI for the Remarq document annotation API
Readme
@csalvato/remarq-cli
CLI for the Remarq document annotation API.
Install
cd cli
npm install
npm linkConfiguration
Set the API base URL via environment variable:
export REMARQ_URL=http://localhost:3333Or pass it per-command:
remarq --url http://localhost:3333 healthUsage
Health check
remarq healthDocuments
remarq documents list
remarq documents create https://example.com/page
remarq documents get <id>
remarq documents delete <id>Comments
remarq comments list [--document <id>] [--uri <url>] [--status open|closed]
remarq comments get <id>
remarq comments create --uri <url> --quote "text" --author "name" --body "text" [--color yellow]
remarq comments reply <parent-id> --author "name" --body "text"
remarq comments resolve <id>
remarq comments reopen <id>
remarq comments update <id> --body "new text"
remarq comments delete <id>Reactions
remarq reactions add <comment-id> --emoji "👍" --author "name"
remarq reactions remove <comment-id> --emoji "👍" --author "name"Global flags
| Flag | Description |
| -------- | ------------------------------------- |
| --url | API base URL (overrides REMARQ_URL) |
| --json | Output raw JSON instead of text |
| --help | Show help |
How it works (spec-driven)
On startup the CLI fetches REMARQ_URL/openapi.json and dynamically builds all
commands from the x-cli vendor extensions embedded in each operation. New
server endpoints automatically appear as CLI commands — no CLI code changes
needed.
Testing
npm test