匠人学院 JR Academy
  • Position

    Where am I now, and where should I go?

    How your job is changing, where your experience can take you and what you still need for a target role, worked out from what you have actually done. Free, and the full result needs no sign-up.

    Analyse my career and skills

    Look up a career

    Will AI replace my job?AI impact and transition paths for common careersNew jobs in the AI eraWhat they do, what they need, how to move in

    Focused tools

    AI Engineer interview readiness30 timed questions on what you still need before interviewsCareer personality testDirections that suit how you workReturning to China checkJob prospects in China by school, major and graduation date

    AI coach

    Talk to your AI coachStill unsure after your result? Talk through what is holding you back
  • Core courses

    AI Engineer BootcampEngineering bootcamp from LLM apps to agentsAI Engineer Full-Stack Project Class16 weeks · RAG and full-stack AI projectsVibe Coding Masterclass8 weeks · direct agents to build and ship a productAI Essentials10 hours · use AI for email, reports, data and copyAI Office Automation Course8 weeks · help a whole company adopt AIOne-Person Company (OPC) Bootcamp15 weeks in person · build a one-person company with AIAll courses →

    AI engineering

    Machine Learning & Data Engineering Full-Stack ClassAI Agent & MCP Project BootcampAI Engineer Core TechniquesAI Engineer FoundationsAI Engineer Advanced: RAG to Agents and TuningClaude Code TasterAll AI engineering courses →

    AI at work

    AI Coding for everyoneClaude Code One-Day Masterclass (Non-Technical)Enterprise AI Automation BootcampAI Marketing BootcampAI Risk, Governance and Audit CourseOpenClaw 4-Week Personal AI Assistant BootcampAll AI-at-work courses →

    Career development

    AI Product Manager (BA) Bootcamp + InternshipAustralia IT Interview BootcampAustralia IT Technical Interview BootcampAustralia IT Resume BootcampAustralia Big Tech Job Search BootcampAustralia IT Career Planning BootcampAll career courses →

    Learn free first

    Vibe CodingAI for office workPrompt MasterAI EngineerAI data analysisResource centerInstructorsAll learning paths →
  • Evidence

    What will convince an employer?

    Certifications, projects, team work and competition entries, collected into one portfolio.

    See the portfolio

    Certifications

    Cert Master · all certificationsPrep and mock exams for AWS, Azure, GCP, Claude and moreAWS CLF-C02Entry-level AWS cloud certificationAWS SAA-C03Entry certification for cloud architectsClaude certificationsAnthropic Claude certification seriesAll certifications →

    Projects and team work

    P3 team projectsBuild a project with real teammates in a simulated team workflowP3 project experienceThe parts of a P3 project that go on your resumeDemo DayProject showcaseP3 certificatesProof once a project is completeAll of P3 →

    Competitions and work

    HackathonsBuild something against the clockSubmit your workAdd your project to the showcaseCareerOS portfolioDo tasks in the desktop app; your results become portfolio pieces
    Cert MasterBrowser extension, app and mini programScreenshot a question for analysis and practise anywhereAbout Cert Master
  • Connect

    How do I get myself in front of employers?

    Resume, interviews, referrals and mentors. See how far you are from the target role first, then decide what to fix.

    Start with Jobpin

    Resume and openings

    Graduate careersGraduate preparation across Australia, China, Malaysia, Singapore, the US and UKJobpinAI job search workspace: resume, roles, applicationsAI resumeRewrite your resume against a job descriptionReferralsRoles shared by students and mentorsOpportunitiesInternships, projects and collaborationsOffer boardOffers students have received

    Interviews

    AI Engineer interview guideSeven areas, with worked examplesFDE interview guideFive rounds, from scoping to the customer roundAI mock interviewPractise by text or voice and see the gapsInterview storiesReal interview experiencesSystem Design handbookPrepare for system design interviewsAll interview prep →

    Mentors

    1:1 mentorsBook AI, career and technical mentors by the hourGroup tutoringShare a tutor with a few others and pay less eachCareer coachingResume, interview and direction packages
    Jobpin desktopOne workspace for the whole job searchOrganise real experience and refine resume versions for target roles on macOS or Windows.About Jobpin
BusinessMembershipDownload CareerOS
0
  1. Home
  2. Learn
  3. Blog
  4. Claude Code 从入门到实战 — 安装与第一个命令
JR Academy · BlogCareer insights

Claude Code 从入门到实战 — 安装与第一个命令

