Skip to content

Instantly share code, notes, and snippets.

@alimxk
Last active August 1, 2025 00:45
Show Gist options
  • Select an option

  • Save alimxk/ad081585b229f026197e60d29954826f to your computer and use it in GitHub Desktop.

Select an option

Save alimxk/ad081585b229f026197e60d29954826f to your computer and use it in GitHub Desktop.
Install Code CLIs
#!/bin/bash
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 22
# Verify the Node.js version:
node -v # Should print "v22.17.1".
nvm current # Should print "v22.17.1".
# Verify npm version:
npm -v # Should print "10.9.2".
npm install -g @anthropic-ai/claude-code
npm install -g @google/gemini-cli
npm install -g @openai/codex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment