The knowledge base stores important information, documentation, and reference materials that AI skills can access when working on tasks. Unlike context documents which provide project-wide information, knowledge documents can cover specific topics, APIs, patterns, or any other reference material.
nut knowledge manages knowledge documents in the current local workspace. To search, create, or update knowledge on a remote peer Coconut through the Coconut Dashboard, use nut coconut knowledge.
--search <query> - Search documents by title or content
--json - Output as JSON
Examples:
# List all knowledge documentsnut knowledge list# Search for specific topicsnut knowledge list --search "authentication"nut knowledge list --search "API"# Output as JSONnut knowledge list --json
filename - The document filename (e.g., api-design.md)
Options:
--json - Output as JSON
Examples:
# Read a documentnut knowledge get api-design.md# Get as JSONnut knowledge get api-design.md --json# Read coding standardsnut knowledge get coding-standards.md
--file <path> - Path to file containing document content
--content <text> - Direct content for the document
--filename <name> - Optional custom filename
Examples:
# Create from filenut knowledge create "API Design Guidelines" --file ./content.md# Create with inline contentnut knowledge create "Quick Note" --content "# Quick Note\n\nSome important information here"# Custom filename (stored as QuickNote.md)nut knowledge create "Quick Note" --content "..." --filename QuickNote# Create coding standards docnut knowledge create "TypeScript Best Practices" --file ./docs/typescript.md
Use descriptive titles that make it easy to find documents later. Without --filename, filenames are generated from the title automatically; use --filename when you need to preserve specific casing or spelling in the .md filename.