CLI Tour
Audience: new CLI users who want a map of the pulse command tree.
pulse --help lists the command groups and pulse <group> --help a
group’s leaves. The generated
Command & flag reference has every leaf, flag and
default. This page groups the commands by task and links each group to its
chapter. Your First Analysis is a full import, predict,
process and export run.
LLM agents using MCP: agents drive Pulse through MCP tools, not the CLI. Start at the
session-bootstrapskill.
Commands by task
| Task | Commands | Read |
|---|---|---|
| Bring data in | import <format> (csv, tsv, ndjson, jsonarray, parquet, arrow, excel, spss), import schema-template, import predict, import transfer | Your First Cohort, import spss, Transfer Compression |
| Managed import pool | import auto SOURCE (TTL sidecar, --ttl 7d by default, pin to keep), import list, import drop HANDLE, all under PULSE_IMPORTS_DIR | Options |
| Take data out | export <format> (the same formats, plus transfer), export predict, convert SOURCE TARGET | export spss, --labels |
| Find the data | cohorts (every .pulse file under the data directory, with its fields), examples data --out DIR (writes the example cohorts the examples and the Analysis Guide read) | Get the data |
| Look at a cohort | cohort inspect (header only, never reads records), api sample, api facet | cohort inspect, api sample, api facet |
| Run requests | api process, api compose, api process-chain, api lookup | api process, api compose, api lookup |
| Validate without running | api predict, api predict-compose, api predict-facet, api predict-chain | api predict |
| Write a derived cohort | cohort filter, api materialize, rake, dedup | Filter to File, Materialize, Raking, Parent Groups |
| Change a cohort in place | cohort zone, widen, shard create / add / remove / list / extract / verify / compact, index build / list / verify / drop | Time Zones, Managing Shard Archives, Point Lookup |
| Generate synthetic data | synth from-schema, synth from-profile, profile create | synth from-schema, synth from-profile, profile create |
| Pick and read an analysis | recommend --intent ID --cohort PATH (draft requests for a question kind), explain (a request or a saved response in plain words) | Analysis Guide |
| Discover what Pulse offers | pulse --json (the manifest), schema, skills list / show, examples search / show, errors lookup / list, docs export | manifest, schema, Examples Library |
| Restrict an instance | features init / check / diff / show | Feature Profiles |
| Serve agents | mcp | pulse mcp, MCP Integration |
| Housekeeping | version, completion | completion |
A .pulse path may be a single file or a shard archive (a Zip64 of
shards plus a _schema.pulse entry). Every command reads a shard archive
as the union of its shards; archive.pulse#shard.pulse opens one shard.
Pipeline order
Inside one request, operators run in a fixed order:
Load -> Features -> Filter -> Attributes -> Group -> Aggregate -> Windows -> Sort -> Output
Each stage’s operators are in the catalog: Features (derived columns), Filter, Attributes (per-row values such as a date part), Group, Aggregate and Windows (row-to-row figures such as a lag or running total). Features run before filterers, so a derived column can be a filter, group, attribute or window input. Windows run after aggregation, on the aggregated rows. A name exists only downstream of the operator that makes it.
Shared flags
- Global:
--json(the manifest),--slim,--intent,--log-level,--limit,--memory-limit, worker counts. --jsonon a leaf prints the envelope (--jsonenvelope).--echo-request(theapileaves) puts the normalized request on the envelope’srequest.--no-defaults(api process,api compose,api process-chain) turns off smart defaults.
Semantics: CLI concepts & shared flags. The one
required environment variable is PULSE_DATA_DIR
(Installation).