#!/bin/bash

# Install Claude Code CLI on Debian/Ubuntu.
set -e

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl ca-certificates gnupg build-essential

curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
sudo apt install -y nodejs

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

node -v
npm -v
claude --version || true
