{
  "command": "init",
  "description": "Install dependencies and configure transcription backend (local whisper-cli, OpenAI API, Vercel AI Gateway, or ElevenLabs Scribe)",
  "flags": {
    "--backend": {
      "type": "string",
      "enum": [
        "local",
        "openai",
        "vercel",
        "elevenlabs"
      ],
      "default": "local",
      "description": "Transcription backend. 'openai', 'vercel' and 'elevenlabs' skip whisper-cli install; 'openai' requires OPENAI_API_KEY, 'vercel' requires AI_GATEWAY_API_KEY, 'elevenlabs' requires ELEVENLABS_API_KEY"
    },
    "--model": {
      "type": "string",
      "default": "small",
      "description": "Model to use. Local: tiny, base, small, medium, large, large-v3-turbo. OpenAI: gpt-4o-transcribe, gpt-4o-mini-transcribe, whisper-1. Vercel: creator/model-name, e.g. openai/whisper-1. ElevenLabs: scribe_v2, scribe_v1"
    },
    "--language": {
      "type": "string",
      "default": "auto",
      "description": "Default language for transcription (ISO 639-1 code or 'auto')"
    },
    "--yes": {
      "type": "boolean",
      "default": false,
      "description": "Install missing dependencies without prompting. Intended for IT-managed setup and CI"
    },
    "--output": {
      "type": "string",
      "enum": [
        "json",
        "table",
        "auto"
      ],
      "default": "auto",
      "description": "Output format"
    }
  },
  "dependencies": {
    "whisper-cli": {
      "install": "brew install whisper-cpp",
      "purpose": "Local speech-to-text transcription engine (not needed for openai, vercel or elevenlabs backends)"
    },
    "yt-dlp": {
      "install": "brew install yt-dlp",
      "purpose": "Download video/audio from URLs (YouTube, Twitter, etc.)"
    },
    "ffmpeg": {
      "install": "brew install ffmpeg",
      "purpose": "Audio cleaning, conversion, noise reduction and normalization. Duration is preserved so transcript timestamps match the input"
    }
  },
  "output": {
    "success": "boolean",
    "backend": "string (local | openai | vercel | elevenlabs)",
    "model": "string",
    "language": "string",
    "modelPath": "string (local only)",
    "config": "TrxConfig object"
  },
  "examples": [
    "trx init",
    "trx init --backend openai",
    "trx init --backend openai --model gpt-4o-mini-transcribe",
    "trx init --backend vercel --model openai/whisper-1",
    "trx init --backend elevenlabs --model scribe_v2",
    "trx init --model large-v3-turbo --language es",
    "trx init --yes --backend local --model small --language es",
    "trx init --model large --output json"
  ]
}
