Workflows vs. direct commands
landbase-cli has two ways to process data: direct commands and workflow commands. They serve different purposes and are not interchangeable.Direct commands
Direct commands (enrich, match, contact-enrich) operate on one record or a small batch and return results immediately or after a short async wait.
- You have one record or a handful of records
- You need results right now (synchronous or short async)
- You do not need the results saved as a dataset in your Landbase workspace
- You are piping output to another command
Workflow commands
Workflow commands (workflow match, workflow enrich, workflow publish, etc.) operate on an existing Landbase dataset — a file you have already uploaded, or a dataset created by a previous search or workflow.
- You have a dataset of many records (hundreds or thousands of rows)
- You want the results saved back into your Landbase workspace
- You want dataset lineage — a traceable chain of input → processed → output
- You need to run multiple processing steps in sequence (onboard → match → enrich → publish)
The key difference: dataset lineage
Workflow commands produce child datasets. Every time you run a workflow on a dataset, Landbase creates a new dataset linked to the original. This lets you:- Trace the provenance of any dataset (what was it created from?)
- Re-run a step without re-uploading
- Download any intermediate result
Side by side
| Direct commands | Workflow commands | |
|---|---|---|
| Input | One record or small batch | Existing dataset (by ID) |
| Output | JSON to stdout | New child dataset in workspace |
| Async | No (enrich/match) or short wait | Yes, can take minutes |
| Lineage | No | Yes |
| Best for | One-off lookups, piping | Bulk processing, pipelines |
When to use which
Use direct commands for ad hoc lookups during research, or when piping output to another command. Use workflow commands when you have uploaded data and want to process it in Landbase, track the results, and download them in a structured format. Many pipelines combine both: a directmatch to verify a single candidate, then workflow enrich to enrich a full uploaded dataset.

