Справочник CLI: команды, флаги и автоматизация
documentation
cli-reference is a Claude Code skill that serves as a complete reference for CLI commands, flags, and automation patterns. It covers the interactive REPL, headless mode via the `-p` flag for CI/CD pipelines and agentic workflows, session management (`--continue`, `--resume`, `--fork-session`), tool allowlists and blocklists, and output formats including `text`, `json`, and `stream-json`. The `--agents` flag lets you define custom subagents inline as JSON, specifying each agent's `description`, `prompt`, `tools`, and `model` — the Lead agent then spawns them automatically via the Task tool. System prompts can be replaced or extended with `--system-prompt` or `--append-system-prompt`, and MCP servers are loaded via `--mcp-config`. Developers and DevOps engineers will find this skill essential when embedding Claude Code into scripts, automation workflows, or multi-agent architectures.
- #cli
- #headless-mode
- #automation
- #ci-cd
- #agents