Claude Code Spickzettel & Schnellreferenz

Einrichtung und Zugriff

$curl -fsSL https://claude.ai/install.sh | bash
$curl -fsSL https://claude.ai/install.sh | bash

Installieren Sie Claude Code nativ auf macOS, Linux oder WSL mit automatischen Hintergrund-Updates.

$irm https://claude.ai/install.ps1 | iex

Installieren Sie Claude Code mit dem nativen Installationsprogramm von Windows PowerShell mit automatischen Hintergrund-Updates.

$curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd

Installieren Sie Claude Code mit dem nativen Installationsprogramm von Windows CMD mit automatischen Hintergrund-Updates.

$brew install --cask claude-code
$brew install --cask claude-code

Installieren Sie Claude Code mit Homebrew.

$brew upgrade claude-code
$brew upgrade claude-code

Homebrew-Installationen werden nicht automatisch aktualisiert. Führen Sie diesen Befehl aus, um die neuesten Funktionen und Sicherheitsfix zu erhalten.

$winget install Anthropic.ClaudeCode

Installieren Sie Claude Code mit WinGet on Windows.

$winget upgrade Anthropic.ClaudeCode

WinGet-Installationen werden nicht automatisch aktualisiert. Führen Sie diesen Befehl aus, um die neuesten Funktionen und Sicherheitsfix zu erhalten.

$claude

Starten Sie eine interaktive Claude Code-Sitzung im aktuellen Projekt.

$claude -v

Zeigen Sie die installierte Claude Code-Version an.

$claude update

Aktualisieren Sie Claude Code manuell auf die neueste Version.

$claude --init

Führen Sie Initialisierungshaken aus und starten Sie den interaktiven Modus.

$claude auth login

Melden Sie sich von der Konsole bei Ihrem Claude-Konto an. Verwenden Sie --email zum Ausfüllen der E-Mail oder --sso zum Erzwingen der SSO-Authentifizierung.

$claude auth status --text

Zeigen Sie den Authentifizierungsstatus als JSON an. Verwenden Sie --text für menschenlesbaren Ausgabe. Beende mit Code 0 bei Anmeldung, 1 wenn nicht.

$claude "write a test for this function"

Führen Sie eine einmalige Aufgabe aus und erhalten Sie eine Antwort, ohne eine interaktive Sitzung zu starten.

$claude commit

Erstellen Sie einen Git-Commit mit Claude Code, das die Commit-Nachricht schreibt.

/init

Initialisieren Sie die Projektleitfäden für das aktuelle Projekt.

/memory

Öffnen Sie die Claude-Speicherverwaltung innerhalb der Sitzung.

/login

Melden Sie sich bei Ihrem Anthropic-Konto an.

/logout

Melden Sie sich von Ihrem Anthropic-Konto ab.

/mobile
/ios
/android

Zeigen Sie den QR-Code zum Herunterladen der Claude-Mobil-App an.

/import codex
/import gemini
/import cursor

Bring configuration from OpenAI Codex, Google Gemini CLI, or Cursor into Claude Code, including instruction files, MCP servers, commands, subagents, and skills.

Eingabeaufforderung und Eingabe

$claude -p "explain this function"

Führen Sie Claude einmal im Druckmodus aus und beenden Sie mit einer einzigen Antwort.

Ctrl + G
Ctrl + X then Ctrl + E

Öffnen Sie die aktuelle Eingabeaufforderung in Ihrem Standard-Texteditor.

/btw what was the name of that config file again?

Stellen Sie eine Nebenfrage, ohne sie zum Hauptverlauf hinzuzufügen. Kann ausgeführt werden, während Claude arbeitet.

Ctrl + K

Löschen Sie vom Cursor bis zum Ende der Zeile.

Ctrl + U

Löschen Sie die gesamte aktuelle Zeile.

Ctrl + Y

Fügen Sie mit Readline-Kill-Befehlen gelöschten Text ein.

Alt + Y

Durchsuchen Sie frühere Kill-Ring-Einträge nach dem Einfügen.

Alt + B

Verschieben Sie den Cursor um ein Wort zurück.

Alt + F

Verschieben Sie den Cursor um ein Wort vorwärts.

Ctrl + V or Cmd + VAlt + VCtrl + V or Alt + V

Fügen Sie ein Bild aus der Zwischenablage ein.

\ + Enter
Shift + Enter
Ctrl + J
Option + EnterShift + EnterShift + Enter

Einfügen einer neuen Zeile für mehrzeilige Eingabe.

/

Öffnen Sie die Slash-Command-Picker vom Anfang der Aufforderung.

!

