CLI Installation
Complete installation guide for the Grapevine CLI.
Download Pre-built Binaries
Note: The CLI is available as an npm package for easy installation.
NPM Package (Recommended)
The CLI is now available as a separate npm package:
npm install -g @pinata/grapevine-cliLatest Release (v0.1.0)
Download the appropriate binary for your platform:
macOS (Apple Silicon)
wget https://github.com/PinataCloud/grapevine-cli/releases/download/v0.1.0/grapevine-cli-macos-arm64.tar.gz
tar -xzf grapevine-cli-macos-arm64.tar.gz
chmod +x grapevine
sudo mv grapevine /usr/local/bin/macOS (Intel)
wget https://github.com/PinataCloud/grapevine-cli/releases/download/v0.1.0/grapevine-cli-macos-x64.tar.gz
tar -xzf grapevine-cli-macos-x64.tar.gz
chmod +x grapevine
sudo mv grapevine /usr/local/bin/Linux
wget https://github.com/PinataCloud/grapevine-cli/releases/download/v0.1.0/grapevine-cli-linux.tar.gz
tar -xzf grapevine-cli-linux.tar.gz
chmod +x grapevine
sudo mv grapevine /usr/local/bin/Windows
# Download the Windows binary
Invoke-WebRequest -Uri "https://github.com/PinataCloud/grapevine-cli/releases/download/v0.1.0/grapevine-cli-windows.zip" -OutFile "grapevine-cli-windows.zip"
# Extract the archive
Expand-Archive -Path "grapevine-cli-windows.zip" -DestinationPath "."
# Add to PATH (run as Administrator)
Move-Item -Path ".\grapevine.exe" -Destination "C:\Program Files\Grapevine\"
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\Grapevine", "Machine")Checksums
Verify your download integrity:
| Platform | SHA256 |
|---|---|
| Linux | 3698695196acd3b7801a7114826f8d93313c7b8527a6a36380aa1f7a0db9fe45 |
| macOS ARM64 | 0b6898a4b59e719026d6050d993a44743cc3488e71c55820a9d8a97b53798cf5 |
| macOS x64 | 78c7f39a81285b0a758f88e0e747a957e9784d83e3d1cd922ff7095bd88c03a9 |
| Windows | 6742f3fd33dd54db6f30aedac03e6d9930b4e8cb8d54b6deff67dd5caeaf7937 |
Verify Installation
Check the CLI is installed correctly:
grapevine --version
# Should output: 0.1.0
grapevine --help
# Should show available commandsRequirements
- Node.js 18+ or Bun 1.0+
- Wallet with ETH for gas fees
- USDC for payments (testnet or mainnet)
- Terminal with UTF-8 support (for emojis)
Platform-Specific Installation
macOS
# Using npm
npm install -g @pinata/grapevine-cliLinux
# Using npm
npm install -g @pinata/grapevine-cliWindows
# Using npm
npm install -g @pinata/grapevine-cliInitial Setup
1. Set Up Authentication
Choose one of these methods:
Method A: Environment Variable (Recommended)export PRIVATE_KEY="0xYourPrivateKeyHere"Add to your shell profile for persistence:
# For Bash
echo 'export PRIVATE_KEY="0x..."' >> ~/.bashrc
# For Zsh
echo 'export PRIVATE_KEY="0x..."' >> ~/.zshrc
# For Fish
echo 'set -x PRIVATE_KEY "0x..."' >> ~/.config/fish/config.fishgrapevine auth --key "0x..." --network testnetThis creates ~/.grapevine/config.json.
Pass --key with every command:
grapevine --key "0x..." feed list2. Test Your Setup
grapevine infoShould display:
- Runtime information
- Network configuration
- Your wallet address
- API endpoint
3. List Available Commands
grapevine --helpConfiguration
Configuration File Location
The CLI stores configuration at:
- macOS/Linux:
~/.grapevine/config.json - Windows:
%USERPROFILE%\.grapevine\config.json
Configuration Format
{
"network": "testnet",
"apiUrl": "https://api.grapevine.markets"
}Note: Private keys are never saved to config for security.
Setting Default Network
grapevine auth --network mainnetThis sets the default network for all commands.
Getting Test Tokens
Base Sepolia ETH
Get test ETH from: Alchemy Faucet
Test USDC
Options:
- Bridge from Ethereum Sepolia
- Use a test token faucet
- Contact Grapevine support
Troubleshooting
Command Not Found
If grapevine: command not found:
# Find where npm installs global packages
npm config get prefix
# Add to PATH (replace PREFIX with output above)
export PATH=$PATH:PREFIX/binPermission Denied
On macOS/Linux, you may need sudo:
sudo npm install -g @pinata/grapevine-cliOr configure npm to install globally without sudo:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrcVersion Mismatch
Update to the latest version:
npm update -g @pinata/grapevine-cliAuthentication Errors
Ensure your private key:
- Starts with
0x - Is 66 characters long (including
0x) - Is from a wallet with funds
Network Issues
Check your internet connection and try:
grapevine --debug infoThis shows detailed network logs.
Updating
Check Current Version
grapevine --versionUpdate to Latest
# Using npm
npm update -g @pinata/grapevine-cli
# Using Bun
bun update -g @pinata/grapevine-cli
# Using pnpm
pnpm update -g @pinata/grapevine-cliUninstalling
# Using npm
npm uninstall -g @pinata/grapevine-cli
# Using Bun
bun remove -g @pinata/grapevine-cli
# Using pnpm
pnpm remove -g @pinata/grapevine-cliRemove configuration:
rm -rf ~/.grapevineShell Completion (Optional)
Bash
Add to ~/.bashrc:
eval "$(grapevine completion bash)"Zsh
Add to ~/.zshrc:
eval "$(grapevine completion zsh)"Fish
grapevine completion fish | sourceNext Steps
- CLI Overview - Learn CLI features
- Feed Commands - Feed management commands
- Entry Commands - Entry management commands
- Quick Start - Build your first app
- SDK Documentation - Programmatic access