5 分钟装好 Claude Code,跑通第一个任务

Published2026-11-30
Reading time1 min
Author

Contents

  • 安装
  • 登录
  • 第一个任务
  • 常用 Keybinding 速查
  • 和 ChatGPT / Cursor 的区别
  • 多种使用方式

安装

Claude Code 产品界面

三种安装方式,选一个就行:

# macOS / Linux(推荐,自动更新)
curl -fsSL https://claude.ai/install.sh | bash

# Homebrew(不自动更新,需手动 brew upgrade)
brew install --cask claude-code

# Windows PowerShell(需要管理员权限打开终端)
irm https://claude.ai/install.ps1 | iex

系统要求:Node.js 18+(macOS/Linux 安装脚本会自动检测;Windows 需提前手动安装 Node)。

Windows 用户还需要先装 Git for Windows,否则启动时报 requires git-bash 错误。装完之后确认 git 在 PATH 里:

git --version   # 应输出 git version 2.x.x
claude --version  # 应输出 claude 1.x.x

Linux 上如果 curl 脚本因权限报错,可以加 sudo,或者用 npm 全局安装:

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

登录

第一次启动会弹浏览器让你登录。支持这些账号:

账号类型 适用场景
Claude Pro / Max / Team 个人或团队日常开发
Claude Console(API) 按量付费,适合 CI/CD
Amazon Bedrock / Google Vertex / Azure Foundry 企业级云部署

登录后凭证缓存在本地,不用每次重新登录。想切换账号用 /login。

在无 GUI 的服务器(SSH 远程)上,启动时选 "print auth URL",把 URL 复制到本地浏览器完成授权,授权码回填到终端即可。

第一个任务

进入项目目录启动:

cd my-project
claude

看懂陌生项目:第一次进陌生代码库,先让它给你定向:

> 这个项目是做什么的?用了哪些技术栈?主要目录结构是怎样的?

Claude Code 会自动读 package.json、README、源码目录,给出清晰的全局概览,比自己翻文件快得多。

代码分析:

> 帮我找一下所有没有错误处理的 async 函数,列出文件路径和行号

它会用 Grep 搜索代码、逐文件读取、分析控制流,汇报哪些函数缺少 try/catch 或 .catch(),同时说明为什么认为有风险。

修改代码:

> 把 src/utils/format.ts 里的 formatDate 函数改成支持传入 timezone 参数,默认 'Australia/Sydney'

改完直接写回文件,终端显示 diff。可以继续让它跑测试验证:

> 运行相关测试,看有没有因为这个改动挂掉

Git 工作流:

> 帮我写一个 commit message,描述刚才所有的改动
> 然后 commit,branch 名叫 feat/format-timezone

整个流程——读代码、改代码、跑测试、提交——全在终端里完成,不需要切窗口复制粘贴。

常用 Keybinding 速查

快捷键 作用
Esc 中断当前 AI 响应(不中断已在跑的 shell 命令)
Ctrl+C 强制退出(包括终止正在执行的命令)
Ctrl+L 清屏(保留上下文历史,不影响对话)
↑ / ↓ 翻历史输入
Shift+Enter 多行输入(不提交,继续写下一行)
/help 查所有 slash 命令列表
/clear 清除当前会话上下文(重新开始)
/compact 压缩对话历史(上下文快满时用)
/model 切换模型(Opus 4 / Sonnet 4 / Haiku 4)
/login 切换账号或重新授权

VS Code 插件里额外多两个常用快捷键:Cmd+Shift+P → "Claude Code: Focus" 快速聚焦聊天窗口;Cmd+I(macOS)/ Ctrl+I(Windows/Linux)打开 inline edit 面板,可以直接针对选中代码下指令。

和 ChatGPT / Cursor 的区别

工具 工作方式 上下文范围 适合场景
ChatGPT 对话框粘贴代码 单次对话 问答、学习概念
Cursor IDE 内 AI 辅助 当前文件 + 少量上下文 写新代码、补全
Claude Code 终端直接操作文件系统 整个项目 重构、多文件修改、调试、Git 操作

核心差异:Claude Code 直接在你的文件系统上操作。它能一次读几十个文件,理解跨文件依赖关系,执行终端命令验证结果——这是单文件 IDE 辅助做不到的。

多种使用方式

除了终端 CLI,Claude Code 还能在这些地方用:

# VS Code 扩展(支持 inline diff 和 @-mention 文件)
code --install-extension anthropic.claude-code

