@hackwiki/cli
v0.3.0
Published
CLI for managing a Hackwiki knowledge base from the terminal or an agent shell
Maintainers
Readme
@hackwiki/cli
A terminal and agent-friendly CLI for the Hackwiki SDK.
Install
npm install -g @hackwiki/cliOr run it without a global install:
npx @hackwiki/cli --helpCommands
hackwiki session --json
hackwiki schema read --json
hackwiki schema update --file ./schema.md --json
hackwiki index read --json
hackwiki log read --json
hackwiki log append ingest "RAG Article" --json
hackwiki page list --json
hackwiki search "retrieval"
hackwiki search "grounding" --full-text --json
hackwiki page create concept "RAG" --summary "retrieval" --content "# RAG"
hackwiki page update NOTE_ID --file ./note.md
hackwiki page read NOTE_ID
hackwiki lint --jsonInside this monorepo during development, you can run the built CLI with:
pnpm --filter @hackwiki/cli run cli --helpEnvironment
The CLI can reuse the official hackmd-cli login config:
hackmd-cli login
npx @hackwiki/cli session --jsonToken precedence:
HMD_API_ACCESS_TOKEN~/.hackmd/config.jsonfromhackmd-cli login
API URL precedence:
--api-urlHMD_API_ENDPOINT_URL~/.hackmd/config.json
