# Function createCliAdapter

CLI Adapters exports - CLI integration with defensive parsing Split from index.ts for file size compliance (Issue #285)

- createCliAdapter(config: CliAdapterConfig): ICliAdapter

  Creates a CLI adapter based on configuration.

  #### Parameters

  - config: CliAdapterConfig

    Adapter configuration

  #### Returns ICliAdapter

  The configured CLI adapter

  #### Throws

  Error if CLI name is not supported

  #### Example

      const adapter = createCliAdapter({ cli: 'claude', model: 'claude-opus-4' });
      const result = await adapter.execute({ content: 'Hello!' });

  - Defined in packages/nexus-agents/src/cli-adapters/factory.ts:51