# 桌面应用(macOS / Windows,图形化界面)
# 从 https://claude.com/download 下载

# 网页版(不用安装任何东西)
# 直接打开 https://claude.ai/code

VS Code 里按 Cmd+Shift+P 搜索 "Claude Code" 就能打开侧边栏。JetBrains 系列也有插件,IntelliJ / PyCharm / WebStorm 均支持,安装方式和 VS Code 类似,在 Marketplace 里搜 "Claude Code" 即可。

Author
Share or copy the link

Related learning resources

  • Vibe Coding Hub
  • Prompt engineering
← Previous articlePrompt Engineering 实战指南 — CLAUDE.md 实战:用文件驱动 AI 编程行为Next article →Claude Code 从入门到实战 — 多文件编辑:Claude Code 的杀手锏

Related articles

🇦🇺测一下:袋鼠国码农能当FDE吗?

2026-12-01

Monash 研究:肠道酸度是膳食纤维降血压的关键;AI 搬运新闻冲击维州选举信息;MPAC 公布 2027 演出季

2026-12-01

Adelaide 物理学家获 $250,000 总理科学奖;全球葡萄酒消费六十年降四分之一;残障师范生实习障碍研究

2026-12-01

DVA-C03今日上线首发 · Google Cloud AI Agent认证完整解析 · AZ-401本月GA替代AZ-400

2026-12-01

Anthropic推迟下一代模型并调百人做安全,AWS推出AI办公三件套,Google让用户单独关掉AI训练

2026-12-01

GitHub Copilot 实战指南 — Copilot AI Code Review:30 秒让 AI 帮你审 PR,三档深度随需切换

2026-11-30
View all articles →

Done reading? Next steps

Not sure what to learn next? Tell us where you are

Tell us what you do now and where you want to go. See your gaps in skills, evidence, experience, expression and positioning, and what to work on first. No sign-in needed.

Compare with my situation
  • SkillAI Engineer Bootcamp13 weeks, 12 Theory + 13 Practice live classes. You build one Agent system across Context, RAG, Tools, Memory and production Evals. Built for Applied AI and Agent Engineer roles.See the program →
  • PositioningLearning roadmaps by roleFrontend, backend, data, AI and more, laid out stage by stage in the order to learn them.All roadmaps →
  • ExpressionTry an AI mock interviewPick a role and run a mock interview to practise explaining your experience and projects.Practise now →

Not sure what to do next?

Take this page's topic with you and see where your gaps are.

Compare with my situation
JR Academy
AI learning for the global Chinese community
BootcampsFree resourcesLearn AICareer coaching
精选推荐
AI Career Impact Map
Assess career exposure and explore transition paths and learning options
Popular tool
AI & Data Bootcamps
Build your skills through structured courses and hands-on projects
Popular courses
1:1 Career Coaching
Work with an experienced mentor on your resume and interview preparation
Career coaching
Custom Corporate Training
AI training tailored to your team
Business services
Popular tags
Vibe CodingAI codingCursorClaudeJob searchPromptFrontend developmentBackend development
Subscribe to updates

Receive AI learning resources, technical tutorials and career advice by email.

We respect your privacy and do not send spam.

匠人学院 JR Academy

Follow Us

linkedinfacebooktwitterinstagramyoutube

We Accept

/image/layout/pay-paypal.png/image/layout/pay-visa.png/image/layout/pay-master-card.png/image/layout/pay-airwallex.png/image/layout/pay-alipay.png
Airbotix · AI learning & creation for kids Another Life · AI story game
Products46

CareerOS and tools

  • CareerOS
  • Cert Master
  • Jobpin
  • Jobpin web
  • Jobpin report
  • Jobpin desktop download
  • My job search reports
  • Buy report credits
  • Jobpin billing
  • AI Toolbox
  • AI Skill Marketplace

Membership

  • Membership
  • AI membership

Courses

  • Bootcamps
  • Training Camp
  • Kanban learning
  • AI Builder course
  • MCP course
  • NotebookLM workshop
  • Business Analyst course
  • Web Full-Stack Bootcamp
  • DevOps Bootcamp
  • Data Engineering Bootcamp
  • Data Analysis Bootcamp
  • Coding for Beginners
  • Algorithm Bootcamp

