Skip to main content

Installation

Source code: github.com/60db/cli · npm: 60db-cli

Prerequisites

  • Node.js 16 or higher
  • npm or yarn package manager

Global Installation

Install globally to use the 60db command anywhere:
npm install -g 60db-cli
Verify installation:
60db --version

Local Installation

Install as a dependency in your project:
npm install 60db-cli
Use with npx:
npx 60db users --list

Install from Source

Clone the public GitHub repo and link the binary locally — useful when you want to build from a specific branch or commit:
git clone https://github.com/60db/cli.git
cd cli
npm install
npm link         # exposes the `60db` binary on your PATH
60db --version

Post-Installation

After installation, configure your API credentials:
# Set API URL
60db config --set apiBaseUrl=https://api.60db.ai

# Set API key
60db config --set apiKey=your_api_key_here

# Or login with email/password
60db auth:login --email [email protected] --password yourpassword

Troubleshooting

Command not found

If you get command not found after global installation:
  1. Check npm global bin directory:
    npm config get prefix
    
  2. Add it to your PATH (if not already):
    export PATH=$(npm config get prefix)/bin:$PATH
    
  3. Or reinstall with sudo (Linux/Mac):
    sudo npm install -g 60db-cli