# Shell Completion

## Install Completion

```shell
dg completion bash --install
dg completion zsh --install
dg completion fish --install
```

The command appends the appropriate completion setup to your shell profile. Restart your shell or source that profile after installation.

## Current Shell Session

To enable Bash completion only for the current session:

```shell
eval "$(_DG_COMPLETE=bash_source dg)"
```

For zsh or fish, use the `--install` command above.

## What Gets Completed

- Commands: `dg listen`, `dg speak`, `dg read`, etc.
- Options: command options such as `--mic` and `--model`, and root options such as `-o`
- File paths after `dg listen`

The installed setup evaluates completion support from the current `dg` command, so it automatically reflects a CLI update.

## Related pages

- [Deepgram CLI — Getting Started](./self-hosted-deployments-developer-tools-cli-getting-started.md)
- [CLI Installation](./self-hosted-deployments-developer-tools-cli-installation.md)
- [CLI Authentication](./self-hosted-deployments-developer-tools-cli-authentication.md)
- [Speech-to-Text Commands](./self-hosted-deployments-developer-tools-cli-speech-to-text.md)
- [Text-to-Speech Commands](./self-hosted-deployments-developer-tools-cli-text-to-speech.md)
- [Text Intelligence Commands](./self-hosted-deployments-developer-tools-cli-text-intelligence.md)
- [Account Management Commands](./self-hosted-deployments-developer-tools-cli-account-management.md)
- [MCP Server](./self-hosted-deployments-developer-tools-cli-mcp-server.md)
- [Plugin System](./self-hosted-deployments-developer-tools-cli-plugins.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
