Claude Code Command Guide | Generated by AI

Home 2026.02

I’ll search for the most current information about Claude Code’s command options from Anthropic’s documentation.Let me fetch more detailed information about the command-line options.Based on the documentation, here’s a comprehensive introduction to Claude Code command options:

Claude Code Command Options

Basic Commands

Starting Claude Code:

Session Management:

Key CLI Flags

Working Directories:

Permissions:

System Prompts (4 options):

Output Formats:

Custom Agents:

Interactive Commands (Slash Commands)

Available when Claude Code is running:

Session & Configuration:

Workflow:

Permissions:

Plugins & Extensions:

Custom Commands: Any skill you create becomes a /command - type / to see all available

Plugin Commands (CLI)

# Install plugin
claude plugin install <name>@<marketplace> [--scope user|project|local]

# Remove plugin
claude plugin uninstall <name>

# Enable/disable
claude plugin enable <name>
claude plugin disable <name>

# Update
claude plugin update <name>

Permission Modes

Toggle with Shift+Tab during session:

  1. Normal Mode - Claude asks permission for each action
  2. Auto-Accept Mode (⏵⏵) - Automatically accept file edits
  3. Plan Mode () - Claude plans with read-only operations

Environment Variables

Interactive Features

Input:

Navigation:

Common Workflow Examples

# Explore codebase in plan mode
claude --permission-mode plan "Analyze authentication system"

# Continue work from previous session
claude --continue "Finish implementing OAuth"

# Script automation
claude -p --output-format json "Run tests and report failures" | jq

# Add context from multiple directories
claude --add-dir ../shared ../config "Refactor API handlers"

# Custom instructions for session
claude --append-system-prompt "Always write type-annotated Python"

For more details on any specific feature, you can ask Claude Code directly - it has access to its own documentation and can answer questions about its capabilities.


Back Donate