Copilot CLI: Permissions, Config, Trusted Folders, and Environment Variables/Store permanently trusted folders
Persist trusted directories in the user config.
Section: Config files and trusted-folder layout
Store permanently trusted folders
json
json
{
"trusted_folders": [
"/Users/you/src/project-a",
"/Users/you/src/project-b"
]
}Explanation
Trusted folders control where Copilot can read, modify, and execute files without re-prompting each time.
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 Config files and trusted-folder layout