Skip to content

Claude Code CLI ​

Starter Anthropic’s agentic coding CLI (2026).

Install ​

bash
# 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-code

Windows PowerShell:

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

Native binary often lands in ~/.local/bin (or %USERPROFILE%\.local\bin on Windows) — ensure that directory is on your PATH.

Update / version:

bash
claude update
claude --version

First run ​

bash
cd ~/code/my-project
claude

Sign in via browser OAuth when prompted. Then:

text
> what does this repo do?
> fix the failing test

Essential slash commands ​

CommandPurpose
/initScan project, create/update CLAUDE.md
/planPlan mode — think before big edits
/compactSummarize conversation to free context
/memoryEdit memory / CLAUDE.md files
/mcpManage MCP servers
/configSettings
/costToken / cost for session
/bugReport bug to Anthropic

File references ​

text
> Analyze @src/auth.ts and suggest improvements
> Compare @package.json with @package-lock.json
> Fix bug in @src/utils.ts:42-58

One-shot (non-interactive) ​

bash
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.

→ Claude Code advanced

Project memory: CLAUDE.md ​

bash
# inside claude:
/init

Keep CLAUDE.md short and true: stack, commands to run tests, conventions, “never do X”.

Everyday loop ​

bash
git switch -c feat/thing
claude
# describe task, review diffs, run tests
git add -A && git commit -m "feat: thing"
git push -u origin HEAD

Pipe input ​

bash
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).

→ Claude Code plugins

Agents · workflows · ultra (2026) ​

GuideTopics
Claude Code 2026 mapIndex of agents / workflows / ultra
Agents & spinSubagents, teams, parallel spawn
WorkflowsDynamic workflows, ultracode orchestration
Ultra familyultrathink, ultracode, ultraplan, ultrareview

→ Advanced CLI flags (permissions, -p, sandbox, CI)

Official docs ​