21 pages for --force.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
claude-prompting-best-practices
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/claude-prompting-best-practices
…opping database tables, rm -rf - Hard to reverse operations: git push --force, git reset --hard, amending published commits - Operations visible to others: pushing code, commenting on PRs/issues, send…
apply
Claude Developer Platform · in the page
cli-sdks-libraries/cli/apply
…nd the reason. The command then exits with `refusing to apply`. Pass `--force` to overwrite the edit or create a replacement. Deleting a file leaves its resource in place with a warning, and `--prune…
spawn.sh: called once per claimed work item
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes
…em becomes `stopped`. Pass `force: true` (python: `force=True`; cli: `--force`) to mark the work item `stopped` immediately instead of waiting for the worker's confirmation. Because these calls run f…
self-hosted-sandboxes-operations
Claude Developer Platform · in the page
managed-agents/self-hosted-sandboxes-operations
…n becomes `stopped`. Pass `force: true` (python: `force=True`; cli: `--force`) to mark the work item `stopped` immediately instead of waiting for the worker's confirmation. Because these calls run f…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…"Claude Code CLI not found. Try reinstalling: pip install --force-reinstall claude-agent-sdk" ) # Catch ResultError before ProcessError, which it subclasses. Its message #…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…ge, for example `npm install @anthropic-ai/claude-agent-sdk-linux-x64 --force`. * On Windows, the binary subpath is `claude.exe`, for example `@anthropic-ai/claude-agent-sdk-win32-x64/claude.exe`. ##…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…Ctrl+X` twice on its row in agent view or running the `claude rm <id> --force-remove-worktree <worktree-id>` command that the `claude rm` refusal printed. The worktree's branch stays in the repository…
Configure auto mode
Claude Code CLI · in the page
auto-mode-config
…* the destructive operation and its target]: Force pushing (`git push --force`), deleting remote branches, tags, or releases, or rewriting remote history. Also `git commit --amend` when the commit bei…
CLI reference
Claude Code CLI · in the page
cli-reference
…s a worktree that has unpushed commits along with those commits, and `--force-remove-worktree <worktree-id>` deletes a worktree directory that git or the `WorktreeRemove` hook couldn't remove. `--disc…
Commands
Claude Code CLI · in the page
commands
…| | `/reload-plugins [--force]` | Reload all active [plugins](/docs/en/…
Hooks reference
Claude Code CLI · in the page
hooks
…es the path your WorktreeCreate hook returned as `git worktree remove --force` would, so a worktree git recognizes is removed. A worktree git doesn't recognize, for example one your hook created with…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…our next message would re-read the conversation, run `/reload-plugins --force`. **2. Run the build skill** ``` /mcp-server-dev:build-mcp-server ``` Claude asks about your use case and scaffolds a r…
Plugin commands reference
Claude Code CLI · in the page
plugins/cli-reference
…agents`, `hooks`, `mcp`, `lsp`, `output-style`, or `channel` | | `-f, --force` | Overwrite an existing `.claude-plugin/` at the target | Scaffold a plugin with starter skill and hook files: ```bash…
Install and manage plugins
Claude Code CLI · in the page
plugins/install
…it warns and leaves the plugin pending instead. Run `/reload-plugins --force` to activate it anyway, which costs one uncached request. * **Load failed**: `The plugin couldn't be loaded`. Open the **E…
Plugin loading reference
Claude Code CLI · in the page
plugins/loading
…gins`, which [warns about the cache cost and applies when rerun with `--force`](/docs/en/prompt-caching#enabling-or-disabling-a-plugin). ## Name conflicts When enabled plugins from different origins…
React to events with a mod
Claude Code CLI · in the page
plugins/mods/events
…ol.call', { tool: 'Bash' }, async ($, e, next) => { if (/git push .*--force/.test(e.command)) { // Returning without calling next answers the event, so the command never runs return { deny:…
Troubleshoot plugins
Claude Code CLI · in the page
plugins/troubleshooting
…he whole conversation instead of using the cache. Run /reload-plugins --force to apply.`**: the reload would add or remove a plugin MCP server, or the `LSP` tool, and invalidate your prompt cache. For…
How Claude Code uses prompt caching
Claude Code CLI · in the page
prompt-caching
…de shows a warning and doesn't apply the reload. Run `/reload-plugins --force` to apply it anyway. `/reload-plugins` also runs in sessions without an interactive terminal, such as the desktop app, th…
Extend Claude with skills
Claude Code CLI · in the page
skills
…our next message would re-read the conversation, run `/reload-plugins --force` to make the plugin's skills available in the current session. Then ask Claude to evaluate an existing skill, for example…
Troubleshoot installation and login
Claude Code CLI · in the page
troubleshoot-install
…x` first, then install with `npm install -g @anthropic-ai/claude-code --force`. Do not use `sudo`. **`exec: node: not found` when running `claude`.** Your WSL environment is likely using the Windows…
Run parallel sessions with worktrees
Claude Code CLI · in the page
worktrees
…p a worktree that the sweep keeps, run `git worktree remove`, adding `--force` if the worktree has uncommitted changes or untracked files. If git refuses because the worktree is locked, run `git workt…