Cyrus 365Academy
cyrus365.com

© 2019-2026 Cyrus 365. All rights reserved.

AcademySolutionsContact
Cyrus 365Academy
cyrus365.com
Back to Academy
TutorialIntermediate

Getting Started with Claude Code: Anthropic's Agentic CLI

Learn how to install, configure, and use Claude Code—an autonomous terminal assistant that can edit files, run tests, and manage git workflows directly in your project.

2 Jul 2026Cyrus 3651 min read
Claude CodeAnthropicCLIAI DevelopmentAgentic Coding

What is Claude Code?

Claude Code is an agentic command-line interface (CLI) tool developed by Anthropic. Unlike traditional AI autocomplete extensions that suggest the next line of code as you type, Claude Code operates at the project level. It reads your entire codebase, plans an approach, edits files, runs tests, and can even create git commits—all autonomously from your terminal.

Installation and Prerequisites

Before installing Claude Code, you need Node.js (version 18 or higher), npm, and Git installed on your machine. Once your environment is ready, open your terminal and run the global installation command:

bash
npm install -g @anthropic-ai/claude-code

Your First Session

  1. 1Navigate to your existing project folder in the terminal using cd your-project-name.
  2. 2Type claude and press Enter to start the interactive session.
  3. 3Follow the on-screen prompts to authenticate your Anthropic API Console or Claude Pro account.
  4. 4Ask Claude Code to perform a task using natural language, such as: "Find the memory leak in the auth module, fix it, and run the test suite."

Automating Workflows with CLI Flags

You can also use Claude Code in non-interactive mode (-p flag) to pipe commands, making it perfect for CI/CD pipelines or automated shell scripts. Here is an example of piping changed files into Claude for a quick security review:

bash
git diff main --name-only | claude -p "review these changed files for security issues"

Best Practices

  1. 1Use CLAUDE.md: Create a CLAUDE.md file in the root of your project. Claude reads this at the start of every session to understand your architecture, coding standards, and preferred libraries.
  2. 2Control Autonomy: Use the --allowedTools flag in automated environments to restrict Claude Code to read-only operations, preventing accidental deletions.
  3. 3Review AI Commits: While Claude Code is capable of writing and committing code on its own, you remain in the driver's seat. Always review the diffs and test locally before pushing to production.

Related articles

Tutorial•26 Nov 2025•Beginner

Never Forget a Password Again: Intro to Bitwarden 🛡️

Secure your digital life with the best free, open-source password manager. Learn to store, generate, and sync credentials securely.

By Cyrus 365
Tutorial•26 Nov 2025•Beginner

Master Remote Access with Bitvise SSH Client 🛡️

Unlock professional-grade server management on Windows. Learn to connect, transfer files, and tunnel securely with Bitvise.

By Cyrus 365
Tutorial•26 Nov 2025•Beginner

Unleash the Duck: Managing Cloud Files with Cyberduck 🦆

Ditch the web interface! Learn how to manage FTP, S3, and Google Drive files seamlessly with this free, open-source tool.

By Cyrus 365

© 2019-2026 Cyrus 365. All rights reserved.

AcademySolutionsContact