_cli_zsh_autocomplete() {

  local -a cmds
  cmds=('attach:Attach to a running container' 'create:Create a new container' 'exec:Run a command in a running container' 'version:Display runtime version information' 'images:List images' 'image:List images' 'img:List images' 'inspect:Display the status of one or more containers' 'inspecti:Return the status of one or more images' 'imagefsinfo:Return image filesystem info' 'inspectp:Display the status of one or more pods' 'logs:Fetch the logs of a container' 'port-forward:Forward local port to a pod' 'ps:List containers' 'pull:Pull an image from a registry' 'run:Run a new container inside a sandbox' 'runp:Run a new pod' 'rm:Remove one or more containers' 'rmi:Remove one or more images' 'rmp:Remove one or more pods' 'pods:List pods' 'start:Start one or more created containers' 'info:Display information of the container runtime' 'stop:Stop one or more running containers' 'stopp:Stop one or more running pods' 'update:Update one or more running containers' 'config:Get and set crictl client configuration options' 'stats:List container(s) resource usage statistics' 'completion:Output shell completion code' 'help:Shows a list of commands or help for one command' 'h:Shows a list of commands or help for one command')
  _describe 'commands' cmds

  local -a opts
  opts=('--config' '--debug' '--image-endpoint' '--runtime-endpoint' '--timeout' '--help' '--version')
  _describe 'global options' opts

  return
}

compdef _cli_zsh_autocomplete crictl
