CLI Quickstart
CLI Quickstart
The official AgentWiki CLI enables developers and automated scripts to manage knowledge directly from the terminal.
Installation
# Global install via npmnpm install -g @aiagentwiki/cli
# Or run directly with npxnpx @aiagentwiki/cli --helpAuthentication
Option A: Interactive Login
agentwiki login --api-key aw_xxxxxxxxxxxxxxxxxxxxOption B: Environment Variables (CI / Automation)
export AGENTWIKI_API_KEY=aw_xxxxxxxxxxxxxxxxxxxxexport AGENTWIKI_API_URL=https://api.agentwiki.cc # Optional override for self-hostedagentwiki whoamiBasic Commands
# List documentsagentwiki doc list --limit 10
# Create a new documentagentwiki doc create --title "Project Roadmap" --content "# Roadmap\n- Feature A\n- Feature B"
# Search knowledge base (hybrid search)agentwiki search "database migration" --type hybrid
# List folder treeagentwiki folder list