Difference between revisions of "Codex gemini install cli"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "# Debian/Ubuntu ``` sudo apt-get remove -y nodejs npm curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - sudo apt-get install -y nodejs sudo npm install -g np...")
 
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
 
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
 
sudo apt-get install -y nodejs
 
sudo apt-get install -y nodejs
sudo npm install -g npm@latest
+
 
npm install -g @openai/codex
+
mkdir -p ~/.npm-global
npm install -g @google/gemini-cli
+
npm config set prefix '~/.npm-global'
 +
export PATH=~/.npm-global/bin:$PATH
 +
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
 +
 
 +
npm install -g npm@latest
 +
npm install -g --allow-scripts=@github/keytar,node-pty @openai/codex @google/gemini-cli
 +
 
 
codex --version
 
codex --version
 
gemini --version
 
gemini --version
 
```
 
```

Latest revision as of 02:01, 26 July 2026

Debian/Ubuntu

sudo apt-get remove -y nodejs npm
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs

mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc

npm install -g npm@latest
npm install -g --allow-scripts=@github/keytar,node-pty @openai/codex @google/gemini-cli

codex --version
gemini --version