<a id="lxc-completion-md"></a>

# `lxc completion`

Generate the autocompletion script for the specified shell

## Synopsis

Generate the autocompletion script for lxc for the specified shell.
See each sub-command’s help for details on how to use the generated script.

## Options inherited from parent commands

```default
      --debug          Show all debug messages
      --force-local    Force using the local unix socket
  -h, --help           Print help
      --project        Override the source project
  -q, --quiet          Don't show progress information
      --sub-commands   Use with help or --help to view sub-commands
  -v, --verbose        Show all information messages
      --version        Print version number
```

## SEE ALSO

* [lxc](https://canonical.com/lxd/docs/default/reference/manpages/lxc/index.html.md#lxc-md)	 - Command line client for LXD
* [lxc completion bash](https://canonical.com/lxd/docs/default/reference/manpages/lxc/completion/bash/index.html.md#lxc-completion-bash-md)	 - Generate the autocompletion script for bash
* [lxc completion fish](https://canonical.com/lxd/docs/default/reference/manpages/lxc/completion/fish/index.html.md#lxc-completion-fish-md)	 - Generate the autocompletion script for fish
* [lxc completion powershell](https://canonical.com/lxd/docs/default/reference/manpages/lxc/completion/powershell/index.html.md#lxc-completion-powershell-md)	 - Generate the autocompletion script for powershell
* [lxc completion zsh](https://canonical.com/lxd/docs/default/reference/manpages/lxc/completion/zsh/index.html.md#lxc-completion-zsh-md)	 - Generate the autocompletion script for zsh
