Deepgram CLI 0.5.0: dg speak gets --out-file, dg init needs --yes outside a terminal
Deepgram CLI v0.5.0
Deepgram CLI v0.5.0, released 13 November, changes how dg speak saves audio, how dg init confirms setup outside a terminal, and what dg listen -o prints.
dg speakadds--out-file, which refuses to overwrite an existing file unless you also pass--force.-o/--outputstill works for the audio file but is deprecated and always overwrites.- Outside a terminal, including any AI-agent session,
dg initneeds--yes(the only way inside an AI-agent session) or--install(outside one) to run a template’s setup, and--startto start it; without one, it exits1withconfirmation_requiredinstead of running automatically. dg listen -o jsonand-o yamlnow print the server’s prerecorded response body as sent;-o tableand-o csvare still no-ops. A newdg listen-only-o textprints the transcript alone.DEEPCTL_LISTEN_JSON=sdkrestores the pre-0.5.0 SDK-parsed JSON shape.dg listenalso adds--timeoutfor files and URLs, and saves a prerecorded result over 64 KiB to~/.deepctl/results/in an AI-agent session (--full-outputprints it anyway).dg login --api-keyaccepts a real key immediately, with no format check and no-fneeded. A newconfirmation_requiredguardrail asks for--yesinstead whenDEEPGRAM_API_KEYis already set in the environment.dg login --completefinishes an agent-assisted device login.-o jsonerrors on most pre-command failures now carrycode,hint,next_step, andschema_versionfields alongside the existingerror/status;.message // .errorstill reads every shape safely.- An unexpanded
${...}placeholder inDEEPGRAM_API_KEY,DEEPGRAM_PROFILE,DEEPGRAM_PROJECT_ID, orDEEPGRAM_BASE_URLis now ignored with a warning, and a system keyring that doesn’t answer within 2 seconds is skipped in favor of the next credential source. DEEPCTL_TELEMETRY=logand=off, plusDO_NOT_TRACKandCI, joinDEEPCTL_TELEMETRY_DISABLEDas telemetry opt-outs. By default, with noDEEPCTL_TELEMETRY_DSNset,dghas no telemetry destination at all and sends nothing; see Install the CLI for exactly what a configured destination receives.dg profiles --listnow shows each profile’s stored key by its last 4 characters.
For details, see Deepgram CLI, Troubleshooting, and the deepgram/cli v0.5.0 release.