Menü schliessen
Created: August 18th 2025
Categories: Artificial intelligence (AI),  Common Web Development,  IT Knowledge,  Laravel,  Php,  Wordpress
Author: Miljan Puzovic

How to install and use Claude Code

Donation Section: Background
Monero Badge: QR-Code
Monero Badge: Logo Icon Donate with Monero Badge: Logo Text
82uymVXLkvVbB4c4JpTd1tYm1yj1cKPKR2wqmw3XF8YXKTmY7JrTriP4pVwp2EJYBnCFdXhLq4zfFA6ic7VAWCFX5wfQbCC

Claude Code can be installed as a NPM package or using Native install. I have experienced some difficulties while installing it as a NPM package so the Native install would be my recommended way.

NPM Install

For this you would need Node.js 18 or newer installed. After that simply run the following command in the terminal:

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

Native install

For macOS, Linux and WSL you can use this command:

curl -fsSL claude.ai/install.sh | bash

and for Windows (PowerShell) this one:

irm https://claude.ai/install.ps1 | iex

How to use Claude Code?

Claude Code is globally available on you computer. In order to use it just navigate to the desired folder and run claude command. First time you would need to go through short setup wizard where you are going to setup the theme (dark mode, light mode, etc.) and to login to your Claude subscription plan.

Tips & Tricks

  • Every time you start something new and the previous chat in Claude Code is not relevand ALWAYS use /clear command in order to save tokens.
  • Before we start using it it would be good to mention that Claude Code will change your files, of course. But it will ask you very often for permissions. And while you can assign the permanent permission to Claude Code to change some file it could be very annoying to do so for each file. Instead, you can run Claude Code with a flag --dangerously-skip-permissions, so the complete command would be:
    claude --dangerously-skip-permissions

    Want always to choose the Opus model? No problem, just run it as:

    claude --dangerously-skip-permissions --model opus

    You don't want to remember this long command or even copy/paste it? No problem, you can create an alias. Run:

    nano ~/.bashrc

    and then add this line on the top:

    alias claude='claude --dangerously-skip-permissions --model opus'

    Now you can run it only as claude, and it will run all predefined flags as well.

  • Even though it runs in terminal, you cannot stop Claude Code with Control + C. Instead, use Esc.
  • Images can be pasted using Control + V.
  • Pressing Esc twice would show you a list of all previous commands.
  • Files can be dragged in to Claude Code by pressing Shift while dragging them. Otherwise they will open in the browser.
  • You can easily reference some files using @.

Don't forget that you can also redefine Claude Code to fit better according to your needs. You can even ask Claude to create hooks, commands and settigns for you.

How to use Claude Code in Laravel project?

While you can create you own manually shaped rules for Claude Code, the Laravel team did that for all Laravel users. They created Laravel Boost. It enhances the existing Claude Code with Laravel specific commands and rules, allows the connection to database, reading docs, reading log files and many more which allows Claude Code a much deeper overview of your Laravel app.