← All cheatsheets

AI CLI

claude CLI — running Claude Code from the terminal

Run Claude Code from the terminal: start a session, work inside it, and the slash commands that save the most time.

Start

claude — start in current dir

claude --resume — resume the most recent session

claude --continue — continue the last session in this dir

Inside a session

/help — list commands

/clear — clear context

/cost — show session cost

/exit — leave session

Ctrl-c Ctrl-c — interrupt the model

Useful slash commands

/init — create a CLAUDE.md for this project

/fast — toggle Opus fast mode

/loop 5m /foo — run /foo every 5 minutes

/loop /bar — let the model self-pace