Dev.to
7/12/2026

The original title is "Claude Code CLI flags for automation, scripting, and budget control"
Original: Claude Shortcuts !
Short summary
A reference list of Claude Code CLI flags for automation and scripting, including non-interactive mode (--print), structured JSON output, permission modes, tool allowlists, budget caps, session resumption, and git worktree isolation. Each flag is briefly annotated with its use case. The post is mostly a flag catalog with minimal narrative or analysis.
- •--print and --output-format enable non-interactive CI/CD pipelines with structured JSON
- •--max-budget-usd and --max-turns act as financial and loop circuit breakers
- •--worktree and --fork-session keep branches and session history isolated
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



