Copilot CLI: Permissions, Config, Trusted Folders, and Environment Variables/Allow a specific domain
Trust a URL or domain without prompts.
Section: Permissions, tools, paths, and URLs
Allow a specific domain
bash
bash
copilot --allow-url=docs.github.com -p "Read the docs and summarize the CLI auth flow."Explanation
Useful when you want the agent to consult a fixed documentation source.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Permissions, tools, paths, and URLs
Allow all tools, paths, and URLs
Disable approval prompts for the whole run.
Deny a dangerous shell action
Block a specific command even when a broader rule allows related commands.
Block a specific URL or domain
Prevent access to sites you do not want queried.