Skip to content

CLI Reference

Andrew Paolucci edited this page Nov 26, 2026 · 2 revisions

CLI Reference (winctl2rust)


1. Global Policy, Filter & Export Options

-l, --log-level <LOG_LEVEL>  Logging verbosity written strictly to stderr (error, warn, info, debug, trace) [default: warn]
    --dry-run                Preview mutating operations without modifying OS state
    --allow-mutating         Permit mutating and privileged-mutating commands (must be paired with --confirm-destructive)
    --confirm-destructive    Explicit destructive-action confirmation required when applying mutations
    --format <FORMAT>        table, csv, tsv, json, jsonl, html, html-vertical, markdown [default: table]
-o, --output <OUTPUT>        Destination file or directory path for output / exports
    --custody <CUSTODY>      Write SHA-256/SHA-512 custody sidecar or JSONL action audit record to PATH
    --filter <FILTER>        Tabular filter expression (e.g. "active == true && width >= 1920")
    --sort <SORT>            Comma-separated sort columns (e.g. "name:asc,pid:desc" or "-volume_percent")
    --limit <LIMIT>          Maximum number of table rows to return
    --offset <OFFSET>        Starting row offset for table pagination

2. Commands

  • cmd — script, run, from-proc, atnow
  • audio — view, ctl, app-config, wheel
  • display — monitors, ddc, info, edid
  • desktop — props, windows, tree, ctrl-export, clipboard, clip-hist, hotkeys, keys, fonts, webcam
  • export — Export any single tool or category/suite bundle with SHA-256/SHA-512 custody sidecars
  • mcp — Run policy-gated JSON-RPC 2.0 stdio MCP server or print the 40-tool manifest (mcp --tools)
  • gui — Launch native Win32 (winctl2rust-win32) or cross-platform Iced (winctl2rust-iced) GUI
  • catalog — List all 22 built-in tools and their capabilities

3. Safe Preview & Inspection Examples

# Inspect offline VESA EDID dump or enumerate fonts in JSON
winctl2rust display edid --format json
winctl2rust desktop fonts --format table --limit 25

# Safely preview a command script without touching OS state (--dry-run)
winctl2rust --dry-run cmd script

# Enumerate the full 22-tool catalog
winctl2rust catalog

Clone this wiki locally