Shell tools let Claude run commands on your machine. Every command is shown to you before execution and requires your approval (unless you’ve enabled auto-approval).Documentation Index
Fetch the complete documentation index at: https://mintlify.com/killlowkey/claude-code/llms.txt
Use this file to discover all available pages before exploring further.
BashTool
Executes a shell command in your environment. This is the most powerful tool — it can run test suites, build scripts, package managers, git commands, and anything else your shell supports. Usage pattern:- Running tests:
npm test,pytest,cargo test - Building:
npm run build,make,gradle build - Package management:
npm install,pip install,cargo add - Git operations:
git status,git log,git stash - File system operations:
mkdir,cp,mv - Any other shell command
- First use: Claude shows the command and asks for approval
- You can approve once, approve always for a pattern, or deny
- In plan mode, BashTool commands are planned but not executed until you confirm