Skip to main content

Module cli

Module cli 

Source
Expand description

Builder pattern for configuring and launching the Claude CLI process.

This module provides ClaudeCliBuilder for constructing Claude CLI commands with the correct flags for JSON streaming mode. The builder automatically configures:

  • JSON streaming input/output formats
  • Non-interactive print mode
  • Verbose output for proper streaming
  • OAuth token and API key environment variables for authentication

Structs§

ClaudeCliBuilder
Builder for creating Claude CLI commands in JSON streaming mode

Enums§

CliFlag
Comprehensive enum of all Claude CLI flags.
InputFormat
Input format for Claude CLI
OutputFormat
Output format for Claude CLI
PermissionMode
Permission mode for Claude CLI