rootblysub
전체 영상YouTube 자막 번역English

Claude Code - Full Tutorial for Beginners

0:00
这个视频将教你Claude代码。
This video will teach you Claude code.
0:02
我会逐步讲解,并假设你没有任何基础。
I'll go over everything and assume no prior knowledge.
0:05
我会带你进行设置和安装。
I'll walk you through the setup and installation.
0:07
一步一步来。
Step by step.
0:08
我会向你展示如何使用这个工具、最佳实践和多个功能,
I'll show you how to utilize the tool, the best practices, multiple features,
0:12
到视频结束时,你将能够自如地使用这个工具来生成
and by the end of the video, you'll be comfortable using this tool to generate
0:16
一些非常惊人的输出和精彩的编码项目。
some pretty insane outputs and awesome coding projects.
0:19
那么,话不多说,我们开始吧。
So with that said, let's get into it.
0:21
在不详细说明的情况下,云代码实际上是一个命令行
So without getting into too many details, cloud Code is effectively a command line
0:26
或终端应用程序,允许你生成代码、调试项目、制作网站、创建应用程序,随你所愿。
or terminal application that allows you to generate code,
0:30
调试项目,制作网站,创建应用程序,无论你想做什么。
debug projects, make websites, create applications, whatever it is that you want.
0:35
这实际上是人类版本的光标或其他东西,对吧?
It is effectively anthropic version of, you know, cursor or something, right?
0:39
在这里你可以使用终端生成一堆代码。
Where you can generate a bunch of code using the terminal.
0:42
现在这是基于提示的编码,这意味着你不需要实际编写。
Now this is prompt based coding, which means you don't need to actually write
0:45
自己编写任何代码。
any of the code yourself.
0:47
你只需输入给AI代理,告诉它你想要的输出是什么。
You simply type to an AI agent, you tell it what your desired output is
0:51
然后它就会开始编码。
and then goes ahead and starts coding.
0:53
现在,云代码通常会与其他开发工具结合使用,
Now, oftentimes cloud code will be used in combination
0:56
我将在这个视频中向你展示其中的一些。
with other developer tools, and I'll show you a few of them in this video.
0:59
但一般来说,你不需要成为专家就能使用这个。
But generally speaking, you do not need to be an expert to use this.
1:02
即使作为一个完全的初学者,你也可以创建一些非常酷的项目。
And even as a complete beginner, you can create some really cool projects.
1:06
那么,话虽如此,让我们看看如何设置它。
So with that said, let's look at how we set it up.
1:09
现在,为了让云代码正常工作,你需要一个云订阅,
Now, in order to get cloud code working, you are going to need a cloud subscription
1:12
这是需要付费的。
which is paid.
1:13
所以你需要一个Pro Max团队或企业订阅,或者一个API密钥。
So you're going to need a Pro Max teams or enterprise subscription or an API key
1:18
需要一些来自云控制台的令牌或积分。
with some tokens or credits from the cloud console.
1:21
现在,我建议
Now, I would suggest that
1:22
那么就从云中获取最便宜的计划。
if you're just looking to mess around with this, get the cheapest plan from cloud.
1:25
如果你用于非常繁重的工作,你会很快用完积分。
You will run out of credits pretty quickly if you are using this for very heavy work.
1:29
当然,先测试一下,然后再开始购买不同的积分。
But of course, test it first before you start going and buying a bunch of different credits.
1:33
你使用的模型也很重要,我们稍后会讨论,
It also matters what model you're using, which we'll talk about later,
1:36
这将决定你发送的所有提示的整体价格。
which will determine what the overall price for all of the prompts that you send is going to be.
1:40
通常,你不会超出预算。
Now, generally, you're not going to be overbuild.
1:42
你只会用完积分,然后需要购买更多。
You'll just run out of credits, then you would have to buy more.
1:44
所以不用担心这个。
So don't worry about that.
1:45
好的。
Okay.
1:46
现在安装这个需要我们直接在终端中工作。
Now to install this is going to require that we work directly inside of the terminal.
1:50
我们要做的是打开一个终端、命令提示符或PowerShell
So what we're going to do is we're going to open up a terminal or a command prompt or a PowerShell
1:54
实例,具体取决于你使用的操作系统。
instance, depending on the operating system that you're working on.
1:58
如果你在Windows上,我建议你打开PowerShell,
Now, if you are on windows, then I'm going to suggest that you open up PowerShell
2:02
你可以去Windows搜索栏,搜索PowerShell,然后打开这样的终端。
so you can go to the windows search bar, search for PowerShell, and then open up a terminal like this.
2:07
我会把它放在我屏幕的右侧。
And I'll just put it on the right hand side of my screen.
2:09
如果你在Mac或Linux上,请打开一个普通的终端。
Now if you're on Mac or Linux then open up a normal terminal.
2:13
所以在聚光灯搜索中输入终端。
So just type terminal in the spotlight search.
2:15
然后你将进入一个可以开始使用云代码的环境。
And then you'll be in an environment where you can start using cloud code.
2:18
为了安装这个,我会在描述中留下这份文档,
Now in order to install this I'm going to leave this documentation in the description
2:22
其中给出了你可以根据操作系统简单复制的命令。
which gives you the commands that you can simply copy depending on your operating system.
2:26
如果你在Mac或Linux上,你可以复制这个curl命令。
So if you were on Mac or Linux then you can copy this curl command right here.
2:30
只需将其粘贴到终端中并运行。
Just paste it into your terminal and run it.
2:32
如果你在Windows上并且使用我建议的PowerShell,那么你可以复制这个IRM命令。
If you are on windows and you're using PowerShell as I suggested, then you can copy this IRM command.
2:38
您可以粘贴它,按回车键,它应该会为您安装云代码。
You can paste it, hit enter, and it should install cloud code for you.
2:42
如果您使用的是命令提示符,您可能在使用旧版本的Windows。
If you're using the command prompt, maybe you're on an older version of windows.
2:45
那么您可以在这里复制这个版本。
Then you can copy this version right here.
2:47
将其粘贴到命令提示符中。
Paste it in the command prompt.
2:49
再次,它将安装该工具。
Again, it will install the tool.
2:51
云代码不是桌面应用程序。
Cloud code is not a desktop application.
2:53
它实际上直接在您的Shell或终端中运行。
It actually runs directly inside of your shell or your terminal.
2:57
因此,为了在未来使用此功能,您需要再次打开PowerShell或终端,
So in order to use this in the future, you will need to open up PowerShell again or terminal again,
3:02
或使用某种工具以实际与云进行交互并生成代码。
or use this from some kind of tool in order to actually interact with cloud and generate code.
3:07
现在,一旦
Now, once
3:07
它显示已安装,您可以通过在终端中简单输入Claude来测试。
it says it's installed, the way that you can test this is by simply typing Claude in your terminal.
3:12
所以如果您输入Claude,您应该会在这里得到某种输出。
So if you type Claude, you should get some kind of output here.
3:15
现在,当您第一次运行此程序时,它会要求您使用您的Anthropic或云帐户进行身份验证。
Now when you first run this, it will ask you to authenticate with your anthropic or cloud account.
3:19
所以就这样做吧。
So just do that.
3:20
进入您的浏览器,登录您的帐户,然后您就可以开始使用了。
Go into your browser, sign into your account and then you'll be good to go.
3:24
现在,每当您第一次运行此程序并输入该命令时,
Now also whenever you run this for the first time and you type that command,
3:27
它会要求您信任您所在的当前文件夹。
it's going to ask you to trust the current folder that you're inside of.
3:30
所以我们将继续并按下。是的,我信任这个文件夹。
So we're going to go ahead and press on. Yes I trust the folder.
3:33
然后它会打开Claude Code用户界面。
And then it's going to bring up the Claude Code UI.
3:35
现在在这一点上,您应该已经安装了云代码,只需记住,
Now at this point you should have got cloud code installed and just remember,
3:38
如果您关闭终端或PowerShell,您将需要重新打开它。
if you were to close the terminal or the PowerShell you would have to reopen this.
3:42
对吧?
Right?
3:42
我将放大,然后再次输入Claude,然后您可以按回车。
I'm just going to zoom in and then again type Claude and then you can press enter.
3:46
您将再次进入该用户界面。
And again you get back into that user interface.
3:48
所以如果您失去它,不用担心。
So don't worry if you lose it.
3:51
现在,对于一些完全是初学者的人来说,这可能有点令人畏惧。
Now for some of you that are complete beginners and already this is a little bit intimidating.
3:55
Anthropic 实际上确实创建了一种更简单的方式来使用 Claude 编写代码。
Anthropic actually did create an easier way to write code using Claude.
3:59
这与 Claude 代码并不相同,但非常相似。
It is not the same thing as Claude code, but it is very similar
4:02
您可以通过下载 Claude 的桌面应用程序来访问它。
and you can access that by downloading the desktop app for Claude.
4:06
所以,如果您有他们的账户,您可以直接下载桌面应用程序。
So if you have an account with them, you can just download the desktop app.
4:09
如果您这样做,应用程序看起来会像这样。
If you do that, the app will look something like this.
4:12
从这里,您可以在这个聊天和代码模式之间切换。
From here, what you'll be able to do is switch between this chat and this code mode.
4:17
如果您进入这里的编码模式,您将能够选择一个项目。
And if you go into the coding mode here, you'll be able to select a project.
4:21
您可以直接在这里写提示,您可以像编码一样更改模式,
You can write a prompt directly inside of here you can change the mode like coding,
4:25
询问、规划,对吧。您可以添加不同的文件。
asking, planning, right. You can add different files.
4:28
您可以将其连接到 GitHub,您可以选择您的模型,使用起来简单得多。
You can connect it to GitHub, you can choose your model and it's a lot simpler and easier to use.
4:33
所以,再次强调,如果您是初学者,您可以直接使用这个。
So again, if you're a beginner you can just use this.
4:35
但如果您想完成任何严肃的工作,CLI 或命令行工具是您需要设置并在机器上使用的。
But if you want to get any serious work done, the CLI or the command
4:39
我给你展示的线工具是你想要在你的机器上设置和拥有的。
line tool which I'm showing you is what you're going to want to set up and have on your machine.
4:42
现在,如果你编程已经有一段时间了,你可能知道最近就业市场很艰难。
Now, if you've been programing for a while, you probably know the job market is tough recently
4:47
而且你可能觉得传统简历根本无法展示你是谁。
and you may feel like traditional resumes just don't show who
4:50
你真的很像一个创造者或技术专家。
you really are as a creator or a technologist.
4:53
现在这就是dinked me的用武之地。
Now that's where dinked me comes in.
4:56
这是一个全新的人工智能原生职业网络
It's a brand new AI native career network built
4:59
为真实工作的时代、真实项目、真实影响而打造。
for the real era of real work, real projects, real impact.

처음 5분까지만 무료로 볼 수 있어요. 이어서 보려면 앱이나 확장 프로그램을 설치하세요.

다운로드
다른 언어로 요청하기
Chrome 확장 프로그램과 모바일 앱으로도 이용해보세요다운로드
번역 진행 중0%