commands.sh

copilot

all

Interact with GitHub Copilot.

More info →

Options (1)

-p, --promptboolean

Execute a prompt directly without interactive mode, while allowing `copilot` to run any command

Example: copilot {{[-p|--prompt]}} "{{Fix the bug in main.js}}" --allow-all-tools

Examples (7)

Start interactive mode

Allow all file editing

copilot --allow-tool write

Resume the most recent session

copilot --continue

Resume a previous session using session picker

copilot --resume

Use a specific model

copilot --model "gpt-5"

Allow all Git commands except `git push`

copilot --allow-tool 'shell(git:*)' --deny-tool 'shell(git push)'

Execute a prompt directly without interactive mode, while allowing `copilot` to run any command

copilot [-p|--prompt] "Fix the bug in main.js" --allow-all-tools
made by @shridhargupta | data from tldr-pages