Career services

  • Graduate careers
  • Graduate careers in Australia
  • Graduate careers in China
  • Graduate careers in Malaysia
  • Graduate careers in Singapore
  • Graduate careers in the US
  • Graduate careers in the UK
  • 1:1 coaching
  • Career coaching
  • AI Engineer VIP
  • BA & PM Internship
  • Data Science Internship
  • Data Analysis Internship
  • Marketing Internship
  • Resume Review
  • Interview Coaching
  • Job Application Service
  • Job Monitoring
  • LinkedIn Management
  • LinkedIn Networking
Library57

Learning paths

  • All Learning Paths
  • AI Engineer
  • Context Engineering
  • Vibe Coding
  • Prompt Master
  • AI Builder
  • AI Product Manager
  • Python Basics
  • AI Productivity
  • AI Data Analysis
  • AI Finance
  • AI Content Creation
  • AI Image Creation
  • Frontend Development
  • Hermes Agent
  • OpenClaw Local Agent

Interactive labs

  • Prompt Lab
  • Frontend Lab
  • JavaScript Lab
  • Python Lab
  • AWS Lab
  • Azure Lab
  • LLM Lab
  • Git Lab

Reference and guides

  • Resources
  • Wiki
  • Cheat sheets
  • Roadmaps
  • AI roadmaps
  • Videos
  • Ebooks
  • Blog
  • Interview handbook
  • Mock exams
  • Free resources

Cities

  • Sydney
  • Melbourne
  • Brisbane
  • Adelaide
  • Singapore
  • Kuala Lumpur
  • London
  • New York
  • San Francisco
  • Los Angeles
  • Seattle
  • Toronto
  • Vancouver

Immigration

  • Australia Immigration
  • Skilled Visa 189/190/491
  • Employer Sponsored 482/186/494
  • Business Visa 188/888
  • UK Immigration
  • US Immigration
  • Canada Immigration
  • Singapore immigration
  • Malaysia immigration
Business20

For business

  • AI for Business
  • Business portal sign-in
  • Corporate Training
  • Internship Partnership
  • Recruitment Partnership
  • Enterprise (EN)

Metatree AI Lab

  • Metatree AI Lab (Chinese)
  • AI solutions (Chinese)
  • Digital employees (Chinese)
  • Case studies (Chinese)
  • Metatree AI Lab
  • AI services
  • Digital employees
  • Case studies

AI education for kids

  • Airbotix — AI Learning & Creation for Kids
  • AU Family Resource Hub
  • NAPLAN Report Guide
  • My School Data Guide
  • Sydney Private School Fees 2026
  • Kids Coding Programs
About15

Company

  • About Us
  • Our Mentors
  • Become a Mentor
  • Metaverse Classroom
  • JR Careers
  • Another Life — AI Story Game
  • Contact Us

Help and policies

  • FAQs
  • Terms & Conditions
  • Privacy Policy
  • Cancellation & Refund Policy
  • Site map

Friend links

  • CS Browser

Contact

  • hello@jiangren.com.au
  • 0421-672-555

Offices

Level 10b, 144 Edward Street, Brisbane CBD (Headquarter)
Level 2, 171 La Trobe St, Melbourne VIC 3000
45A13, Block B, Oriental Hope Tianxiang Plaza, 500 Tianfu Avenue Middle Section, Wuhou District, Chengdu, Sichuan, China
Business Hub, 155 Waymouth St, Adelaide SA 5000
Disclaimer
footer-disclaimerfooter-disclaimer

JR Academy acknowledges Traditional Owners of Country throughout Australia and recognises the continuing connection to lands, waters and communities. We pay our respect to Aboriginal and Torres Strait Islander cultures; and to Elders past and present. Aboriginal and Torres Strait Islander peoples should be aware that this website may contain images or names of people who have since passed away.

All content on the JR Academy website, including course materials, logos, and information provided, is protected under Australian intellectual property laws. Unauthorized use, sale, distribution, reproduction, or modification is strictly prohibited. Violations may result in legal action. By accessing our website, you agree to respect our intellectual property. JR Academy Pty Ltd reserves all rights, including patents, trademarks, and copyrights. Any infringement will be subject to legal prosecution. View Terms of Service

© 2017-2026 JR Academy Pty Ltd. All rights reserved.

ABN 26621887572

HomeLearnCoursesCerts

Related certifications

Start with a few sample questions or a free chapter. The exam guide covers what the exam tests; the question bank lets you practise by exam domain.

Foundational

Claude Certified Architect – Foundations

CCAR-F

Sample questionsExam guide
Foundational

Claude Certified Developer – Foundations

CCDV-F

Question bankExam guide
Associate

Claude Certified Associate – Foundations

CCAO-F

Question bankExam guide