Find audiences with natural language
Use the CLI when you want Landbase to build a company or people audience from a plain-English request.search command:- Find companies or contacts that match a market, role, location, industry, or signal.
- Save the results to a local file.
- Pass the dataset into another script, notebook, dashboard, or app.
Use Advanced Dataset Creator for precise audiences
Most searches can use the default agent. When you need custom SQL, aggregations, exact filters, ratios, or output columns, use--agent=advanced_dataset_creator.Advanced Dataset Creator is especially useful for searches like:- Companies where one team’s headcount is low relative to another team’s headcount.
- Accounts from an uploaded list that match a computed condition.
- Rankings, counts, or breakdowns that need aggregation.
- Prospect lists where the output columns need to be defined in the prompt.
Keep refining the same search
Add--session=<label> when you want follow-up prompts to continue the same conversation.Download results in the format you need
The--download flag writes search results to disk. If you do not pass a path, it defaults to ./results.jsonl.The file extension controls the output:| Extension | What happens |
|---|---|
.jsonl | Publishes to JSONL.gz, then unzips it into a ready-to-read JSONL file. |
.jsonl.gz | Publishes to compressed JSONL and keeps it compressed. |
.csv | Publishes to CSV and downloads the published file. |
.parquet | Downloads the native dataset bytes directly, without a publish step. |
Match a person or company
Usematch when you have one record and want Landbase to find the best corresponding person or company.Enrich a record
Useenrich when you already have a person or company identifier and want more fields back.Enrich contacts with email and phone
Usecontact-enrich when you have a batch of leads and want asynchronous contact enrichment for emails, phone numbers, or both.enrich: enrich is a synchronous single-record lookup for person and company attributes, while contact-enrich starts a batch job and gives you a request_id.Each lead should include either a LinkedIn URL or a name plus a company anchor:| Input | Use it when |
|---|---|
.json | You have a single JSON object or an array of lead objects. |
.jsonl or .ndjson | You have one lead object per line. |
- | You want to pipe leads from another command through stdin. |
--enrich-phone when you also want phone numbers, or use --no-enrich-email --enrich-phone for phone-only enrichment.Add --wait when you want the CLI to poll until the batch reaches a terminal status. The default polling ceiling is about 10 minutes, and you can override it with --timeout=<seconds>. If the wait times out or is interrupted, the error includes the request_id, so you can resume with:Upload your own spreadsheet
Useupload to bring a CSV or Excel file into Landbase as a dataset.Manage datasets
Use dataset commands when you need to list, inspect, download, trace, or delete datasets in your workspace.lineage is especially useful after workflows because it helps you find the child dataset created by a publish, enrich, match, onboard, or sketch run.Run batch workflows
Useworkflow commands when you want Landbase to process an existing dataset.--wait when you want the command to block until the workflow completes. Without --wait, the CLI returns a workflow run ID that you can poll with workflow status.Chain commands into a full pipeline
A typical workflow is upload, onboard, publish, find the published child dataset, and download it.contact-enrich:Inspect previous agent runs
Useruns when you need to review prior agent runs for a session.--session, or use the raw session_id returned by a search response.Authenticate and stay current
Useauth to sign in, check which key is active, paste an API key, or clear the locally stored key.update to self-update to the latest release:Read outputs safely
Search commands return a structured response with fields such asrun_id, session_id, status, content, dataset_id, and created_at.Other commands return the relevant endpoint JSON directly. When you only need a single value, pipe the output through jq:Common options
| Option | Use it when |
|---|---|
--download[=<path>] | You want search results saved locally. |
--session=<label> | You want follow-up searches to continue the same conversation. |
--agent=advanced_dataset_creator | You need custom SQL, aggregations, exact filters, ratios, or custom output columns for a search. |
--format=json or --format=table | You want JSON output or a prose-only table view for search. |
--timeout=<seconds> | You need to raise or lower the request timeout. |
--verbose | You want request and response details printed to stderr. |
--wait | You want workflow commands or contact-enrich submit to wait until processing finishes. |
--yes | You are confirming a destructive dataset delete. |
--no-update-check | You want to skip the daily update check for this command. |
Failure codes
| Exit code | Meaning |
|---|---|
0 | Success. |
1 | The command needs a caller fix, such as different flags or a required confirmation. |
2 | The API returned an error, a resource was missing, a publish was required, or a download failed. |
3 | Authentication failed or no active key was available. |
4 | A network or timeout issue occurred. |
error.code.
