> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.endorlabs.com/feedback

```json
{
  "path": "/developers-api/cli/commands/completion/index",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# completion

> Use the completion command to get a command completion script for a specified command shell

The `completion` command for endorctl outputs a completion script that you can add to your local environment. After running the script, tab autocompletion will be available for endorctl.

Supported command completion environments are Zsh, PowerShell, bash and fish.

## Command completion for Zsh shells

To enable command completion for a macOS based Zsh environment.

```shell theme={null}
echo "source $(endorctl completion zsh)" >> ~/.zshrc
source ~/.zshrc
```

You will need to start a new shell for this setup to take effect.

## Command completion for bash shells

To enable command completion for a Linux bash based shell.

```shell theme={null}
echo "source $(endorctl completion zsh)" >> ~/.bashrc
source ~/.bashrc
```

You will need to start a new shell for this setup to take effect.

## Command completion for PowerShell

To load completions in your current shell session.

```powershell theme={null}
endorctl completion powershell | Out-String | Invoke-Expression
```

To load completions for every new session, add the output of the above command
to your PowerShell profile.

## Command completion for Fish shells

To load completions in your current shell session.

```shell theme={null}
endorctl completion fish | source
```

To load completions for every new session, execute once.

```shell theme={null}
endorctl completion fish > ~/.config/fish/completions/endorctl.fish
```

You will need to start a new shell for this setup to take effect.

## Usage

There are no flags that apply to endorctl completion.
