Install & connect the CLI

6 min Beginner

Overview

The CLI gives you the same data and agent from your terminal, where it can run inside an AI assistant such as Claude Code or Codex. Setting it up is a short, predictable path: install it with one command, sign in once through your browser, connect your CRM if you want Landbase to work with records you already have, and run a quick check to confirm it works. A few minutes here is what unlocks running Landbase from the terminal, right next to your other tools.

Install the CLI

Installing takes a single command. Pick the line for your operating system.

Mac or Linux

curl -fsSL https://cli.landbase.com/install.sh | bash

Windows (PowerShell)

$ProgressPreference = 'SilentlyContinue'; irm https://cli.landbase.com/install.ps1 | iex

Confirm it worked by checking the version:

landbase-cli --version

If you see a version number, you are installed. If the terminal says command not found, reopen it and try again; if it still cannot find landbase-cli, add the install folder the installer printed to your PATH and reopen the terminal. You can also ask an AI assistant such as Claude Code or Codex to install it for you.

Authenticate

Before the CLI can pull data, sign in. This opens your browser so you approve access on a consent screen, and you never paste a password into the terminal.

landbase-cli auth login

Approve the screen, using the same account you use for the web app, so your work lives in one place. Then confirm you are signed in:

landbase-cli auth status

If it shows your account, you are ready. To switch accounts, run landbase-cli auth logout and sign in again.

Connect your CRM

If you want Landbase to work with records you already have, connect your CRM. You link HubSpot or Salesforce from the CLI, through your AI assistant, with a one-time browser sign-in. This is a CLI capability today, since the web app cannot connect a CRM yet.

Reading lets Landbase pull from your CRM, for example to remove duplicates from a new list by checking it against records you already have, or find companies similar to the deals you have already won. Writing lets Landbase add to your CRM, for example to push new enriched contacts. Start with reading, confirm a small pull, then allow writing when you are ready.

Smoke-test your setup

Before you rely on the CLI, run a quick check that confirms install, sign-in, and access. Both commands are read-only and change nothing.

landbase-cli --version
landbase-cli auth status

A version number plus your account means you are ready to build, and Base Camp setup is complete. Run these any time something feels off.

Tip
Command not found almost always means a PATH issue, not a failed install. Reopen your terminal first, then add the install folder to your PATH if needed.

Ready to try it yourself?

Create a free account and get 1000 credits to build your first list.

Get started →