How to create global rules for CLI?

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

I install CLI in Linux Server, and provide code service to different people. I want to create a global rules for CLI, I don’t know how to do that. Who can tell me, thank you .

Steps to Reproduce

I know I can copy project rules to the user project, but I want to try the advanced method.

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

version: CLI 1.6
system:Linux

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report.

Cursor CLI currently supports two configuration types:

  • Global permissions in ~/.cursor/cli-config.json control what the agent can access (allow/deny file operations, shell commands, etc.)
  • Project-level rules in .cursor/rules/ or AGENTS.md or CLAUDE.md AI behavior instructions that apply per project only

Global AI rules aren’t supported yet, instructions must be defined at the project level.

Possible workarounds if you need AI rules:

  • Create a template .cursor/rules/ directory and a script to copy it into each project
  • Use a shared base project template that all users start from

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.