Search the documentation
7 pages for --cwd.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…you opened agent view from. To narrow the list to one project, pass `--cwd`: ```bash theme={null} claude agents --cwd ~/projects/my-app ``` This shows only sessions started under that directory. It…
CLI reference
Claude Code CLI · in the page
cli-reference
…gent-view) to monitor and dispatch parallel background sessions. Use `--cwd <path>` to show only sessions started under that directory, or `--json` to print active sessions as a JSON array for scripti…
Week 20 · May 11–15, 2026
Claude Code CLI · in the page
whats-new/2026-w20
…ons</code>) to configure background sessions, and <code>claude agents --cwd \<path></code> scopes the session list to a directory</div> <div>New hook <code>args: string\[]</code> exec form spawns…
Configuration and flags
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/configuration
…| | `--cwd <path>` | Working directory for a stdio server process. | None…
Recipes
Model Context Protocol · in the page
docs/2026-07-28/tools/inspector/recipes
…process environment variables with `-e` and a working directory with `--cwd`: ```bash theme={null} mcp-inspector -e API_KEY=abc123 -e REGION=us-east-1 --cwd ~/projects/my-server \ node build/index.…
Configuration and flags
Model Context Protocol · in the page
docs/draft/tools/inspector/configuration
…| | `--cwd <path>` | Working directory for a stdio server process. | None…
Recipes
Model Context Protocol · in the page
docs/draft/tools/inspector/recipes
…process environment variables with `-e` and a working directory with `--cwd`: ```bash theme={null} mcp-inspector -e API_KEY=abc123 -e REGION=us-east-1 --cwd ~/projects/my-server \ node build/index.…