Skip to content

Getting Started with Wealthbox CLI

This guide walks you through installing wealthbox-cli and configuring it to connect to your Wealthbox CRM account.


Installation

pip install wealthbox-cli

On systems where the system Python is externally managed (Ubuntu 23.04+, Debian 12+), pip install outside a virtual environment is blocked by PEP 668. Use pipx to install CLI tools in isolated environments:

pipx install wealthbox-cli

This puts wbox and wb on your PATH without touching system Python.

From Source (development)

git clone https://github.com/massive-value/wealthbox-cli
cd wealthbox-cli
python -m venv .venv
source .venv/bin/activate  # macOS/Linux
# OR
.venv\Scripts\activate     # Windows
pip install -e ".[dev]"

Getting Your Wealthbox API Token

  1. Log in to Wealthbox
  2. Click the three dots menu (...) in the top right
  3. Go to SettingsAPI Access
  4. Click Create Access Token

Storing Your Token

wbox config set-token

This prompts for your Wealthbox API token (input is masked) and stores it in ~/.config/wbox/config.json (Linux/macOS) or %APPDATA%\wbox\config.json (Windows).

Other configuration commands:

wbox config show     # display stored config (token masked)
wbox config clear    # remove stored config

Alternative Authentication Methods

For CI, scripting, or containers:

export WEALTHBOX_TOKEN="your_api_token_here"
echo 'WEALTHBOX_TOKEN=your_api_token_here' > .env
wbox contacts list --token your_api_token_here

Token is resolved in this order: --token flag → WEALTHBOX_TOKEN env var → config file → .env file.


Verify Your Setup

# Check your identity
wbox me

# List users in your workspace
wbox users list

# List your first contact
wbox contacts list --per-page 1

Next Steps