Geben Sie den Bash-Modus vom Anfang der Aufforderung ein.

@

Auslöser-Dateipfad-Autovervollständigung.

Tab

Akzeptieren Sie einen Prompt-Vorschlag zum Bearbeiten.

Enter

Akzeptieren Sie einen Prompt-Vorschlag und senden Sie ihn sofort.

Escape
Backspace
Ctrl + U

Beenden Sie den Bash-Modus, wenn die Aufforderung leer ist.

/voice

Aktivieren oder deaktivieren Sie die Push-to-Talk-Sprachdiktation.

Space
Enter
Escape

Schließen Sie eine /btw-Seitenfrageüberlagerung und kehren Sie zur Hauptaufforderung zurück.

/goal all tests passing
/goal clear

Set a goal: Claude keeps working across turns until the condition is met. Pass clear to remove an active goal early.

/loop 5m check if the deploy finished

Run a prompt repeatedly while the session stays open, with an interval such as 5m, or let Claude self-pace. Alias: /proactive.

/schedule

Create, update, list, or run routines, which execute in the cloud on a schedule. Alias: /routines.

/deep-research compare state of the art RAG approaches

Fan out web searches on a question, fetch and cross-check sources, and synthesize a cited report.

Ctrl + S

Stash the current prompt for later. With text in the input, stashes it and clears the prompt; pressed again on an empty prompt, restores the stashed text.

Ctrl + A

Move the cursor to the start of the current line. In multiline input, moves to the start of the current logical line.

Ctrl + E

Move the cursor to the end of the current line. In multiline input, moves to the end of the current logical line.

Ctrl + W

Delete back to the previous whitespace. One press removes a whole path or --flag=value.

Alt + D

Delete to the end of the current word, or to the end of the next word when the cursor is between words.

Ctrl + _
Ctrl + Shift + -

Undo the last input edit, restoring the previous input text and cursor position.

Ctrl + Enter
Ctrl + X then Ctrl + S

Send your queued messages, and your draft with them, right away while Claude is still working.

$claude -p "query" --output-format json

Get JSON output from print mode for scripts and automation.

$claude -p --fallback-model sonnet "query"

Enable automatic fallback to a specified model when the default model is overloaded (print mode only).

$claude -p --max-turns 3 "query"
$claude -p --max-budget-usd 5.00 "query"

Limit agentic turns or set a spending cap for print mode runs.

Sitzungen und Kontext

$claude -c
$claude --continue

Führen Sie das jüngste Gespräch im aktuellen Verzeichnis fort.

$claude --resume auth-refactor
$claude -r

Setzen Sie eine bestimmte Sitzung nach ID oder Name fort, oder zeigen Sie eine interaktive Picker an, um eine Sitzung auszuwählen.

/clear
/reset
/new

Löschen Sie die aktuelle Sitzung und starten Sie ein neues Gespräch.

/compact "keep only the important parts"

Komprimieren Sie das aktuelle Gespräch, um nur den wichtigen Kontext zu behalten.

/resume
/continue

Setzen Sie ein anderes Gespräch innerhalb der aktuellen Sitzung fort.

/rename feature-auth

Benennen Sie das aktuelle Gespräch um.

/fork bug-investigation

Copy the current conversation into a new background session and keep working here. Pass a prompt to start the copy on it immediately. To switch into a branch yourself, use /branch; to hand a task to a subagent that reports back, use /subtask.

/context

Zeigen Sie, wie viel Kontext derzeit verwendet wird.

/plan fix the auth bug

Enter plan mode, optionally passing a task description to start planning immediately.

/tasks

Öffnen Sie die Aufgabenliste für die aktuelle Sitzung.

/copy

Copy the last assistant response to the clipboard. Pass a number N to copy the Nth-latest response, or pick individual code blocks from the interactive picker.

/export notes.txt

Exportieren Sie die aktuelle Antwort in eine Datei.

/desktop
/app

Übertragen Sie eine Terminal-Sitzung an die Desktop-App oder das Web für visuelle Diff-Überprüfung und kontinuierliche Arbeit.

/add-dir <path>

Fügen Sie ein neues Arbeitsverzeichnis zur aktuellen Sitzung hinzu.

/branch feature-auth
/fork

Erstellen Sie einen Zweig des aktuellen Gesprächs an diesem Punkt.

/remote-control
/rc

Ermöglichen Sie die Remote-Steuerung der aktuellen Sitzung von claude.ai.

Esc + Esc

Spulen Sie von der Tastatur zurück oder fassen Sie zusammen.

/background

Detach the current session to run as a background agent and free your terminal. Pass a prompt to send one more instruction before detaching. Alias: /bg.

