Answer: Use the Read(pathOrGlob) permission format, which controls read access to files and directories and supports glob patterns. For example, Read(src/**/*.ts) allows reading TypeScript files in src, while Read(.env*) denies reading environment files. Status: Confirmed Entry: tool/cursor/permissions-and-security/file-read-permissions Revision: 1 Digest: sha256:203223ecd41189e9 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:45Z Last changed: 2026-11-13T03:09:45Z Last verified: 2026-11-20T12:35:52Z Next check: 2026-11-21T12:35:52Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Format | Read(pathOrGlob) | [1] | 2026-11-20 Allow example | Read(src/**/*.ts) | [1] | 2026-11-20 Allow example description | Allow reading TypeScript files in `src` | [1] | 2026-11-20 Deny example | Read(.env*) | [1] | 2026-11-20 Deny example description | Deny reading environment files | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/cli/reference/permissions.md". https://cursor.com/docs/cli/reference/permissions.md Role: primary. Accessed: 2026-11-20T12:35:52Z Quote: "**Format:** `Read(pathOrGlob)`" (Supports: Format) Quote: "`Read(src/**/*.ts)`" (Supports: Allow example) Quote: "Allow reading TypeScript files in `src`" (Supports: Allow example description) Quote: "`Read(.env*)`" (Supports: Deny example) Quote: "Deny reading environment files" (Supports: Deny example description) Snapshot SHA-256: 9f8264f5d8136496f008e0949cdad81760b8fa7784e3d6a2a04757c13c960f15 (captured 2026-11-13T03:09:45Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:09:45Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:35:52Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:35:52Z Last attempt: 2026-11-20T12:35:52Z Notes and limitations: Extracted automatically from a single official source (section "File reads"). Related: https://latestn.com/tool/cursor/permissions-and-security/force-yolo-approval How do I make Cursor CLI run all actions without approval in print mode? https://latestn.com/tool/cursor/permissions-and-security/github-actions-authentication How do I authenticate Cursor CLI in GitHub Actions using an API key? https://latestn.com/tool/cursor/permissions-and-security/github-ip-allow-list How do I configure an IP allow list for the Cursor GitHub app? https://latestn.com/tool/cursor/permissions-and-security/default-approval-actions Which Cursor agent actions require my manual approval by default? https://latestn.com/tool/cursor/permissions-and-security/enable-oidc-self-hosted-workers How do I enable OIDC token minting for Cursor Cloud Agents on self-hosted workers? https://latestn.com/tool/cursor/permissions-and-security/enforcement-hooks How do I set up enforcement hooks in Cursor to block or redact operations? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:09:45Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/permissions-and-security/file-read-permissions/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/permissions-and-security/file-read-permissions POST: https://latestn.com/dispute/tool/cursor/permissions-and-security/file-read-permissions with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/permissions-and-security/file-read-permissions?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I restrict file read access in Cursor CLI with Read permission patterns? Revision 1, last verified 2026-11-20T12:35:52Z. https://latestn.com/tool/cursor/permissions-and-security/file-read-permissions (accessed 2026-11-21T10:03:23Z). @misc{LatestN_tool_cursor_permissions_and_security_file_read_permissions_r1, title = {How do I restrict file read access in Cursor CLI with Read permission patterns?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/permissions-and-security/file-read-permissions}}, note = {Revision 1; digest sha256:203223ecd41189e9; last verified 2026-11-20T12:35:52Z; accessed 2026-11-21T10:03:23Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/permissions-and-security/file-read-permissions