Complete reference for every Claude Code CLI flag and pattern you'll need. Covers the basics like interactive vs headless mode, but the real value is in the headless agent patterns. If you're spawning agents in CI/CD or automation, the session control and permission flags here are critical to avoid hangs. Shows exactly which flags to combine for headless execution, how to define custom subagents inline with JSON, and the streaming output formats for real-time monitoring. The examples are practical: piping logs for analysis, multi-turn sessions with resume, structured output validation. Keep this open when you're writing scripts that call Claude programmatically.

skills.sh installs
491
GitHub stars
3.9K
last updated
Aug 21, 2026

Install

$ npx -y skills add parcadei/continuous-claude-v3 --skill cli-reference --agent claude-code

Installs into .claude/skills of the current project.

Files

CLI Reference

Complete reference for Claude Code command-line interface.

When to Use

  • "What CLI flags are available?"
  • "How do I use headless mode?"
  • "Claude in automation/CI/CD"
  • "Output format options"
  • "System prompt via CLI"
  • "How do I spawn agents properly?"

Core Commands

CommandDescriptionExample
claudeStart interactive REPLclaude
claude "query"REPL with initial promptclaude "explain this project"
claude -p "query"Headless mode (SDK)claude -p "explain function"
cat file | claude -pProcess piped contentcat logs.txt | claude -p "explain"
claude -cContinue most recentclaude -c
claude -c -p "query"Continue via SDKclaude -c -p "check types"
claude -r "id" "query"Resume sessionclaude -r "auth" "finish PR"
claude updateUpdate versionclaude update
claude mcpConfigure MCP serversSee MCP docs

Session Control

Sponsors

Details

Repository
github.com/parcadei/continuous-claude-v3
Categories
Automation & Workflows, CLI & Terminal
First seen
Jun 3, 2026

More from parcadei/continuous-claude-v3

All 108
1motion-team avatarbrand-intakemotion-team/creative-strategy-skillsRuns a structured brand intake interview and then conducts web research to build a comprehensive brand context document. Use this whenever the user says they're490skills.sh installs
2ncklrs avatarvsl-storyboard-writerncklrs/startup-os-skillsExpert VSL (Video Sales Letter) and product marketing video storyboard writer. Use when creating sales videos, product demos, explainer videos, social media vid489skills.sh installs
3thedivergentai avatargodot-shaders-basicsthedivergentai/gd-agentic-skillsExpert Godot shader patterns for batch-safe hitflash, alpha-scissor foliage/dissolve, screenspace postFX, depth reconstruction, triplanar, and instance uniforms488skills.sh installs
4parcadei avatarmcp-chainingparcadei/continuous-claude-v3Research-to-implement pipeline chaining 5 MCP tools with graceful degradation483skills.sh installs
5parcadei avatarmigrateparcadei/continuous-claude-v3Migration workflow - research → analyze → plan → implement → review483skills.sh installs
6parcadei avatarreleaseparcadei/continuous-claude-v3Release preparation workflow - security audit → E2E tests → review → changelog → docs483skills.sh installs