Consume with the CLI
The product CLI copies repositories the way git copies code. You get every table as Parquet, verified against its SHA-256, at any revision. The commands below are the ones a consumer needs; CLI reference lists all of them.
Which hub
product hub show # the current hub and where the setting comes from
product hub use staging # remember it (in ~/.config/product/config.toml)product://<ns>/<repo> always means "on the current hub". A full URL works anywhere, e.g. https://api-staging.product.cloud/acme/power-tools-eu, and so does the web address https://staging.product.cloud/acme/power-tools-eu. PRODUCT_API_URL overrides the setting for one shell.
Get a repository
product get # guided: pick repository and revision
product get acme/power-tools-eu # main, into ./power-tools-eu
product get acme/power-tools-eu --revision 2026.09 --into tools-2026-09product get is the guided form of product clone and prints the clone command it ran:
product clone https://api-staging.product.cloud/acme/power-tools-eu@2026.09 power-tools-eu| Revision | Meaning |
|---|---|
@2026.09 | a release (immutable tag) |
@main | the latest state of the main branch |
@sha256:<64 hex> | one exact commit (checksum pinning) |
A clone holds:
power-tools-eu/
product.yaml the repository's machine contract (kind, schema, license)
README.md the Product Data Card
data/*.parquet every table, sharded for large tables (products-0000.parquet, …)
.product/ history, refs, and objects (do not edit)Objects are shared through a cache (~/.cache/product), so a second clone of the same data downloads nothing.
Work with the data
duckdb -c "SELECT brand, count(*) FROM read_parquet('power-tools-eu/data/products*.parquet') GROUP BY 1 ORDER BY 2 DESC"
python -c "import polars as pl; print(pl.read_parquet('power-tools-eu/data/attributes*.parquet').head())"Tables per repository kind:
| Kind | Tables |
|---|---|
| product | products (one row per product key), attributes (key, property, language, value, unit; spec 0.2 adds market and provenance), erasures (0.2) |
| classification | classes, class_labels, properties, class_properties, values |
| mapping | mappings |
| rulepack | rules |
| transform | transform_rules, transform_lookups, transform_pins |
Every value is a UTF-8 string. Units are kept as published, and normalized values are added alongside the originals, never in their place. See Formats.
Stay current
product -C power-tools-eu fetch # download new commits and releases (refs under origin/)
product -C power-tools-eu pull # fast-forward a clone of a branch (not a pinned release)
product -C power-tools-eu log # history
product -C power-tools-eu diff 2026.08..2026.09 --entity product # what changed, semantically
product -C power-tools-eu verify # re-check every object's SHA-256A clone of a release (@2026.09) is pinned. fetch shows new releases, and product get downloads one.
Numbers and overview
product stats acme/power-tools-eu # records, size, tables, releases, top brands and categories
product -C power-tools-eu stats # the same for your clone, with how it compares to the hub
product dashboard # full screen: all repositories, you, what's newSynchronize into another system
product sync applies the changes between two revisions to a target, idempotently and with a checkpoint. Today the target is a directory with one JSON document per product. Your own importer can read from there.
product -C power-tools-eu sync plan --target dir:./mirror --checkpoint .product/checkpoints/mirror.json
product -C power-tools-eu sync run --target dir:./mirror --checkpoint .product/checkpoints/mirror.jsonFor services, read the change feed directly instead: see Changes & sync.
Scripts and CI
--format jsonprints machine-readable results on stdout and RFC 9457 problems on stderr. Interactive prompts, colors, and update notices are off.Exit codes:
0success,1error,2usage,3invalid input (validation, import),4conflict,5not found,6incomplete (e.g. a transform with unresolved fields).product --helplists them.Signed-in scripts and CI: create a personal access token once (
product token create ci) and store it as a CI secret namedPRODUCT_TOKEN. Every command uses it. See Personal access tokens.On your own machine
product auth tokenprints a 10-minute access token of your session; long CLI transfers refresh it automatically.Rate limits: 1200 reads and 240 writes per minute per caller. The CLI waits and retries when it is limited.
When something fails
product doctor # version, hub, sign-in, credential store, cache, clockErrors print their code and a link, for example More: https://staging.product.cloud/docs/errors#product-unauthenticated.