--dangerously-skip-permissions
The Claude Code flag that disables all permission prompts and auto-approves every tool use. Appropriate for CI/CD pipelines and sandboxed environments. Never appropriate for interactive sessions on production codebases.
Syntax
claude-code
// One-shot with all permissions bypassed:
claude --dangerously-skip-permissions -p "Run tests and fix failures"
// With JSON output for CI/CD:
claude --dangerously-skip-permissions --output-format json -p "Run test suite" > results.jsonExample
claude-code
// Appropriate: CI/CD pipeline script
claude --dangerously-skip-permissions \
-p "Run typecheck, run tests, fix any TypeScript errors or test failures, then report what changed"
// Appropriate: Docker sandbox with read-only codebase mount
// docker run -v $(pwd):/app:ro ...
// INAPPROPRIATE:
// - Interactive development sessions
// - Production codebases
// - Environments with live credentials
// - Any context where you haven't reviewed the full operation scope