Ads

Lesson 2 – Claude Code Course for Beginners

Learn how to install and set up Claude Code on your machine. A quick beginner guide covering CLI versions, project initialization, and next steps for vibe coding.

⏱ 7min 👁 1,484 views 📅 February 6, 2026

More from this course

Claude Code Course for Beginners

Lesson 2 of 17

Summary

What This Lesson Covers

This introductory lesson from the Code Playbook channel walks beginners through the foundational steps of adopting Anthropic's agentic coding tool: Claude Code. The primary objective is to take a user from having no installation to a fully functional setup, ready for AI-powered software development. Rather than diving into complex prompting techniques or application architecture, the instructor focuses exclusively on eliminating the initial friction that often discourages new developers. The seven-minute runtime is tightly packed with actionable terminal commands, account setup instructions, and version recommendations.

By the end of this session, a complete novice should have a working command-line interface connection to Claude Code, an initialized project directory, and a clear understanding of the software requirements. The emphasis is on speed and clarity, ensuring that the setup process doesn't become a bottleneck before the actual coding begins. The approach is practical, assuming the viewer is following along in real time. The lesson serves as the critical gateway to the rest of the course, where deeper technical capabilities are explored.

Choosing Your Claude Code Version

One of the most important decisions presented early in the video is the choice between different Claude Code versions. The instructor, Pete, immediately addresses the potential confusion users might face when deciding between the specialized Claude Code CLI and standard API integrations. He clarifies the software tiers, specifically highlighting the availability of a Pro version, which comes with a trial period for beginners. The guidance provided here is opinionated and born from direct experience; Pete explains why he personally prefers the command-line interface (CLI) version over alternatives.

The rationale for choosing the CLI centers on control, efficiency, and the "vibe coding" workflow that the course promotes. The CLI version allows developers to remain deeply integrated with their file system and version control without switching contexts to a web browser or a resource-heavy IDE plugin. The video discusses the performance benefits and the seamless experience that comes from running the agent directly in the terminal where build commands, server logs, and testing suites already live. This section is crucial for setting expectations and ensuring users start with the tool configuration that matches the course's hands-on methodology.

System Requirements and Account Setup

Before executing any commands, the lesson establishes the prerequisites necessary to run Claude Code smoothly. This includes having a modern operating system environment, Node.js installed on the machine, and a valid Anthropic account. The video demonstrates the sign-up flow, directing users to the specific link that unlocks a free trial for Claude Code Pro. This financial accessibility is important for beginners who might be hesitant to commit to a paid service without testing the tool's capabilities first.

The instructor breaks down the implications of using the Pro tier versus waiting for API credits. The setup process involves generating API keys and understanding the basic billing structure, a topic that often trips up new developers who fear unexpected charges. By walking through the account configuration step by step, the lesson removes the anxiety associated with connecting a local terminal to a cloud-based large language model. The focus remains on getting the user authenticated and ready to send the first prompt to the Claude model without encountering authorization errors.

Preparing Your Terminal Environment

The technical core of the lesson begins with the actual installation command. Pete demonstrates how to execute the global npm installation, which fetches the Claude Code package from the Node Package Manager registry. The video highlights common pitfalls during this phase, such as permission errors on Unix-based systems or path conflicts on Windows, and provides quick fixes for them. The terminal becomes the primary interface, and the lesson emphasizes the importance of verifying the installation by checking the version number immediately after the process completes.

Beyond the one-line install command, the lesson covers essential terminal hygiene. This includes guidance on restarting the shell to refresh the command path and ensuring that the claude command is globally recognized. The segment transforms the command line from an intimidating black box into a manageable tool. Viewers are encouraged to treat the terminal not just as a place to run the installer, but as the permanent home for their new AI coworker, reinforcing the CLI-centric philosophy that permeates the entire curriculum.

Inside the Project Workspace

With the tool installed, the lesson pivots to project-specific configuration. The user is guided through the process of creating a dedicated project folder or navigating to an existing codebase. The initialization step is treated with significant care, as it represents the moment where Claude Code gains context about the code it will be modifying. The video shows how to run the setup inside the correct directory, which generates configuration files that allow the agent to understand the project's structure, dependencies, and coding conventions.

The instructor explains the purpose of these configuration files, which act as boundaries and instructions for the AI. This includes setting up system prompts, defining scope limitations, and potentially ignoring certain files via configuration entries. By dedicating time solely to this "onboarding" phase, the lesson ensures that users avoid the common mistake of having a generic, unguided AI that produces messy or irrelevant code. Connecting the CLI to the specific project folder is framed as the final piece of the puzzle, bridging the gap between a global installation and a contextual development partner.

Completion and Next Steps

After the installation and initialization confirmations, the lesson briefly distinguishes between a successful setup and the advanced usage that follows. Pete summarizes what the user's screen should look like if everything went correctly. The wrap-up is efficient, directing users to the next logical step in the playlist without lingering too long on the introduction. The video makes it clear that the setup phase is complete, and the user is now ready to move on to prompt engineering within Claude Code.

The transition to the next lesson is handled with a concrete call to action. Instead of leaving the user to experiment randomly, the playlist structure provides a curated path forward. This endpoint sets the stage for the creative part of the process, suggesting that the heavy lifting of configuration is behind the user, and the immediate future involves directing the AI to perform actual code generation and editing tasks. The tone remains encouraging, reinforcing that the initial technical hurdle is the hardest part for most beginners.

What you will learn

  • Set up an Anthropic account for Claude Code access
  • Install the Claude Code CLI globally via npm
  • Initialize Claude Code within a project directory
  • Understand the differences between Claude Code versions
  • Troubleshoot common terminal permission errors during setup
  • Prepare a local environment for AI-assisted coding

Concepts covered

Technologies used

Chapters 7 markers

  1. Introduction to the setup process
  2. Signing up for Claude Code
  3. Choosing between versions and pricing
  4. Advantages of the CLI version
  5. Running the install command
  6. Initializing Claude Code in a project
  7. Summary and preview of next lesson

Next suggested video

Reviews

Student rating 0.0
0 reviews
Rate this lesson

Help other students decide if this lesson is useful.

No reviews yet. Be the first to rate this lesson.