update-cli-config

View and modify Cursor CLI configuration settings in cli-config.json.

Updated Aug 6, 2026
One-click install
npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill update-cli-config-ferrarifankid04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-cli-config
Source: https://github.com/ferrarifankid04/ai-skills-public/tree/main/cursor/skills-cursor/update-cli-config
Command: npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill update-cli-config-ferrarifankid04

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Cursor CLI settings live in a JSON file at ~/.cursor/cli-config.json with many fields, some of which must never be edited manually. This Skill guides safe viewing and modification of those settings so changes are correct and take effect after restart. ## Core Features & Use Cases - Permission Management: Configure allow and deny patterns for tool calls, such as Shell or MCP server tools. - Editor and Display Options: Enable vim mode, set default behavior mode, and toggle line numbers, thinking blocks, and status indicators. - Advanced Settings: Adjust approval mode, sandbox network access, AWS Bedrock integration, git attribution, and web fetch domain allowlists. - Use Case: A developer wants the CLI to auto-approve tool calls and enable vim keybindings. The Skill reads the config, updates approvalMode and editor.vimMode, and notes that a CLI restart is required. ## Quick Start Ask the assistant to enable vim mode and set approval mode to auto-approve in your Cursor CLI configuration file.

Frequently Asked Questions about update-cli-config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I change Cursor CLI settings?

Edit the JSON file at ~/.cursor/cli-config.json by reading it, applying your changes, and writing it back. Changes take effect after restarting the CLI. Projects can also layer overrides via .cursor/cli.json files.

How do I configure tool permissions in Cursor CLI?

Set the permissions field with allow and deny arrays of string patterns, such as "Shell(**)" or "Mcp(server-name, tool-name)". Allowed patterns permit matching tool calls while denied patterns block them.

Can projects override Cursor CLI config settings?

Yes, projects can layer overrides via .cursor/cli.json files. The CLI walks from the git root to the current directory and merges each file found, with deeper files taking precedence. Overrides only affect the current session.

Which Cursor CLI config fields should not be edited?

Do not modify version, model, selectedModel, modelParameters, hasChangedDefaultModel, privacyCache, authInfo, showSandboxIntro, or conversationClassificationScoredConversations. These are internal or cached state managed by the CLI itself.

How do I enable sandbox mode in Cursor CLI?

Set sandbox.mode to "enabled" in cli-config.json, then configure networkAccess and networkAllowlist to control which domains the sandbox can reach. Restart the CLI for the changes to take effect.