Skip to content
Sign in

Publishing

Most teams on staging consume data. If you publish, the workflow is local-first: you build commits on your machine and push them to the hub.

Prefer the browser? product.cloud Studio turns a CSV or Excel file into a repository without a terminal. Your files stay on your device, and it produces the same commits as the CLI.

product auth login
product repo create product://acme/power-tools-eu --kind product --access restricted --description "ACME power tools"
mkdir power-tools-eu && cd power-tools-eu
product init acme/power-tools-eu --kind product        # writes product.yaml, README.md, data/, .product/
product import csv catalog.csv                          # or: bmecat catalog.xml, jsonl/parquet --table <name>
product validate                                        # schema checks (add --rules <ns/repo> for a rulepack)
product commit -m "Publish September 2026 catalog"
product remote add origin product://acme/power-tools-eu
product push origin main
  • product repo create: the namespace must exist and you must be a maintainer of it. product org create <name> creates an organization owned by you.

  • product push: uploads only the objects the hub does not have. The hub verifies every digest before it moves the branch. A concurrent change is refused with PRODUCT-REF-CONFLICT; fetch, integrate, and push again.

  • Analysis: after a push, the hub analyzes the commit (diff, validation, explorer indexes). Pages say "pending" until it is done.

Releases

A release is an immutable tag on a pushed commit. Create it on the hub:

COMMIT=$(product log --format json | jq -r '.[0].commit')
curl -s -X PUT "https://api-staging.product.cloud/v1/repos/acme/power-tools-eu/refs/tags/2026.09" \
  -H "Authorization: Bearer $(product auth token)" -H 'content-type: application/json' \
  -d "{\"target\": \"$COMMIT\"}"

product tag 2026.09 names a commit locally. product push moves branches only, not tags.

Change proposals and reviews

Anyone signed in can propose a change; maintainers merge it after review (ADR-0090).

product propose -t "EC001234 is an exact match" --type mapping-change \
  --evidence https://example.org/harmonization-2025.pdf   # pushes your branch and opens the proposal
product proposals acme/power-tools-eu --state in-review
product review approve acme/power-tools-eu 7 -m "Matches the datasheet"
product review request-changes acme/power-tools-eu 7 -m "Which edition?"
  • Types: claim-correction and mapping-change need evidence (an ev_… id or an https URL) or a test case; extension and usability do not.

  • Acceptance: one approval from a maintainer other than the author, unless product.yaml has a review block. Approvals bind to the head they saw: a new push makes them stale. Checks passing is never a review.

  • Owners of single-maintainer repositories approve their own proposal with product review approve … --override -m "<reason>"; the override is recorded and shown.

  • Released: a merged proposal is released, and credited, when a release tag contains it.

Formats and contract

See Formats for the import formats and the canonical tables. product contract set changes product.yaml of a published repository without a clone, e.g. its sharding or explorer filters.

Declare what your repository covers (about)

Add an optional about block to product.yaml so consumers can judge the repository before they read it. Every field is optional; leave out what you don't know rather than guessing.

about:
  languages: [de, en, nl]                 # BCP 47 tags
  markets: [DE, AT, NL]                   # ISO 3166-1 alpha-2 codes, or EU, or global
  standards:
    - {scheme: etim, version: "10.0"}
  coverage: "EU sellable units of professional power tools; accessories excluded"
  limitations: ["NL labels partially translated", "No packaging hierarchy"]
  maintainers: [{handle: acme-data, role: lead}]
  cadence: monthly                        # none, ad-hoc, weekly, monthly, quarterly or yearly
  contact: "https://acme.example/data-support"
  • Validation. product validate reports malformed codes, an unknown cadence, a standard declared twice, more than 20 entries in a list, or a text over 500 characters as errors. Unknown keys are refused.

  • Publishing a change. Edit product.yaml, then commit and push, or apply it to the published repository without a clone: product contract set product.yaml --remote product://acme/power-tools-eu.

  • Public, even for restricted repositories. These are statements about the repository, shown like its card to anyone who can see that it exists. Keep licensed values out of them: no product names, identifiers or prices.

  • Studio asks for languages, markets, standards, coverage and limitations when it creates a repository.

The repository's overview shows the declared coverage and limitations, and "Not specified" for anything you left out.