- Find and refine an audience, then save it for analysis.
- Match or enrich records, including contact email and phone enrichment.
- Process your own data, from upload through workflow and download.
- Import contacts, after choosing an account.
- Automate repeated work with sessions, scripts, and structured JSON.
Find audiences with natural language
Use the CLI when you want Landbase to build a company or people audience from a plain-English request.- 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 mode. When you need custom SQL, aggregations, exact filters, ratios, or output columns, use--mode=research to run 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:Published files can take a few minutes because Landbase runs a publish workflow before the download is ready.
Match a person or company
Usematch when you have one record and want Landbase to find the best corresponding person or company.Choose an enrichment path
Choose the command based on the input you have and where you want the result to go:Use
enrich for one-off lookups, workflow contact-enrich for contact discovery, and workflow enrich when you need repeatable, dataset-scale processing. The commands are not interchangeable: they accept different inputs and produce different kinds of output.Enrich a record
Useenrich when you already have a person or company identifier and want more fields back.Enrich contacts with email and phone
Use the dataset workflow when you have a dataset of known contacts and want asynchronous email or phone enrichment. The removedcontact-enrich submit|get command no longer accepts raw JSONL leads; see the migration reference.operation.workflow_run_id). workflow wait blocks until that run finishes and prints the new dataset as output_dataset_id. Use that ID, not the input ID, in the next step.Both email and phone enrichment run by default. Use --enrich-phone for phone-only opt-in behavior, or use the explicit --enrich-email and --enrich-phone flags when selecting channels. The workflow creates an enriched child dataset. Wait for it, publish it, then download the published dataset:--overwrite-existing to replace existing contact values. Use --row-slice=START:END to process a half-open slice of rows; run slices serially and recombine them with workflow union without dedupe keys.Upload your own spreadsheet
Useupload to bring a CSV or Excel file into Landbase as a dataset..id). Run workflow onboard on that ID first. Then use the onboarded dataset’s output_dataset_id, not the upload ID, for workflows such as match, enrich, and publish.Select an account, onboard, and import contacts
In platform mode (the default), some commands run against a specific Landbase account. Pick which account the CLI uses, fill in its onboarding profile, and bulk-import contacts from a dataset.First, sign in and choose the account. Runaccount set with no arguments to pick from a list — your choice is saved, so this is a one-time step per machine:get to see which fields are still needed, then submit a partial payload:--watch blocks until the import finishes and prints a summary of what landed:--account=<id>.Write and push outreach messages
Useworkflow generate-messages to write a personalized email sequence for every row of a people dataset. Each row gets its own subject_1..N and body_1..N columns in a new output dataset.workflow match first. To set the offer, angle, and tone, pass --instruction together with --context-cols (the columns the writer can see). Use --num-messages to choose 1 to 5 emails per sequence.Beta: workflow instantly-push creates a draft campaign in your connected Instantly workspace from the generate-messages output:integrations list --provider=instantly and the sender addresses from integrations senders <integration-id>. Each lead needs an email address, so run workflow contact-enrich first if your rows do not have one. Review the draft and launch it in Instantly. See the workflow reference for all flags.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 trace the child datasets created by publish, enrich, match, and onboard runs.Run batch workflows
Useworkflow commands when you want Landbase to process an existing dataset.{ "operation": { "workflow_run_id", "workflow_name", "dataset_id" }, ... }, where dataset_id is the input. Use workflow status <workflow-run-id> for one snapshot, or workflow wait <workflow-run-id> to block until the run finishes.Every workflow writes a new dataset and does not change its input. workflow wait prints that new dataset as output_dataset_id. Pass it, not the input ID, to the next step.Chain commands into a full pipeline
A typical pipeline is upload, onboard, publish, and download. Save this as a script and run it withbash. The step helper starts a workflow, waits for it, and prints its output_dataset_id for the next step:workflow contact-enrich on the onboarded dataset. Use workflow wait to recover the output dataset ID before continuing to publish or download.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.LANDBASE_S2S_API_KEY=lbk_… instead of signing in. The CLI reads the key from the environment and does not store it. See How to automate landbase-cli in scripts and CI.Add --force to re-authenticate even when a valid session already exists — useful when a stale session keeps causing errors.Use 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
Failure codes
Errors are printed to stderr as JSON so agents and scripts can branch on
error.code.
