Repository navigation
Expand file tree
/
Copy pathGET_STARTED.sh
More file actions
executable file
·67 lines (59 loc) · 1.68 KB
/
Copy pathGET_STARTED.sh
File metadata and controls
executable file
·67 lines (59 loc) · 1.68 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# Ceregrep Client - Quick Start Script
# Run this to get up and running with Cerebras
set -e
echo "🚀 Ceregrep Client - Cerebras Setup"
echo "===================================="
echo ""
# Navigate to project directory
cd "$(dirname "$0")"
# Step 1: Install dependencies
echo "📦 Step 1: Installing dependencies..."
npm install
echo "✓ Dependencies installed"
echo ""
# Step 2: Create config file
echo "⚙️ Step 2: Creating configuration..."
if [ ! -f .ceregrep.json ]; then
cp .ceregrep.example.json .ceregrep.json
echo "✓ Created .ceregrep.json with your Cerebras API key"
else
echo "⚠️ .ceregrep.json already exists, keeping it"
fi
echo ""
# Step 3: Build project
echo "🔨 Step 3: Building project..."
npm run build
echo "✓ Project built successfully"
echo ""
# Step 4: Test
echo "🧪 Step 4: Running test..."
echo ""
echo "Testing Cerebras Qwen 3 Coder 480B..."
echo "Query: 'List all TypeScript files in the current directory'"
echo ""
node dist/test-cerebras.js
echo ""
# Success!
echo "================================================"
echo "✅ Setup complete!"
echo ""
echo "Try these commands:"
echo ""
echo " CLI:"
echo " ./dist/cli/index.js query \"Find TODO comments\""
echo " ./dist/cli/index.js list-tools"
echo " ./dist/cli/index.js config"
echo ""
echo " Test Script:"
echo " node dist/test-cerebras.js"
echo ""
echo " TypeScript SDK:"
echo " See CEREBRAS_QUICKSTART.md for examples"
echo ""
echo "📚 Documentation:"
echo " - SETUP.md - Complete setup guide"
echo " - CEREBRAS_QUICKSTART.md - Cerebras-specific guide"
echo " - README.md - Full documentation"
echo ""
echo "🎉 Happy coding with Cerebras Qwen 3 Coder 480B!"