/subtask refactor the auth module

Spawn a forked subagent that inherits the full conversation and works on the task while you keep working. Its result returns to this conversation when it finishes.

/cd ../other-project

Move the session to a new working directory while keeping the conversation.

/recap

Generate a one-line summary of the current session on demand.

/teleport

Pull a cloud session from claude.ai into this terminal. Opens a picker, then fetches the branch and conversation. Alias: /tp.

/autocompact 500k
/autocompact auto

Set the auto-compact window: how full the context window gets before Claude Code compacts automatically. Pass a size such as 500k, or auto for the model-tuned default.

$claude -w feature-auth
$claude --worktree

Start Claude in an isolated git worktree at .claude/worktrees/<name> so parallel sessions do not conflict. If no name is given, one is auto-generated.

$claude -n "my-feature-work"

Set a display name for the session, shown in /resume and the terminal title. Resume it later with claude --resume <name>.

$claude --resume abc123 --fork-session

When resuming, create a new session ID instead of reusing the original, keeping the original conversation untouched.

$claude --from-pr 123

Resume sessions linked to a specific GitHub PR (auto-linked when created via gh pr create).

$claude --teleport

Resume a web session from claude.ai in your local terminal.

$claude --remote "Fix the login bug"

Create a new web session on claude.ai with the provided task description.

$claude --remote-control "My Project"

Start an interactive session with Remote Control enabled so you can also control it from claude.ai or the Claude app.

Navigation und Steuerung

Ctrl + C

Brechen Sie die aktuelle Eingabe oder Generierung ab.

Ctrl + F

Beenden Sie alle Hintergrund-Agenten.

Ctrl + D

Beenden Sie die Claude Code-Sitzung.

/exit
/quit

Beenden Sie Claude Code von der Befehlszeile.

Ctrl + L

Löschen Sie den Terminalbildschirm, während Sie den Gesprächsverlauf beibehalten.

Ctrl + O

Schalten Sie die ausführliche Ausgabe für Werkzeugausführungsdetails um.

Ctrl + B

Hintergrund-Aufgaben ausführen. Tmux-Benutzer drücken Strg+B zweimal.

Ctrl + T

Zeigen Sie die Aufgabenliste an oder verbergen Sie sie.

Durchlaufen Sie Registerkarten in Dialogen und Menüs.

Navigieren Sie im Befehlsverlauf.

Ctrl + Z

Suspend Claude Code to your shell (Unix only). Run fg to resume.

Überprüfung und Diagnose

/diff

Zeigen Sie den aktuellen Diff innerhalb Claude an.

/rewind
/checkpoint
/undo

Spulen Sie das Gespräch zu einem früheren Kontrollpunkt zurück.

/doctor
/checkup

Run a setup checkup that diagnoses installation, settings, extension, and CLAUDE.md problems and proposes fixes Claude applies after you confirm.

/status

Zeigen Sie den aktuellen Claude-Sitzungs- und Kontostatus an.

/stats

Zeigen Sie detaillierte Gesprächs- und Nutzungsstatistiken, einschließlich Sitzungsverlauf und Streifen, an.

/insights

Generieren Sie einen Bericht, der Claude Code-Sitzungen, Interaktionsmuster und Reibungspunkte analysiert.

/usage

Zeigen Sie aktuelle Nutzungsinformationen an.

/cost

Zeigen Sie aktuelle Ausgaben- und Kosteninformationen an.

/security-review

Überprüfen Sie den aktuellen Zweig auf Sicherheitsprobleme.

Cmd + ClickCtrl + ClickCtrl + Click

Öffnen Sie die verknüpfte Pull-Request aus der Fußzeile.

/code-review
/code-review high 1234
/code-review ultra --fix
/review

Review the current diff, or a PR number, branch, or path, for correctness bugs. Pass --fix to apply findings, --comment to post them on the PR, or ultra for a deep multi-agent cloud review. Alias: /review.

/simplify

Review the changed code for cleanup opportunities and apply the fixes. Four agents run in parallel covering reuse, simplification, efficiency, and abstraction level. Does not look for correctness bugs; use /code-review for those.

/verify

Confirm a code change does what it should by building the app, running it, and observing the result, rather than relying on tests or type checks.

/debug login fails on safari

Enable debug logging for the current session and troubleshoot issues by reading the session debug log. Optionally describe the issue to focus the analysis.

Rückwärtssuche

Ctrl + R

Beginnen Sie die Rückwärtssuche durch Befehlsverlauf oder durchsuchen Sie ältere Matches.

Tab
Esc

Akzeptieren Sie die aktuelle Rückwärts-Such-Übereinstimmung zum Bearbeiten.

