Answer: Use the /knowledge add command with the required --name (or -n) and --path (or -p) parameters, optionally adding --include, --exclude, and --index-type (Fast or Best). For example: /knowledge add --name "project-docs" --path /path/to/documentation. Status: Confirmed Entry: tool/kiro/commands-and-shortcuts/knowledge-add-command Revision: 1 Digest: sha256:e4b81aa8b5501193 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:36:45Z Last changed: 2026-11-13T03:36:45Z Last verified: 2026-11-20T13:20:18Z Next check: 2026-11-21T13:20:18Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Command | /knowledge add | [1] | 2026-11-20 Syntax | /knowledge add --name < name > --path < path > [ --include pattern ] [ --exclude pattern ] [ --index-type Fast | Best ] | [1] | 2026-11-20 Required name parameter | --name or -n | [1] | 2026-11-20 Required path parameter | --path or -p | [1] | 2026-11-20 Example | /knowledge add --name "project-docs" --path /path/to/documentation | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "Knowledge management - Experimental - CLI - Docs - Kiro". https://kiro.dev/docs/cli/experimental/knowledge-management/ Role: primary. Accessed: 2026-11-20T13:20:18Z Quote: "/knowledge add Add files or directories to your knowledge base." (Supports: Command) Quote: "Syntax: bash /knowledge add --name < name > --path < path > [ --include pattern ] [ --exclude pattern ] [ --index-type Fast | Best ]" (Supports: Syntax) Quote: "--name or -n : Descriptive name for the knowledge entry" (Supports: Required name parameter) Quote: "--path or -p : Path to file or directory to index" (Supports: Required path parameter) Quote: "/knowledge add --name "project-docs" --path /path/to/documentation" (Supports: Example) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: c3ada5a212ca7c0a6da4d6e3390f239f57437a3c1c776e3bcd63942a5cb841e7 (captured 2026-11-20T13:20:17Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T13:20:18Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:20:18Z Last attempt: 2026-11-20T13:20:18Z Notes and limitations: Extracted automatically from a single official source (section "/knowledge add"). Related: https://latestn.com/tool/kiro/commands-and-shortcuts/list-edit-prompts How do I list and edit existing prompts in Kiro CLI? https://latestn.com/tool/kiro/commands-and-shortcuts/manage-active-goal How do I manage or cancel an active goal in Kiro CLI? https://latestn.com/tool/kiro/commands-and-shortcuts/markdown-review-keyboard-shortcuts What keyboard shortcuts are available for commenting in Kiro Markdown Review? https://latestn.com/tool/kiro/commands-and-shortcuts/ide-vs-cli-slash-commands How do Kiro IDE slash commands differ from CLI slash commands? https://latestn.com/tool/kiro/commands-and-shortcuts/inspect-computer-use-cli How can I inspect Computer Use from the Kiro CLI? https://latestn.com/tool/kiro/commands-and-shortcuts/keyboard-shortcuts What keyboard shortcuts are available in Kiro? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:36:45Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/commands-and-shortcuts/knowledge-add-command/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/kiro/commands-and-shortcuts/knowledge-add-command POST: https://latestn.com/dispute/tool/kiro/commands-and-shortcuts/knowledge-add-command with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/commands-and-shortcuts/knowledge-add-command?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add files to a Kiro knowledge base using the /knowledge add command? Revision 1, last verified 2026-11-20T13:20:18Z. https://latestn.com/tool/kiro/commands-and-shortcuts/knowledge-add-command (accessed 2026-11-21T10:01:42Z). @misc{LatestN_tool_kiro_commands_and_shortcuts_knowledge_add_command_r1, title = {How do I add files to a Kiro knowledge base using the /knowledge add command?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/commands-and-shortcuts/knowledge-add-command}}, note = {Revision 1; digest sha256:e4b81aa8b5501193; last verified 2026-11-20T13:20:18Z; accessed 2026-11-21T10:01:42Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/kiro/commands-and-shortcuts/knowledge-add-command