-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·49 lines (42 loc) · 1.32 KB
/
install.sh
File metadata and controls
executable file
·49 lines (42 loc) · 1.32 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
#!/bin/bash
set -euo pipefail
# Instantly CLI installer
# Usage: curl -fsSL https://raw.githubusercontent.com/bcharleson/instantly-cli/main/install.sh | bash
PACKAGE="instantly-cli"
echo ""
echo " ⚡ Installing Instantly CLI..."
echo ""
# Check for Node.js
if ! command -v node &> /dev/null; then
echo " Node.js is required but not installed."
echo ""
echo " Install Node.js 18+ from: https://nodejs.org"
echo " Or via nvm: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash"
echo ""
exit 1
fi
# Check Node.js version
NODE_VERSION=$(node -v | sed 's/v//' | cut -d. -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo " Node.js 18+ is required. Current version: $(node -v)"
echo " Please upgrade: https://nodejs.org"
exit 1
fi
# Install globally via npm
if command -v npm &> /dev/null; then
npm install -g "$PACKAGE"
else
echo " npm not found. Please install Node.js 18+ from https://nodejs.org"
exit 1
fi
echo ""
echo " ✓ Instantly CLI installed successfully!"
echo ""
echo " Get started:"
echo " instantly login # Authenticate with your API key"
echo " instantly campaigns list # List your campaigns"
echo " instantly --help # See all commands"
echo ""
echo " For AI assistant integration:"
echo " instantly mcp # Start MCP server"
echo ""