Installing Claude Code CLI¶
This guide explains how to install the Claude Code CLI, which is required for installing and managing plugins like Fellow.
Why Install the CLI?¶
CLI Required for Plugins
Even if you only plan to use VS Code, you need the Claude Code CLI to install plugins. The VS Code extension does not include plugin installation capabilities.
What you need the CLI for: - ✅ Installing plugins (like Fellow) - ✅ Managing plugin configuration - ✅ Configuring MCP servers - ✅ Using Claude Code in terminal
What you don't need the CLI for: - Using the VS Code extension for basic conversations - Code generation and editing in VS Code - @-mentioning files in VS Code
Installation by Operating System¶
macOS¶
Method 1: Homebrew (Recommended)
Method 2: Download Installer
- Visit https://code.claude.com
- Download the macOS installer
- Run the
.pkginstaller - Verify installation:
Linux¶
Method 1: Install Script (Recommended)
# Download and run installer
curl -fsSL https://code.claude.com/install.sh | sh
# Verify installation
claude --version
Method 2: Manual Download
- Visit https://code.claude.com
- Download the Linux installer for your distribution
- Follow installation instructions
- Verify installation:
Windows¶
Method 1: winget
# Install using Windows Package Manager
winget install Anthropic.ClaudeCode
# Verify installation
claude --version
Method 2: Download Installer
- Visit https://code.claude.com
- Download the Windows installer
- Run the
.exeinstaller - Verify installation in PowerShell:
Verification¶
After installation, verify the CLI is working:
# Check version
claude --version
# Check help
claude --help
# Try listing plugins (should be empty initially)
claude plugin list
Expected output:
Post-Installation Setup¶
Authentication¶
The first time you run Claude Code, you'll need to authenticate:
# Start Claude Code (will prompt for authentication)
claude
# Or authenticate explicitly
claude auth login
Follow the prompts to authenticate with your Anthropic account.
Configuration¶
Claude Code stores configuration in:
| OS | Location |
|---|---|
| macOS/Linux | ~/.claude/settings.json |
| Windows | %APPDATA%\ClaudeCode\settings.json |
Plugin Directory¶
Installed plugins are stored in:
| OS | Location |
|---|---|
| macOS/Linux | ~/.claude/cache/plugins/ |
| Windows | %APPDATA%\ClaudeCode\cache\plugins\ |
Installing Fellow After CLI Setup¶
Once the CLI is installed, you can install Fellow:
# Add as local marketplace
claude plugin marketplace add https://github.com/jingnanzhou/fellow.git
# Install Fellow from local marketplace
claude plugin install fellow@local_marketplace
# Verify Fellow is installed
claude plugin list
See the Installation Guide for detailed Fellow installation instructions.
Using with VS Code¶
After installing the CLI and Fellow:
- Install VS Code extension:
- Open VS Code
- Go to Extensions (
Cmd+Shift+XorCtrl+Shift+X) - Search "Claude Code"
-
Click Install
-
Fellow automatically works in VS Code:
- No additional setup needed!
- All Fellow commands available in VS Code
- Hooks work identically
See the VS Code Integration Guide for details.
Troubleshooting¶
Issue: "claude: command not found"¶
Problem: The CLI is not in your PATH
Solution (macOS/Linux):
# Check if claude is installed
which claude
# If not found, add to PATH (example for bash)
echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc
source ~/.bashrc
# Or for zsh
echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.zshrc
source ~/.zshrc
Solution (Windows): 1. Search for "Environment Variables" in Start menu 2. Edit "Path" variable 3. Add Claude Code installation directory 4. Restart terminal
Issue: Permission denied¶
Problem: Insufficient permissions during installation
Solution (macOS/Linux):
# Use sudo for system-wide installation
sudo brew install claude
# Or use user-local installation
brew install claude --user
Issue: Version outdated¶
Problem: Old version of Claude Code CLI
Solution:
# macOS (Homebrew)
brew upgrade claude
# Linux
curl -fsSL https://code.claude.com/install.sh | sh
# Windows
winget upgrade Anthropic.ClaudeCode
Updating Claude Code CLI¶
To update to the latest version:
macOS¶
Linux¶
Windows¶
Uninstalling¶
To remove Claude Code CLI:
macOS¶
Linux¶
Windows¶
Next Steps¶
After installing the CLI:
- Install Fellow - Install the Fellow plugin
- Quick Start Guide - Build your first knowledge base
- VS Code Integration - Use Fellow in VS Code (optional)
Resources¶
- Claude Code Website: https://code.claude.com
- CLI Documentation: https://code.claude.com/docs/en/cli.md
- Installation Help: https://code.claude.com/docs/en/installation.md
CLI installed? Ready to install Fellow!