Driftctl can output completion script (also known as *tab completion*) for you to use on your shell. Currently `bash`, `zsh`, `fish` and `powershell` shells are supported.
### Before you start
In order to generate the completion script required to make the completion work, you have to install driftctl CLI first.
### Generate the completion file
To generate the completion script you can use:
```shell
$ driftctl completion [bash|zsh|fish|powershell]
```
By default, this command will print on the standard output the content of the completion script. To make the completion work you will need to redirect it to the completion folder of your shell.
At this point you can generate and place the completion script in your completion folder listed in your `fpath` if it already exists. Otherwise, you can create a directory, add it to your `fpath` and copy the file in it: