Claude Code CLI
Starter Anthropic’s agentic coding CLI (2026).Install
# official installer (macOS / Linux / WSL)
curl -fsSL https://claude.ai/install.sh | bash
# or npm (Node 22+ recommended for full compatibility)
npm install -g @anthropic-ai/claude-codeWindows PowerShell:
irm https://claude.ai/install.ps1 | iexNative binary often lands in ~/.local/bin (or %USERPROFILE%\.local\bin on Windows) — ensure that directory is on your PATH.
Update / version:
claude update
claude --versionFirst run
cd ~/code/my-project
claudeSign in via browser OAuth when prompted. Then:
> what does this repo do?
> fix the failing testEssential slash commands
| Command | Purpose |
|---|---|
/init | Scan project, create/update CLAUDE.md |
/plan | Plan mode — think before big edits |
/compact | Summarize conversation to free context |
/memory | Edit memory / CLAUDE.md files |
/mcp | Manage MCP servers |
/config | Settings |
/cost | Token / cost for session |
/bug | Report bug to Anthropic |
File references
> Analyze @src/auth.ts and suggest improvements
> Compare @package.json with @package-lock.json
> Fix bug in @src/utils.ts:42-58One-shot (non-interactive)
claude -p "Generate a README section for the auth module"Permission-sensitive flags exist for CI — only use when you understand the risk (--dangerously-skip-permissions, allowed tools lists). Prefer interactive approval locally.
Advanced
Power-user territory: permission modes, allowlists, print/CI automation, sandbox, model/cost flags, and when not to use bypass.
Project memory: CLAUDE.md
# inside claude:
/initKeep CLAUDE.md short and true: stack, commands to run tests, conventions, “never do X”.
Everyday loop
git switch -c feat/thing
claude
# describe task, review diffs, run tests
git add -A && git commit -m "feat: thing"
git push -u origin HEADPipe input
cat error.log | claude -p "explain the root cause"Skills
Install / author skills in apsolut-skills and wire them into your Claude Code setup.
Plugins
Shareable packs of skills, agents, hooks, MCP, and LSP via marketplaces (/plugin, scopes user/project/local).
Agents · workflows · ultra (2026)
| Guide | Topics |
|---|---|
| Claude Code 2026 map | Index of agents / workflows / ultra |
| Agents & spin | Subagents, teams, parallel spawn |
| Workflows | Dynamic workflows, ultracode orchestration |
| Ultra family | ultrathink, ultracode, ultraplan, ultrareview |
→ Advanced CLI flags (permissions, -p, sandbox, CI)
Official docs
- https://code.claude.com/docs
- Agents: https://code.claude.com/docs/en/agents · Subagents: https://code.claude.com/docs/en/sub-agents
- Workflows: https://code.claude.com/docs/en/workflows
- Model / effort / ultrathink: https://code.claude.com/docs/en/model-config
- Plugins: https://code.claude.com/docs/en/discover-plugins