claude --add-dir
Last updated
What is claude --add-dir?
The claude --add-dir command is a startup flag that allows you to include extra folders in your working session before the interface even opens. By providing one or more directory paths when you launch the tool (for example, claude --add-dir ../library --add-dir ./docs), you grant the assistant permission to read and modify files in those external locations alongside your current project. This is particularly useful for cross-repository tasks, such as updating a shared library and its dependent application simultaneously, as it ensures the AI has a unified view of all relevant codebases from the very first prompt.
More in stage 5: Usage Best Practices
claude --add-dir: common questions
Can I learn claude --add-dir in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain claude --add-dir in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this claude --add-dir tutorial for beginners?
It is lesson 45 of 109 in the free Claude Code roadmap, in stage 5, Usage Best Practices. If you are new to Claude Code, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.