forked from gongahkia/haus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·53 lines (46 loc) · 1.8 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·53 lines (46 loc) · 1.8 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
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Installation script for poor-cli
set -e
echo "╔══════════════════════════════════════╗"
echo "║ Installing poor-cli globally... ║"
echo "╚══════════════════════════════════════╝"
echo ""
# Check if .env file exists
if [ ! -f .env ]; then
echo "⚠️ Warning: .env file not found!"
echo " You'll need to set GEMINI_API_KEY environment variable"
echo " or create a .env file in your project directories"
echo ""
fi
# Check if running in virtual environment
if [ -n "$VIRTUAL_ENV" ]; then
echo "⚠️ Warning: You're in a virtual environment!"
echo " The command will only be available in this environment."
echo " Deactivate to install globally or continue for venv install."
echo ""
read -p "Continue? (y/n) " -n 1 -r
echo ""
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
fi
# Install the runtime package with all provider SDKs
echo "📦 Installing poor-cli..."
pip install '.[all]'
echo ""
echo "✅ Installation complete!"
echo ""
echo "╔══════════════════════════════════════╗"
echo "║ You can now use 'poor-cli' from ║"
echo "║ anywhere in your terminal! ║"
echo "╚══════════════════════════════════════╝"
echo ""
echo "Quick start:"
echo " 1. Set your GEMINI_API_KEY environment variable:"
echo " export GEMINI_API_KEY='your-api-key-here'"
echo ""
echo " 2. Run poor-cli from any directory:"
echo " poor-cli"
echo ""
echo " 3. Or add GEMINI_API_KEY to your ~/.bashrc or ~/.zshrc"
echo ""