-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·42 lines (34 loc) · 1.04 KB
/
install.sh
File metadata and controls
executable file
·42 lines (34 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
# Simple installation script for Codestral CLI
set -e
echo "🚀 Installing Codestral CLI..."
# Check Python version
python3 -c "import sys; assert sys.version_info >= (3, 8)" || {
echo "❌ Python 3.8+ required"
exit 1
}
# Install dependencies
echo "📦 Installing dependencies..."
pip3 install -r requirements.txt
# Update certificates (helpful for SSL issues)
echo "🔒 Updating SSL certificates..."
pip3 install --upgrade certifi
# Make executable
chmod +x main.py
# Create symlink (optional)
if [[ ":$PATH:" == *":$HOME/.local/bin:"* ]]; then
mkdir -p "$HOME/.local/bin"
ln -sf "$(pwd)/main.py" "$HOME/.local/bin/codestral-cli"
echo "✅ Symlink created: codestral-cli"
fi
echo ""
echo "✅ Installation complete!"
echo ""
echo "Setup your API key:"
echo " export MISTRAL_API_KEY=\"your-api-key\""
echo ""
echo "Usage:"
echo " ./main.py # Interactive mode"
echo " ./main.py \"Write Python code\" # Single prompt"
echo " codestral-cli \"Help with debugging\" # If symlinked"
echo ""