pgd completion
==============

Synopsis
--------

The ``pgd completion`` commands are used to manage the completion
settings for the EDB Postgres Distributed CLI.

Syntax
------

.. code:: plaintext

   pgd completion <SHELL>

Where ``<SHELL>`` is the shell for which to generate the autocompletion
script.

Possible values for shell are ``bash`` , ``fish`` , ``zsh`` and
``powershell`` .

Users and roles
^^^^^^^^^^^^^^^

No database connection is required. See :ref:`User roles <User roles>`  .

Options
-------

No command specific options. See `Global Options <https://www.enterprisedb.com/docs/pgd/latest/reference/cli/command_ref/#global-options>`_  .

Example
-------

.. code:: shell

   pgd completion zsh

This command would normally be evaluated as part of a shell session’s
startup files. It generates a completion script for the Zsh shell and
writes it to the standard output. Therfore you would add to your
``.zshrc`` file:

.. code:: shell

   eval "$(pgd completion zsh)"