Enter

Akzeptieren Sie die aktuelle Rückwärts-Such-Übereinstimmung und führen Sie sie aus.

Backspace

Beenden Sie die Rückwärtssuche, wenn die Abfrage leer ist.

Ctrl + C

Brechen Sie die Rückwärtssuche ab und stellen Sie Ihre ursprüngliche Eingabe wieder her.

Konfiguration und Integrationen

/config
/settings
/config theme=dark

Open the Settings interface, or pass key=value pairs to set a setting directly, such as /config thinking=false or /config model=sonnet.

/theme

Öffnen Sie die Designauswahl.

/color orange

Legen Sie das Farbschema für die Benutzeroberfläche fest.

/keybindings

Öffnen Sie die Tastaturkürzel-Konfiguration.

/terminal-setup

Installieren Sie terminalspezifische Bindungen wie Shift+Enter-Unterstützung.

/model

Wechseln Sie Modelle innerhalb der aktuellen Sitzung.

/effort high

Ändern Sie die aktuelle Überlegungsaufwandsstufe.

/fast on

Aktivieren oder deaktivieren Sie den Schnellmodus in der aktuellen Sitzung.

/permissions
/allowed-tools

Öffnen Sie die Berechtigungseinstellungen.

/sandbox

Öffnen Sie die Sandbox-Einstellungen.

/mcp

Verwalten Sie MCP-Server-Integrationen.

/plugin

Verwalten Sie Plugins innerhalb der Sitzung.

/reload-plugins

Laden Sie installierte Plugins neu.

/ide

Verbinden Sie Claude Code mit Ihrer IDE.

/agents

Öffnen Sie Agent- und Teamkollegenoptionen.

/hooks

Zeigen Sie Hook-Konfigurationen für Tool-Ereignisse und Automatisierungen an.

/config

Toggle between Vim and Normal editing modes from the Settings interface. Removed as the /vim command in v2.1.92.

/statusline

Konfigurieren Sie die Statuszeileanzeige von Claude Code in Ihrer Shell-Eingabeaufforderung.

Shift + Tab
Alt + M

Wechseln Sie zwischen Berechtigungsmodi.

Option + PAlt + PAlt + P

Wechseln Sie Modelle, ohne die aktuelle Aufforderung zu löschen.

Option + TAlt + TAlt + T

Aktivieren oder deaktivieren Sie den erweiterten Thinking-Modus.

Ctrl + T

Aktivieren oder deaktivieren Sie die Syntaxhervorhebung in der Designauswahl.

/usage-credits

Configure usage credits, or request them from your admin, when you hit a rate limit. Previously /extra-usage.

/output-style concise

List output styles or switch to one.

/update-config allow npm test without prompting

Describe a settings change, such as allowing a command or adding a hook, and Claude edits the matching settings.json file. For theme and model, use /config instead.

/fewer-permission-prompts

Scan your transcripts for common read-only Bash and MCP tool calls, then add a prioritized allowlist to project settings to reduce permission prompts.

/skill-doctor

Show what each of your skills costs in context and how often it gets used, so you can find skills to turn off.

/list-agents
/peers

List the subagents, agent team teammates, and other Claude Code sessions Claude can message, with the name to use for each. Alias: /peers.

Option + OAlt + OAlt + O

Toggle fast mode on or off.

$claude --agents '{"reviewer":{"description":"Reviews code","prompt":"You are a code reviewer"}}'

Define custom subagents dynamically at launch via JSON, using the same fields as subagent frontmatter plus a prompt field.

$claude --tools "Bash,Edit,Read"

Restrict which built-in tools Claude can use. Use "" to disable all, "default" for all, or list tool names.

$claude --effort high

Set the effort level for the session at launch: low, medium, high, or max (Opus only, session-scoped).

$claude --add-dir ../apps ../lib

Add additional working directories for Claude to access at launch.

$claude --permission-mode plan

Begin the session in a specified permission mode, such as plan.

$claude --mcp-config ./mcp.json
$claude --strict-mcp-config --mcp-config ./mcp.json

Load MCP servers from JSON files or strings, optionally ignoring all other MCP configuration.

Hilfe und Entdeckung

/help

Öffnen Sie die integrierte Slash-Command-Hilfe.

/skills

Öffnen Sie die verfügbare Fertigkeitsliste.

/release-notes

Zeigen Sie das vollständige Änderungsprotokoll mit den neuesten Versionsupdates an.

/feedback
/bug

Reichen Sie Feedback ein oder melden Sie Fehler zu Claude Code.

?

Öffnen Sie die Verknüpfungslegende für Ihre aktuelle Umgebung.