Skip to content

CLI Commands Manual

CLI Commands Manual

Document Management (doc)

Terminal window
# List documents with optional category/tag filters
agentwiki doc list [--limit 20] [--offset 0] [--category <cat>] [--tag <tag>] [--json]
# Get document by ID or slug
agentwiki doc get <id-or-slug> [--json]
# Create document
agentwiki doc create --title "Title" --content "Markdown text" [--folder-id <id>]
# Update document content
agentwiki doc update <id> --content "Updated markdown"
# Delete document
agentwiki doc delete <id>
Terminal window
agentwiki search "query term" [--type hybrid|keyword|semantic] [--source docs|storage|all] [--limit 10]

Folders & Tags (folder, tag)

Terminal window
agentwiki folder list [--tree]
agentwiki folder create --name "Folder Name" [--parent <parent-id>]
agentwiki tag list

Meme collection (meme)

Memes are never extracted, summarized, searched, or sent to an agent’s context.

Terminal window
agentwiki meme upload cat.gif --description "Cat falling off a desk" [--folder <id>] [--private] [--json]
agentwiki meme list [--search "cat"] [--limit 50] [--json]
agentwiki meme add <upload-id> # existing file becomes a meme (its extracted text, summary, and vectors are deleted)
agentwiki meme remove <upload-id> # back to ordinary knowledge (extraction runs again)

Check the wiki against code (check)

Your own agent verifies pages against a local repository; no credits.

Terminal window
agentwiki check [project] --path <repo> [--page deploy,billing] > check.md
agentwiki check [project] --propose <slug> --file page.md --path <repo> (--brief check.md | --expected-version <n>) [--change "what changed"]
agentwiki check [project] --report findings.json

--propose needs the page version the check read. Cited files must be git-tracked text without secrets and not credentials files; AgentWiki pushes them as Sources titled <path> @ <short sha>, replaces the markers with [src:<id>], and sends the page to the review queue. Check corrections always wait for a person.

Reports from agent kits (report)

Terminal window
agentwiki report publish report.md [--project <slug>] [--title "..."] [--origin agentkit] [--origin-ref ak-advise:<repo>/<topic>] [--json]

Accepts .md, .markdown, .txt, .html, .htm up to 512 KB. A report is identified by project, origin, and --origin-ref: republishing with the same reference replaces the older version even under another file name (default reference report:<project>/<path in the repository>). --json includes the Source url.

Terminal window
agentwiki upload list [--collection none|meme|all] # default none: memes only when asked

Static Sites (sites)

Terminal window
agentwiki sites upload <file-path> [--title "Site Title"] [--description "Desc"]
agentwiki sites list
agentwiki sites get <id>
agentwiki sites delete <id>

Secrets (secrets)

The web app no longer manages secrets; new secrets belong in AgentKit’s ak secrets. These commands keep working so you can export what you stored (Secrets → ak secrets).

Terminal window
agentwiki secrets list [--env dev] [--path /]
agentwiki secrets set <key> <value> [--env dev] [--kind secret|value]
agentwiki secrets reveal <id> --reason "Audited deployment action"
agentwiki secrets export --env dev [--path /] [--reveal --reason "move to ak secrets"]