Installing Claude Code and signing in

9 min read bash
Course contents (20 lessons)
  1. Meet Claude Code
  2. What Claude Code is and how it differs from a chat window
  3. Installing Claude Code and signing in
  4. Your first session: explore, ask, change
  5. Asking well and staying in control
  6. Asking for changes: context, goal, constraints and acceptance criteria
  7. Reading and approving edits
  8. Permission modes: how much freedom to give
  9. Project memory and slash commands
  10. CLAUDE.md: teaching the tool about your project
  11. Slash commands and custom commands
  12. Everyday coding workflows
  13. The plan-first workflow
  14. Understanding unfamiliar code
  15. Debugging with Claude Code
  16. Refactoring safely
  17. Writing tests with Claude Code
  18. Git, small changes, cost and security
  19. Git workflows: branches, commits and pull request descriptions
  20. Keeping changes small and reviewable
  21. Context and cost awareness
  22. Security habits: secrets, commands and untrusted input
  23. Extending the tool, teamwork and a final project
  24. Hooks and MCP servers explained
  25. Team practices for AI-assisted coding
  26. Final project: building a small app step by step

Follow the official instructions

Install steps change. The tool has been distributed in more than one way over time, and requirements such as the supported operating systems and runtime versions get updated. So the first rule is: use the installation page in the official Claude Code documentation, not a blog post, a video or a copy of someone's script. That includes this course.

What I can tell you with confidence is the general shape:

  1. Check the requirements on the official page: supported systems, and anything you must have installed first.
  2. Run the installation command that the page gives you.
  3. Open a terminal in one of your projects and start the tool by typing its name.
  4. Sign in when prompted.

Starting it

The command that starts the tool is claude. You run it inside the folder of the project you want to work on. The folder matters because the tool treats it as the working area.

cd ~/projects/my-app
claude

On Windows you would use PowerShell or another terminal and your own path, for example cd C:\projects\my-app. Windows setups have had special steps at times, so read the Windows section of the official docs.

Signing in

The first time you run it, it asks you to sign in. The tool supports a few ways to do this, such as signing in with an Anthropic account, or using an API key for pay-as-you-go use, and organisations may have their own setup through a cloud provider. Pick the way that matches how you or your employer pay for it. The screen explains the choices at the time. Follow it, and do not copy keys into files that are committed to a repository.

Check that it works

Once you are in, ask something harmless and read-only:

What is the name of this project and what language is it written in? Answer from the files you can see.

If it answers correctly, it can read your project. If it complains about a missing folder or permissions, check that you started it from the right directory.

Useful first discoveries

Type /help to see the commands available in your version. The list is the best guide to the current features, since it always matches the installed version. You can usually exit with /exit or by pressing Ctrl+C twice, and the help text tells you which works for your version.

claude --help

The command-line help lists the options of the program. Read it once. You will find options there that this course does not cover, and some may be new since I wrote it.

Where to start it

Start it in the root folder of one repository, not in your home folder and not in a folder that holds many unrelated projects. A tool that can read and edit files should have a small, clear area to work in. If you have a monorepo, start at the root, or at the subfolder you are working on if the instructions of your team say so.

Updating

The tool is updated often. Check the official docs for how updates are applied in your install method. Staying reasonably current is useful, since new versions fix bugs and change behaviour. After an update, read the release notes for anything that changes permissions or commands.

A cautious first project

For the first sessions, use a project that is safe to experiment on. A personal project in git with no uncommitted work is ideal. Before you start, make sure your working tree is clean:

git status
git log --oneline -5

With a clean tree, every change the tool makes shows up in git diff, and you can throw away anything you do not like with a single command. That safety net makes you braver, and braver learners learn faster.

The common mistake

The common mistake is trying it first on your most important, messy, uncommitted project because it is the one with the most problems. If something goes wrong, you may lose hours of unsaved work. Commit or stash before the first session, and begin on something small.

Try it yourself

Install the tool from the official page, start it in a small project that is committed to git, and sign in. Ask the read-only question above. Run /help and copy the list of commands into a note. Close the session, reopen it, and notice that a new session starts fresh.

This course is free to read. Create a free account to enrol, save your progress and pick up where you left off.

Sign up free I already have an account