AI / GitHub Copilot CLI Fundamentals Interview Questions
What is the full list of GitHub Copilot CLI command-line flags and their purposes?
Understanding the complete flag set allows you to use Copilot CLI effectively in both interactive and scripted contexts. Flags are passed at launch to configure the session or a single non-interactive call.
| Flag | Description |
|---|---|
| --version | Print the installed version and exit |
| -p, --prompt | Run a single non-interactive prompt and exit |
| -s, --silent | Suppress extra output - print only Copilot's response (use with -p) |
| --model | Specify the AI model to use (or 'auto' for automatic selection) |
| --experimental | Enable experimental/preview features |
| --no-experimental | Disable experimental features (override persisted setting) |
| --remote | Enable remote control - monitor and interact from GitHub.com/Mobile |
| --no-remote | Disable remote control for this session |
| --remote-export | Share output remotely without full session control |
| --no-remote-export | Disable remote export |
| --resume | Resume a specific previous or remote task by ID |
| --connect | Connect to an existing remote session |
| --delegate | Delegate a task for autonomous execution |
| --log-level | Set logging verbosity (debug, info, warn, error) |
| --log-file | Write log output to the specified file |
| -h, --help | Show help and all available flags |
# Common flag combinations: # Run a quick question non-interactively copilot -p "What is the difference between let and const in JS?" -s # Start a session with a specific model copilot --model gpt-4o # Delegate a task with remote monitoring copilot --delegate "Add pagination to /api/users" --remote # Resume a task from the command line copilot --resume task-abc123 # Debug a failing session copilot --log-level debug --log-file ./debug.log
More Related questions...