DEV Community

KenjiGoh
KenjiGoh

Posted on

Get started with Claude!

Installation

1. MacOS (Homebrew):

brew install --cask claude-code
Enter fullscreen mode Exit fullscreen mode

2. MacOS, Linux, WSL:

curl -fsSL https://claude.ai/install.sh | bash
Enter fullscreen mode Exit fullscreen mode

3. Windows CMD:

curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
Enter fullscreen mode Exit fullscreen mode

After installation, run claude at your terminal. The first time you run this command you will be prompted to authenticate

Set up instructions can be found here:
https://code.claude.com/docs/en/quickstart

Start by creating a claude.md file

Type /init

claude
/init
Enter fullscreen mode Exit fullscreen mode

Common Commands

Stop Claude - press Esc
Add a memory - press#
Rewind to previous conversation - press Esc 2 times

Adding Context

Example, we can tell claude to always look at prisma/schema.prisma to check structure of data in db:

Next time when you ask about a schema attributes, claude will go straight to the schema instead of searching more files.

Reusing knowledge for similar task

Type /compact

Plan Mode

Press Shift + Tab 2 times to enable Plan mode
In Plan mode, claude will do more research, reads more files and come up with a complete plan for your tasks for your review. It will list down exactly what it wants to do to complete your tasks.

Thinking Mode

Allow claude to reason about more challenging problems.
Think ---> Ultrathink

Top comments (0)