Answer: The CLI has no allow or deny list for shell commands; to block commands, use a `PreToolUse` hook that cancels `run_commands` calls you don't allow. Status: Confirmed Entry: tool/cline/permissions-and-security/restrict-command-execution Revision: 1 Digest: sha256:f035e6a06bce4b18 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:07:58Z Last changed: 2026-11-13T03:07:58Z Last verified: 2026-11-20T12:31:28Z Next check: 2026-11-21T12:31:28Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of restriction method | PreToolUse | [1] | 2026-11-20 allow/deny list availability | no allow or deny list for shell commands | [1] | 2026-11-20 Sources: [1] Cline. "CLI Overview". https://docs.cline.bot/usage/cli-overview.md Role: primary. Accessed: 2026-11-20T12:31:28Z Quote: "use a `PreToolUse` hook that cancels `run_commands` calls you don't allow" (Supports: restriction method) Quote: "The CLI has no allow or deny list for shell commands." (Supports: allow/deny list availability) Published: 2026-11-19T20:11:51Z Snapshot SHA-256: cc358b40e2e72c8358524a7ec1c75ab7f906e4d88140002fdcadeda72dd39521 (captured 2026-11-13T03:07:57Z) 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:07:58Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:31:28Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:31:28Z Last attempt: 2026-11-20T12:31:28Z Notes and limitations: Extracted automatically from a single official source (section "Restrict command execution"). Related: https://latestn.com/tool/cline/permissions-and-security/safe-vs-approval-required-commands How does Cline decide which terminal commands are safe versus requiring approval? https://latestn.com/tool/cline/permissions-and-security/sandbox-tool-execution How do I sandbox tool execution for security when deploying Cline agents to production? https://latestn.com/tool/cline/permissions-and-security/secure-api-key-storage How do I securely store my Cline API key using environment variables or a .env file? https://latestn.com/tool/cline/permissions-and-security/prompt-storage-security-compliance What security and compliance features does Cline Prompt Storage provide, such as encryption and audit logging? https://latestn.com/tool/cline/permissions-and-security/required-aws-role-permissions What AWS permissions or role does Cline require when using an AWS CLI SSO profile for Bedrock? https://latestn.com/tool/cline/permissions-and-security/required-iam-policies-for-bedrock Which IAM policies do I need to attach to use AWS Bedrock with Cline? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:07:58Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/permissions-and-security/restrict-command-execution/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/cline/permissions-and-security/restrict-command-execution POST: https://latestn.com/dispute/tool/cline/permissions-and-security/restrict-command-execution with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cline/permissions-and-security/restrict-command-execution?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I restrict command execution in Cline CLI automation? Revision 1, last verified 2026-11-20T12:31:28Z. https://latestn.com/tool/cline/permissions-and-security/restrict-command-execution (accessed 2026-11-21T09:57:30Z). @misc{LatestN_tool_cline_permissions_and_security_restrict_command_execution_r1, title = {How do I restrict command execution in Cline CLI automation?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/permissions-and-security/restrict-command-execution}}, note = {Revision 1; digest sha256:f035e6a06bce4b18; last verified 2026-11-20T12:31:28Z; accessed 2026-11-21T09:57:30Z} } 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/cline/permissions-and-security/restrict-command-execution