$ dok completions
Print a shell completion script to stdout
Synopsis
dok completions [OPTIONS] <SHELL>Description
Prints a completion script for bash, zsh, fish, nushell, powershell or elvish. It is generated from the same definition the CLI is built from, so it cannot fall behind the commands and flags that exist.
Homebrew, the .deb and the .rpm install completions already. Every release also attaches a tarball with all six.
Arguments
<SHELL>- Which shell to generate for
Options
-c, --context <NAME>- Docker context to use (see
docker context ls); overrides DOCKER_HOST, DOCKER_CONTEXT and the current context
Every command also takes the global options: --json, --color, --icons and --theme.
Examples
$ dok completions zsh > "${fpath[1]}/_dok" # zsh$ dok completions bash > /etc/bash_completion.d/dok # bash$ dok completions fish > ~/.config/fish/completions/dok.fish # fishSee also
dok 0.4.02026-11-03DOK-COMPLETIONS(1)