You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`copilot`| Launch the interactive user interface. |
22
+
|`copilot completion SHELL`| Print a shell script for the chosen shell that can be used to enable tab completion for {% data variables.copilot.copilot_cli_short %}. Supported shells: `bash`, `zsh`, `fish`. See [Using `copilot completion`](#using-copilot-completion). |
22
23
|`copilot help [TOPIC]`| Display help information. Help topics include: `config`, `commands`, `environment`, `logging`, `monitoring`, `permissions`, and `providers`. |
23
24
|`copilot init`| Initialize {% data variables.product.prodname_copilot_short %} custom instructions for this repository. |
24
25
|`copilot login`| Authenticate with {% data variables.product.prodname_copilot_short %} via the OAuth device flow. Accepts `--host HOST` to specify the {% data variables.product.github %} host URL (default: `https://github.com`). |
The command `copilot completion SHELL` outputs a script for the specified shell (bash, zsh, or fish).
60
+
61
+
By sourcing this script (or writing it to your shell's completion directory) you can enable tab completion in your terminal for `copilot` subcommands, command options, and known value choices for command options.
62
+
63
+
#### Usage examples
64
+
65
+
Bash (current session only):
66
+
67
+
```bash copy
68
+
source<(copilot completion bash)
69
+
```
70
+
71
+
Bash (persistent, Linux):
72
+
73
+
```bash copy
74
+
copilot completion bash | sudo tee /etc/bash_completion.d/copilot
75
+
```
76
+
77
+
Zsh — write the output to a directory on your $fpath. Restart the shell after running this command:
78
+
79
+
```shell copy
80
+
copilot completion zsh >"${fpath[1]}/_copilot"
81
+
```
82
+
83
+
Fish:
84
+
85
+
```shell copy
86
+
copilot completion fish >~/.config/fish/completions/copilot.fish
0 commit comments