cli-reference

Document Claude Code CLI commands, flags, and headless mode usage.

3.9k|296|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/parcadei/Continuous-Claude-v3 --skill cli-reference-parcadei
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cli-reference
Source: https://github.com/parcadei/Continuous-Claude-v3/tree/main/.claude/skills/cli-reference
Command: npx skills add https://github.com/parcadei/Continuous-Claude-v3 --skill cli-reference-parcadei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for the Claude Code command-line interface (CLI), helping users understand and leverage its full capabilities for automation and scripting.

Core Features & Use Cases

  • Command Reference: Details all core commands and their functions.
  • Flag Explanations: Clarifies the purpose and usage of various command-line flags for session control, headless mode, tool management, and agent definition.
  • Automation Patterns: Demonstrates how to use the CLI for CI/CD pipelines, piped input processing, and multi-turn agent interactions.

Quick Start

Use the cli-reference skill to understand how to run Claude Code in headless mode for automation.

Frequently Asked Questions about cli-reference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to manage agent definitions when using the Claude Code CLI?▼

The best way to manage agent definitions when using the Claude Code CLI is through dedicated command-line flags. The cli-reference covers how to define and control agentic processes to suit your specific automation and integration requirements.

How do I run Claude Code in headless mode for CI/CD automation?▼

Run Claude Code in headless mode for CI/CD automation by applying specific command-line flags that enable non-interactive execution. The cli-reference details these flags to control sessions, process piped input, and manage agentic workflows programmatically.

What command-line flags are available for session control in the Claude Code SDK?▼

Command-line flags for session control in the Claude Code SDK manage multi-turn agent interactions and tool usage. The cli-reference provides a detailed breakdown of these flags to help you configure and restrict agent capabilities during execution.

Can I get structured JSON output from Claude Code for programmatic consumption?▼

You can get structured JSON output from Claude Code for programmatic consumption by leveraging its streaming JSON formats. The cli-reference explains how to configure these output formats to integrate Claude Code responses directly into your scripts.

Does the Claude Code CLI support piped input processing for automated scripts?▼

The Claude Code CLI supports piped input processing to automate workflows within your scripts. The cli-reference demonstrates automation patterns for passing data through standard input to handle continuous processing tasks.

What is the best way to manage agent definitions when using the Claude Code CLI?▼

The best way to manage agent definitions when using the Claude Code CLI is through dedicated command-line flags. The cli-reference covers how to define and control agentic processes to suit your specific automation and integration requirements.