Open Knowledge CLI Documentation

Commands

Use this index to select a command for your task. Run okn <command> --help to see the exact CLI syntax.

Start here

  • setup: Print portable setup instructions or run them with an agent.
  • search: Build source-grounded context.
  • validate: Validate OKF conformance.

Work locally

  • agent: Run a steered Codex, Claude Code, or OpenCode session.
  • integration: Install and manage one local agent-runtime integration.
  • get: Read an exact page or entrypoint.
  • list: Inspect the bundle structure.
  • view: Browse the bundle in the local viewer.

Share and connect

  • mcp: Serve read-only MCP resources and tools.
  • export: Create HTML, JSON, graph, or tar output.
  • connect: Register a local or remote bundle.
  • disconnect: Remove a connection.
  • registry: List, inspect, refresh, and resolve connections.

Automate and operate

  • automation: Run jobs, insights, runtimes, and deployments.

Advanced and portable tools

  • scaffold: Create a deterministic bundle without an agent.
  • prompt: Print portable agent workflows.
  • ast: Inspect the parsed document model.
  • spec: Print an embedded OKF specification.
  • version: Print the CLI version.
  • help: Read about global flags and help.
Powered by OpenKnowledge.sh