For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Ask AIPlaygroundLoginFree API Key
HomeAPI ReferenceVoice AgentSpeech-to-TextText-to-SpeechIntelligenceSelf-Hosted Deployments
HomeAPI ReferenceVoice AgentSpeech-to-TextText-to-SpeechIntelligenceSelf-Hosted Deployments
    • Home
    • Ask AI
    • Support
    • Changelog
        • Getting Started
        • Installation
        • Authentication
        • Speech-to-Text
        • Text-to-Speech
        • Text Intelligence
        • Account Management
        • MCP Server
        • Shell Completion
        • Plugin System
      • Agentic developer tools
  • Trust & Security
    • Security Policy
    • Data Privacy Compliance
    • Information Security & Privacy
  • SDKs
    • SDK Features
  • Guides
LogoLogo
Ask AIPlaygroundLoginFree API Key
On this page
  • Generate Completion Script
  • bash
  • zsh
  • fish
  • Verify Installation
  • What Gets Completed
  • Refresh Completions
Developer ToolsCommand-Line Interface

Shell Completion

Enable tab completion for bash, zsh, and fish shells.
Was this page helpful?
Previous

Plugin System

Extend the Deepgram CLI with community-built plugins.

Next
Built with

Generate Completion Script

$dg completion bash > dg-completion.bash
$dg completion zsh > dg-completion.zsh
$dg completion fish > dg-completion.fish

bash

Add to your ~/.bashrc:

$source ~/dg-completion.bash

Or copy to the completion directory:

$sudo cp dg-completion.bash //bash_completion.d/

zsh

Add to your ~/.zshrc:

$source ~/dg-completion.zsh

Or copy to the completion directory:

$mkdir -p ~/.zsh/completions
$cp dg-completion.zsh ~/.zsh/completions/_dg

Make sure completions are enabled:

$autoload -Uz compinit
$compinit

fish

Add to your ~/.config/fish/config.fish:

$source ~/dg-completion.fish

Verify Installation

$dg completion --verify

What Gets Completed

  • Commands: dg listen, dg speak, dg read, etc.
  • Subcommands: --mic, --model, -o json, etc.
  • File paths after dg listen
  • Project IDs and key names

Refresh Completions

After updating the CLI, regenerate completions:

$dg completion bash > dg-completion.bash