Skip to content
Sign in

CLI reference

Generated from product itself; product <command> --help shows the same. Global options (-C <DIR>, --format human|json, --log-format, --timings) work with every command.

CommandWhat
product setupSet up this machine: choose the hub, sign in, see what you can reach
product getDownload a repository (guided when no repository is given): product get ns/repo
product dashboardThe hub at a glance, full screen: repositories, numbers, you, and what's new
product statsNumbers about a repository: rows, size, releases, top brands and categories
product searchSearch a hub by intent: a GTIN, a class code, mpn:…, ns/repo, or words (ADR-0089)
product access requestAsk a restricted repository's maintainers for access (guided on a terminal)
product access listShow your access state; maintainers also see requests and grants
product access grantGrant every member of an organization access, without a request (maintainers)
product access revokeEnd an organization's or a person's access (maintainers)
product access approveApprove a request (maintainers)
product access denyReject a request (maintainers)
product updateInstall the latest release of this CLI (signed; checked against the release channel)
product whats-newWhat is new in this version, and in newer releases not yet installed
product hub showShow the current hub, where the setting comes from, and its endpoints
product hub useRemember a hub for product:// URLs and sign-in: staging, prod, or a URL
product doctorCheck this setup (version, hub, sign-in, cache, clock) and say how to fix problems
product docsOpen the docs in the browser (or print the URL): product docs cli, product docs errors
product completionsPrint a shell completion script: product completions zsh > ~/.zfunc/_product
product initCreate a repository: product.yaml, README.md, data/, and .product/
product importConvert an external format into canonical Parquet tables under data/
product validateValidate the working tables, optionally against a rulepack repository's rules
product statusShow HEAD and whether the working tree differs from it
product commitRecord the working tree as a new immutable commit on the current branch
product logShow first-parent history
product tagCreate an immutable tag (release name) for a revision
product diffSemantic diff between two revisions: A..B, or one revision against its parent
product changesRead the change feed (JSON page, as served by GET /v1/repos/{ns}/{repo}/changes)
product sync planShow what a run would apply, without changing the target
product sync runApply pending changes idempotently and advance the checkpoint
product exportWrite the downloaded tables as CSV or JSON Lines (locally, from data/*.parquet)
product verifyVerify every object reachable from a revision
product conformance exportPrint the reference state digest and event ids of a revision as JSON; a consumer that landed the same revision must report identical values
product connectorCertify a connector against a local hub and a scripted network (ADR-0070): test, certify, doctor. Runs the product-connector tool installed next to product
product transform planShow applicable rules, target fields, and expected gaps, without running, and the plan's local digest (pass it to run --plan)
product transform runRun the rules; write target tables, lineage.jsonl, and report.json to --out
product auth loginSign in through the browser (or with --device on a headless machine)
product auth statusShow who is signed in (refreshes the session)
product auth tokenPrint a fresh access token of the stored session, for scripts: PRODUCT_TOKEN=$(product auth token --hub https://api-staging.product.cloud). The token is short-lived and never stored; PRODUCT_TOKEN is ignored here
product auth logoutRevoke the stored session and remove it from the keychain
product asset addAdd (or replace) a file, with its rights: product asset add datasheet.pdf --id mx-550 --license LicenseRef-ACME --may-extract --may-redistribute
product asset linkSay what a file is evidence for: a product key (and property) of a repository
product asset getWrite a file of this repository out
product repo createCreate a repository, e.g. product repo create product://acme/power-tools-eu
product org createCreate an organization and become its owner
product org member addAdd someone or change their role (owners and admins)
product org member listList members and roles (members only)
product org member removeRemove someone (owners and admins), or yourself to leave
product org service-account createCreate a read-only service account and write its private key file (owners and admins)
product org service-account listList the organization's service accounts (owners and admins)
product org service-account disableDisable an account; its assertions stop working on the next request
product org service-account rotateReplace an account's key: writes a new key file and invalidates the old key
product org service-account tokenPrint a fresh assertion (five minutes) for tools that take a bearer token
product org service-account grantLet an account publish to one repository: objects, main and tags only (ADR-0097). Needs the owner of the repository's namespace; the account also needs write enabled
product org service-account revokeRemove an account's publisher grant on a repository
product org service-account show-grantShow an account's publisher grant on a repository
product org service-account scopesEnable or disable the write scopes of an account (organization owners only)
product token createCreate a token (shown once). Read-only unless you pass --scope
product token listList your tokens (never their secrets)
product token revokeRevoke a token; it stops working within a minute
product remote addAdd a remote: product remote add origin file:///srv/remotes/acme
product remote listList remotes
product contract setApply a new product.yaml to a remote's main branch. Tables whose sharding threshold changes are downloaded and cut again (same rows, no diff); every other shard is kept
product pushUpload the objects a remote is missing, then move its branch (compare-and-set)
product proposePropose a change to a hub repository (ADR-0090). In a clone, pushes the current branch first (from main, to a new proposal-<you>-<title> branch) and opens a proposal
product review approveApprove the proposal's current head
product review request-changesAsk for changes before the proposal can be accepted
product review commentComment without a verdict
product proposalsList a repository's change proposals with their state, type and author
product fetchDownload missing objects and update remote-tracking refs
product pullFetch, then fast-forward the branch and working tree
product cloneCreate a repository from a remote

product setup

Set up this machine: choose the hub, sign in, see what you can reach

product setup

product get

Download a repository (guided when no repository is given): product get ns/repo

product get [OPTIONS] [REPOSITORY]
ArgumentDescription
<REPOSITORY>Repository, e.g. acme/power-tools-eu (asked for when missing)
--revisionRelease tag, branch, or commit (default: asked, or main)
--intoDestination directory (default: the repository's name)

product dashboard

The hub at a glance, full screen: repositories, numbers, you, and what's new

product dashboard

product stats

Numbers about a repository: rows, size, releases, top brands and categories

product stats [REPOSITORY]
ArgumentDescription
<REPOSITORY>ns/repo, or . (default) for the clone you are in

Search a hub by intent: a GTIN, a class code, mpn:…, ns/repo, or words (ADR-0089)

product search [OPTIONS] <QUERY>
ArgumentDescription
<QUERY>What to look for, e.g. 04012345678901, EC000031, acme/power-tools-eu, cordless drill
--hubHub API URL (default: the configured hub)
--jsonPrint the hub's product.cloud/search@1 response unchanged

product access request

Ask a restricted repository's maintainers for access (guided on a terminal)

product access request [OPTIONS] <REPOSITORY>
ArgumentDescription
<REPOSITORY>Repository, e.g. marketplace/icecat-open-catalog
--purposeWhy you need the data (shown to the maintainers)
--organizationOrganization you request it for (informational)
--for-orgRequest it for every member of this organization (you must be its owner or admin)

product access list

Show your access state; maintainers also see requests and grants

product access list <REPOSITORY>
ArgumentDescription
<REPOSITORY>

product access grant

Grant every member of an organization access, without a request (maintainers)

product access grant [OPTIONS] --org <ORG> <REPOSITORY>
ArgumentDescription
<REPOSITORY>
--org
--expiresWhen the grant ends (RFC 3339, e.g. 2027-06-30T00:00:00Z); default: no end

product access revoke

End an organization's or a person's access (maintainers)

product access revoke [OPTIONS] <REPOSITORY>
ArgumentDescription
<REPOSITORY>
--org
--user

product access approve

Approve a request (maintainers)

product access approve [OPTIONS] <REPOSITORY> <REQUEST>
ArgumentDescription
<REPOSITORY>
<REQUEST>Request id from product access list
--reason

product access deny

Reject a request (maintainers)

product access deny [OPTIONS] <REPOSITORY> <REQUEST>
ArgumentDescription
<REPOSITORY>
<REQUEST>
--reason

product update

Install the latest release of this CLI (signed; checked against the release channel)

product update [OPTIONS]
ArgumentDescription
--checkOnly report whether an update is available
--forceReinstall even when this version is the latest

product whats-new

What is new in this version, and in newer releases not yet installed

product whats-new [OPTIONS]
ArgumentDescription
--sinceShow every release newer than this version
--allShow all releases

product hub show

Show the current hub, where the setting comes from, and its endpoints

product hub show

product hub use

Remember a hub for product:// URLs and sign-in: staging, prod, or a URL

product hub use <HUB>
ArgumentDescription
<HUB>staging, prod, or a hub URL such as http://localhost:8787

product doctor

Check this setup (version, hub, sign-in, cache, clock) and say how to fix problems

product doctor

product docs

Open the docs in the browser (or print the URL): product docs cli, product docs errors

product docs [TOPIC]
ArgumentDescription
<TOPIC>Page, e.g. quickstart, cli, api, errors, restricted-data

product completions

Print a shell completion script: product completions zsh > ~/.zfunc/_product

product completions <SHELL>
ArgumentDescription
<SHELL>One of bash, elvish, fish, powershell, zsh.

product init

Create a repository: product.yaml, README.md, data/, and .product/

product init [OPTIONS] <REPOSITORY>
ArgumentDescription
<REPOSITORY>Repository as <namespace>/<name>
--kindRepository kind One of product, classification, mapping, rulepack, transform, asset. Default product.
--specRepository specification version. 0.2 adds assertion time, market, method, and qualifier columns and an erasures table to product repositories (ADR-0052). 0.3 also adds property labels, definitions, synonyms, units, status, relations, and per-class value lists to classification repositories (ADR-0064). 0.4 adds asset repositories, which publish files with per-file rights (ADR-0083). 0.5 lets asset repositories hold editorial article and ledger files (ADR-0104) One of 0.1, 0.2, 0.3, 0.4, 0.5. Default 0.1.

product import

Convert an external format into canonical Parquet tables under data/.

Product repositories: csv and bmecat import a whole catalog; jsonl and parquet import one table (--table products|attributes, inferred if omitted). Classification and mapping repositories: csv, jsonl, or parquet with --table.

product import [OPTIONS] <FROM> <FILE>
ArgumentDescription
<FROM>One of csv, bmecat, jsonl, parquet.
<FILE>
--tableThe canonical table to replace, e.g. classes or mappings
--recipeA product.cloud Studio import recipe (product.cloud/ingestion-recipe@1) that says how to read and map the file (CSV or XLSX; ADR-0080)
--upsertWith --recipe: merge onto HEAD instead of replacing the catalog. Absent products are kept; only the recipe's explicit removals remove (ADR-0079)
--joinWith --recipe: an additional file the recipe joins ("file": 0 is the first --join)

product validate

Validate the working tables, optionally against a rulepack repository's rules

product validate [OPTIONS]
ArgumentDescription
--rulesLocal rulepack repository whose HEAD rules are applied (product repositories)

product status

Show HEAD and whether the working tree differs from it

product status

product commit

Record the working tree as a new immutable commit on the current branch

product commit --message <MESSAGE>
ArgumentDescription
--message

product log

Show first-parent history

product log

product tag

Create an immutable tag (release name) for a revision

product tag <NAME> [REVISION]
ArgumentDescription
<NAME>
<REVISION>

product diff

Semantic diff between two revisions: A..B, or one revision against its parent

product diff [OPTIONS] <RANGE>
ArgumentDescription
<RANGE>
--entityOnly show changes for this entity One of product, attribute, class, class-label, property, class-property, value, mapping, rule, transform-rule, transform-lookup, transform-pin, erasure, property-label, value-label, class-property-value, class-synonym, unit, relation.

product changes

Read the change feed (JSON page, as served by GET /v1/repos/{ns}/{repo}/changes)

product changes [OPTIONS]
ArgumentDescription
--after
--limitDefault 1000.

product sync plan

Show what a run would apply, without changing the target

product sync plan [OPTIONS] --target <TARGET> --checkpoint <CHECKPOINT>
ArgumentDescription
--targetTarget, e.g. dir:./export
--checkpointCheckpoint file (created on first run)
--revisionRevision to synchronize up to Default HEAD.

product sync run

Apply pending changes idempotently and advance the checkpoint

product sync run [OPTIONS] --target <TARGET> --checkpoint <CHECKPOINT>
ArgumentDescription
--targetTarget, e.g. dir:./export
--checkpointCheckpoint file (created on first run)
--revisionRevision to synchronize up to Default HEAD.
--batchDefault 500.

product export

Write the downloaded tables as CSV or JSON Lines (locally, from data/*.parquet)

product export [OPTIONS]
ArgumentDescription
--toOne of csv, jsonl. Default csv.
--tableOnly these tables (repeatable); default: all
--outOutput directory (default: <repository>/export)

product verify

Verify every object reachable from a revision

product verify [REVISION]
ArgumentDescription
<REVISION>

product conformance export

Print the reference state digest and event ids of a revision as JSON; a consumer that landed the same revision must report identical values

product conformance export [OPTIONS]
ArgumentDescription
--revisionRevision to export (default HEAD)

product connector

Certify a connector against a local hub and a scripted network (ADR-0070): test, certify, doctor. Runs the product-connector tool installed next to product

product connector [ARGS]...
ArgumentDescription
<ARGS>

product transform plan

Show applicable rules, target fields, and expected gaps, without running, and the plan's local digest (pass it to run --plan)

product transform plan [OPTIONS] --rules <DIR> --target <DIR>
ArgumentDescription
--rulesLocal transform repository whose HEAD rules are applied
--targetLocal classification repository holding the release the rules pin
--revisionSource revision to translate Default HEAD.
--include-draftsAlso apply rules that are not published (previews only)

product transform run

Run the rules; write target tables, lineage.jsonl, and report.json to --out.

Target tables are written only if every required target field is filled, or with --accept-partial. The report and lineage are always written.

product transform run [OPTIONS] --rules <DIR> --target <DIR> --out <DIR>
ArgumentDescription
--rulesLocal transform repository whose HEAD rules are applied
--targetLocal classification repository holding the release the rules pin
--revisionSource revision to translate Default HEAD.
--include-draftsAlso apply rules that are not published (previews only)
--outOutput directory (created if missing)
--accept-partialWrite the target tables even if required fields are unresolved (exit 0)
--planRun only if the inputs still give this plan (the local digest transform plan printed); otherwise exit 4 with PRODUCT-PLAN-STALE

product auth login

Sign in through the browser (or with --device on a headless machine)

product auth login [OPTIONS]
ArgumentDescription
--deviceUse the device flow: enter a code on another device instead of opening a browser
--scopeScopes to request (space-separated) Default openid profile email offline_access repo:read repo:write artifact:read release:write sync:run org:read.
--issuerIdentity provider. Default: the issuer of the current hub (product hub show)

product auth status

Show who is signed in (refreshes the session)

product auth status [OPTIONS]
ArgumentDescription
--issuerIdentity provider. Default: the issuer of the current hub (product hub show)

product auth token

Print a fresh access token of the stored session, for scripts: PRODUCT_TOKEN=$(product auth token --hub https://api-staging.product.cloud). The token is short-lived and never stored; PRODUCT_TOKEN is ignored here

product auth token [OPTIONS]
ArgumentDescription
--hubThe hub API the token is for; selects its issuer (overrides --issuer)
--issuerIdentity provider. Default: the issuer of the current hub (product hub show)

product auth logout

Revoke the stored session and remove it from the keychain

product auth logout [OPTIONS]
ArgumentDescription
--issuerIdentity provider. Default: the issuer of the current hub (product hub show)

product asset add

Add (or replace) a file, with its rights: product asset add datasheet.pdf --id mx-550 --license LicenseRef-ACME --may-extract --may-redistribute

product asset add [OPTIONS] --id <ID> --license <LICENSE> <FILE>
ArgumentDescription
<FILE>
--idStable identifier of the file in this repository
--licenseThe file's own license (SPDX id or LicenseRef-…), separate from the repository license
--rolearticle and ledger (editorial repositories) need repository spec 0.5 One of source-document, excerpt, image, article, ledger. Default source-document.
--title
--language
--pages
--derived-fromFor an excerpt: the asset it was cut from
--may-extractYou have the right to extract values from this file
--may-redistributeYou have the right to redistribute this file
--note

Say what a file is evidence for: a product key (and property) of a repository

product asset link [OPTIONS] --target <TARGET> --key <KEY> <ID>
ArgumentDescription
<ID>
--targetproduct://namespace/repository
--key
--property
--language
--locatorWhere in the file, as JSON, e.g. {"page":1,"region":{…}} (studio-evidence@1 location)

product asset get

Write a file of this repository out

product asset get --output <OUTPUT> <ID>
ArgumentDescription
<ID>
--output

product repo create

Create a repository, e.g. product repo create product://acme/power-tools-eu

product repo create [OPTIONS] <URL>
ArgumentDescription
<URL>Hub URL: product://<ns>/<repo> or https://<hub>/<ns>/<repo>
--kindOne of product, classification, mapping, rulepack, transform, asset. Default product.
--accessOne of open, restricted, private, federated. Default open.
--descriptionDefault .

product org create

Create an organization and become its owner

product org create [OPTIONS] <NAME>
ArgumentDescription
<NAME>
--hubHub API URL (default: $PRODUCT_API_URL or https://api.product.cloud)
--display-name

product org member add

Add someone or change their role (owners and admins)

product org member add [OPTIONS] <ORG> <USER>
ArgumentDescription
<ORG>
<USER>User id (usr_…; product auth status shows yours) or their personal namespace name
--roleOne of member, maintainer, admin, owner. Default member.

product org member list

List members and roles (members only)

product org member list <ORG>
ArgumentDescription
<ORG>

product org member remove

Remove someone (owners and admins), or yourself to leave

product org member remove <ORG> <USER>
ArgumentDescription
<ORG>
<USER>

product org service-account create

Create a read-only service account and write its private key file (owners and admins)

product org service-account create [OPTIONS] <ORG> <NAME>
ArgumentDescription
<ORG>
<NAME>
--key-fileWhere to write the private key (default: ./<org>-<name>.sa.json; never overwritten)

product org service-account list

List the organization's service accounts (owners and admins)

product org service-account list <ORG>
ArgumentDescription
<ORG>

product org service-account disable

Disable an account; its assertions stop working on the next request

product org service-account disable <ORG> <ID>
ArgumentDescription
<ORG>
<ID>

product org service-account rotate

Replace an account's key: writes a new key file and invalidates the old key

product org service-account rotate --key-file <KEY_FILE> <ORG> <ID>
ArgumentDescription
<ORG>
<ID>
--key-file

product org service-account token

Print a fresh assertion (five minutes) for tools that take a bearer token

product org service-account token --key-file <KEY_FILE>
ArgumentDescription
--key-file

product org service-account grant

Let an account publish to one repository: objects, main and tags only (ADR-0097). Needs the owner of the repository's namespace; the account also needs write enabled

product org service-account grant [OPTIONS] <ORG> <ID> <REPOSITORY>
ArgumentDescription
<ORG>
<ID>
<REPOSITORY>The repository, <namespace>/<repository>
--expires-atRFC 3339 expiry (optional)

product org service-account revoke

Remove an account's publisher grant on a repository

product org service-account revoke <ORG> <ID> <REPOSITORY>
ArgumentDescription
<ORG>
<ID>
<REPOSITORY>

product org service-account show-grant

Show an account's publisher grant on a repository

product org service-account show-grant <ORG> <ID> <REPOSITORY>
ArgumentDescription
<ORG>
<ID>
<REPOSITORY>

product org service-account scopes

Enable or disable the write scopes of an account (organization owners only)

product org service-account scopes --write <WRITE> <ORG> <ID>
ArgumentDescription
<ORG>
<ID>
--writetrue adds repo:write release:write; false keeps the account read-only One of true, false.

product token create

Create a token (shown once). Read-only unless you pass --scope

product token create [OPTIONS] <NAME>
ArgumentDescription
<NAME>A name that says where the token is used, e.g. "ci-nightly"
--scopeSpace-separated scopes (default: "repo:read artifact:read org:read"). Never more than your session has
--expiresDays until it expires (1–365) Default 90.

product token list

List your tokens (never their secrets)

product token list

product token revoke

Revoke a token; it stops working within a minute

product token revoke <ID>
ArgumentDescription
<ID>Token id (pat_…) from product token list

product remote add

Add a remote: product remote add origin file:///srv/remotes/acme

product remote add <NAME> <URL>
ArgumentDescription
<NAME>
<URL>

product remote list

List remotes

product remote list

product contract set

Apply a new product.yaml to a remote's main branch. Tables whose sharding threshold changes are downloaded and cut again (same rows, no diff); every other shard is kept

product contract set [OPTIONS] --remote <REMOTE> <FILE>
ArgumentDescription
<FILE>The new product.yaml
--remoteThe remote, e.g. https://api.product.cloud/acme/tools or file:///srv/remotes/x
--messageCommit message
--dry-runShow what would change without uploading or moving main

product push

Upload the objects a remote is missing, then move its branch (compare-and-set)

product push [REMOTE] [BRANCH]
ArgumentDescription
<REMOTE>Remote name (default: origin)
<BRANCH>Branch (default: the current branch)

product propose

Propose a change to a hub repository (ADR-0090). In a clone, pushes the current branch first (from main, to a new proposal-<you>-<title> branch) and opens a proposal

product propose [OPTIONS] --title <TITLE>
ArgumentDescription
--titleTitle of the proposal
--descriptionWhy, and what changes
--branchBranch to propose (default: the current branch)
--repoRepository: ns/repo on the current hub or a hub URL; default: this clone's origin. With a repository given, --branch names a branch already pushed
--typeContribution type (default: extension). Claim corrections and mapping changes need --evidence or --test-case One of claim-correction, mapping-change, extension, usability.
--evidenceAn evidence id (ev_…) or an https URL (repeatable)
--test-caseA test case standing in for evidence, e.g. a source and its expected target
--attributionHow you are credited when it is released (default: public-handle) One of public-handle, organization, anonymous.
--organizationWith --attribution organization: an organization you belong to

product review approve

Approve the proposal's current head

product review approve [OPTIONS] <REPOSITORY> <NUMBER>
ArgumentDescription
<REPOSITORY>Repository: ns/repo on the current hub, a hub URL, or . for this clone's origin
<NUMBER>Proposal number
--messageDefault .
--overrideOwners and admins: approve without the required reviews, with the reason in --message. Recorded and shown with the review

product review request-changes

Ask for changes before the proposal can be accepted

product review request-changes --message <MESSAGE> <REPOSITORY> <NUMBER>
ArgumentDescription
<REPOSITORY>
<NUMBER>
--message

product review comment

Comment without a verdict

product review comment --message <MESSAGE> <REPOSITORY> <NUMBER>
ArgumentDescription
<REPOSITORY>
<NUMBER>
--message

product proposals

List a repository's change proposals with their state, type and author

product proposals [OPTIONS] [REPOSITORY]
ArgumentDescription
<REPOSITORY>ns/repo, a hub URL, or . (default) for this clone's origin
--stateFilter by state (default: open) One of open, all, checks, in-review, accepted, changes-requested, merged, released, rejected, withdrawn, closed.
--typeFilter by contribution type One of claim-correction, mapping-change, extension, usability.

product fetch

Download missing objects and update remote-tracking refs

product fetch [REMOTE]
ArgumentDescription
<REMOTE>Remote name (default: origin)

product pull

Fetch, then fast-forward the branch and working tree

product pull [REMOTE] [BRANCH]
ArgumentDescription
<REMOTE>Remote name (default: origin)
<BRANCH>Branch (default: the current branch)

product clone

Create a repository from a remote

product clone <URL> <DIR>
ArgumentDescription
<URL>Remote URL: product://<ns>/<repo>[@rev] (on the current hub), https://<hub>/<ns>/<repo>[@rev], or file:///path
<DIR>Destination directory, relative to -C (default: the current directory)