
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@superdoc-dev/superdoc-cli
Advanced tools
LLM-first CLI for deterministic DOCX operations through SuperDoc's Document API.
LLM-first CLI for deterministic DOCX operations through SuperDoc's Document API.
npm install -g @superdoc-dev/superdoc-cli
The package automatically installs a native binary for your platform via optionalDependencies. Supported platforms:
| Platform | Package |
|---|---|
| macOS (Apple Silicon) | @superdoc-dev/cli-darwin-arm64 |
| macOS (Intel) | @superdoc-dev/cli-darwin-x64 |
| Linux (x64) | @superdoc-dev/cli-linux-x64 |
| Linux (ARM64) | @superdoc-dev/cli-linux-arm64 |
| Windows (x64) | @superdoc-dev/cli-windows-x64 |
superdoc <command> [options]
@superdoc/document-api (CONTRACT_VERSION, operation metadata, and schemas).superdoc describe/describe command output or document-api contract exports, those are authoritative.superdoc host --stdio
host.pinghost.capabilitieshost.describehost.describe.command (requires params.operationId)host.shutdowncli.invoke (executes canonical CLI command semantics)superdoc describe
superdoc describe command doc.find
superdoc status
describe returns contract + protocol metadata and the operation catalog.describe command <operationId> returns one operation definition (inputs, response schema, errors, examples).status shows current session status and document metadata.superdoc open ./contract.docx
superdoc status
superdoc find --type text --pattern "termination"
superdoc replace --target-json '{...}' --text "Updated clause"
superdoc save --in-place
superdoc close
open creates a new session id automatically unless --session <id> is provided.<doc> is omitted, commands run against the active default session.<doc> (or --doc) always runs in stateless mode and does not use session state.superdoc session list
superdoc session save <sessionId> [--in-place] [--out <path>] [--force]
superdoc session set-default <sessionId>
superdoc session use <sessionId>
superdoc session close <sessionId> [--discard]
superdoc info [<doc>]
superdoc find [<doc>] --type text --pattern "termination"
superdoc find [<doc>] --type run
superdoc get-node [<doc>] --address-json '{"kind":"block","nodeType":"paragraph","nodeId":"p1"}'
superdoc get-node-by-id [<doc>] --id p1 --node-type paragraph
find flags are convenience syntax and are normalized into the canonical query object used by editor.doc.find.--query-json / --query-file for complex or programmatic queries.result.context[*].textRanges[*] as targets for replace, comments add, and formatting commands.superdoc comments add [<doc>] --target-json '{...}' --text "Please revise" [--out ./with-comment.docx]
superdoc replace [<doc>] --target-json '{...}' --text "Updated text" [--out ./updated.docx]
superdoc format bold [<doc>] --target-json '{...}' [--out ./bolded.docx]
<doc> provided), mutating commands require --out.open), mutating commands update the active working document and --out is optional.--expected-revision <n> with stateful mutating commands for optimistic concurrency checks.superdoc call <operationId> --input-json '{...}'
superdoc save --in-place
superdoc save --out ./final.docx
save persists the active session but keeps it open for more edits.save requires --out <path>.save --in-place checks for source-file drift and refuses overwrite unless --force is passed.superdoc close
superdoc close --discard
--discard (or run save first, then close).--output json (machine-oriented envelope)--output pretty (or --pretty)superdoc info ./contract.docx --output json
superdoc info ./contract.docx --pretty
--output <json|pretty>--json--pretty--session <id>--timeout-ms <n>--help--query-json, --query-file--address-json, --address-file--target-json, --target-fileUse - as <doc> to read DOCX bytes from stdin:
cat ./contract.docx | superdoc open -
cat ./contract.docx | superdoc info -
Normative operation/version metadata comes from @superdoc/document-api; use superdoc describe for the runtime contract surface.
Success:
{
"ok": true,
"command": "find",
"data": {},
"meta": {
"version": "1.0.0-alpha.2",
"elapsedMs": 42
}
}
Error:
{
"ok": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "..."
},
"meta": {
"version": "1.0.0-alpha.2",
"elapsedMs": 8
}
}
FAQs
LLM-first CLI for deterministic DOCX operations through SuperDoc's Document API.
We found that @superdoc-dev/superdoc-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.