GitHub Copilot CLI slash commands provide explicit, repeatable shortcuts for common development tasks directly in the terminal. Commands like /clear manage session context, /add-dir controls file access scope, /model switches AI models, and /delegate creates pull requests. These commands offer predictable behavior, improve security through explicit permissions, enable keyboard-driven workflows, and eliminate context switching between tools. Key commands include /cwd for directory navigation, /share for exporting sessions, /mcp for server configuration, and /user for account management.
Table of contents
What are slash commands?Why use slash commands?Useful Copilot CLI slash commands for your everyday workflowSession management commandsDirectory and file access commandsConfiguration commandsExternal services commandsBringing it all togetherQuick referenceTags:Written bySort: