Install GEMINI CLI, OpenCode CLI, Qwen Code CLI with Bun Runtime, and Crush CLI with Golang

ยท
2 min read
tech ai tools
#gemini #opencode #qwen #bun #cli

How to install GEMINI CLI, OpenCode CLI, and Qwen Code CLI using Bun runtime, plus Crush CLI for data processing using Golang.

TL;DR:

  • Install each AI CLI tool individually with proper commands
  • Configure API keys for each tool separately
  • Use tools for AI-assisted development and data processing

Tool-by-Tool Installation Guide

Prerequisites

Install Bun Runtime

Terminal window
curl -fsSL https://bun.sh/install | bash

Install Golang (for Crush CLI)

Terminal window
# Ubuntu/Debian
sudo apt install golang-go
# macOS
brew install go
# Windows
choco install golang

GEMINI CLI

Installation

Terminal window
npm install -g @google/gemini-cli

Verify Installation

Terminal window
gemini --version

Configuration

Terminal window
gemini config set api-key YOUR_GOOGLE_API_KEY

Basic Usage

Terminal window
gemini ask "Explain async/await in JavaScript"

OpenCode CLI

Installation

Terminal window
curl -fsSL https://opencode.ai/install | bash

Verify Installation

Terminal window
opencode --version

Configuration

Terminal window
opencode auth login

Basic Usage

Terminal window
opencode "Generate a React component"

Qwen Code CLI

Installation

Terminal window
npm install -g @qwen-code/qwen-code@latest

Verify Installation

Terminal window
qwen --version

Configuration

Terminal window
qwen config set api-key YOUR_ALIBABA_API_KEY

Basic Usage

Terminal window
qwen "Refactor this function"

Crush CLI

Installation

Terminal window
go install github.com/liljencrantz/crush@latest

Verify Installation

Terminal window
crush --version

Basic Usage

Terminal window
echo "name,age\nAlice,30\nBob,25" | crush "select name, age from input where age > 20"

References