# `mix zen_websocket.usage`
[🔗](https://github.com/ZenHive/zen_websocket/blob/v0.4.2/lib/mix/tasks/zen_websocket.usage.ex#L1)

Mix task to export ZenWebsocket usage rules for AI agents and developers.

This task integrates with the usage_rules library to make ZenWebsocket's
usage patterns easily accessible in other projects.

## Usage

    mix zen_websocket.usage
    
## Options

  * `--format` - Output format: `markdown` (default) or `json`
  * `--output` - Output file path (defaults to stdout)
  * `--sections` - Comma-separated list of sections to include
  
## Examples

    # Output to stdout
    mix zen_websocket.usage
    
    # Save to file
    mix zen_websocket.usage --output my_rules.md
    
    # Export specific sections
    mix zen_websocket.usage --sections "quick_start,common_patterns,error_handling"
    
    # Export as JSON for programmatic use
    mix zen_websocket.usage --format json --output rules.json

---

*Consult [api-reference.md](api-reference.md) for complete listing*
