Skip to content

Commands

Complete reference of slash commands and CLI flags available in Claude Code.

Slash commands

Slash commands are entered within the Claude Code interactive session. They start with / and execute instantly.

CLI flags

Flags are passed when running claude from the terminal, before or after the prompt.

Terminal
claude [flags] [prompt]
claude --model opus "refactor this file"
claude -p "what does this function do?" < mi_archivo.py

Available models

You can change the model with --model, /model, or in the configuration. The default value depends on your account type and provider, so the most reliable approach is to use aliases:

Keyboard shortcuts in interactive session

Example commands

Headless session in CI/CD

Terminal
# Generate a PR summary in JSON
claude -p --output-format json "summarize the changes in the last commit"

# Review security of a file
claude -p "review possible vulnerabilities in src/api/auth.ts" < /dev/null

Change model for a session

Terminal
claude --model opus
# You now use the Opus alias for the entire session

View installation diagnostics

Terminal
# Inside Claude Code:
/doctor

# From the terminal:
claude doctor
Complete Aulafy mapSee how this lesson fits without leaving your path.

Complete Aulafy map

How all courses connect

This is not a checklist. Start with the foundation, choose an outcome, and go deeper only when your project needs more control.

  1. 1Understand
  2. 2Apply or build
  3. 3Operate with confidence
01

Choose an application

Turn the foundation into a visible outcome: a website, a business improvement, media, or an interactive experience.

Continue into the technical branch when you need to maintain code, data, or infrastructure.

02

Build with code

Prepare your environment, work with coding agents, and run models while keeping control of your projects.

This branch prepares you to design and operate reliable AI systems.

03

Take systems to production

Combine retrieval, agents, evaluation, security, deployment, and model adaptation when the problem requires it.

You do not need every course: choose the component your system needs and return as it grows.

View full catalogue