> ## Documentation Index
> Fetch the complete documentation index at: https://www.productmetrics.io/docs/nl/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://www.productmetrics.io/docs/nl/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://www.productmetrics.io/docs/api/mcp.
> Every agent surface: https://www.productmetrics.io/docs/.well-known/llms-manifest.json

# CLI-commando's (/docs/nl/cli/commands)

<!-- agent-signals: reading_time_min: 14 · est_tokens: 8919 · updated: 2026-12-03 -->
Related: [Product Metrics CLI](/docs/nl/cli/overview.md), [Quickstart voor developers en agents](/docs/nl/cli/quickstart.md), [CLI-authenticatie](/docs/nl/cli/authentication.md), [De CLI gebruiken vanuit een AI-agent](/docs/nl/cli/for-agents.md), [JSON-uitvoer en exitcodes](/docs/nl/cli/json-and-exit-codes.md)

> Elke commandogroep van productmetrics met de commando's, de scope die elk nodig heeft en de belangrijkste flags, plus productmetrics capabilities en productmetrics call.

`productmetrics` heeft één commando per openbare API-handeling, gegroepeerd op het deel vóór de punt in de capability-ID.



* [Onboarding](/docs/nl/cli/commands#onboarding): waar je staat in de onboarding, en die verder brengen
* [Setup](/docs/nl/cli/commands#setup): de setupstatus en de volgende openstaande stap
* [Workspaces en facturering](/docs/nl/cli/commands#workspaces-en-facturering): properties, workspaces, checkout, uitnodigingen en advertentie-uitgaven
* [Google Ads](/docs/nl/cli/commands#google-ads): Google-toegang, accounts, conversieacties en klantenlijsten
* [Merchant Center](/docs/nl/cli/commands#merchant-center): Merchant Center koppelen en de automatische setup toepassen
* [Webshops en tracking](/docs/nl/cli/commands#webshops-en-tracking): een webshop koppelen en controleren of aankopen binnenkomen
* [Bestemmingen](/docs/nl/cli/commands#bestemmingen): Meta Conversions API en ChatGPT Ads (OpenAI Conversions API)
* [Instellingen](/docs/nl/cli/commands#instellingen): instellingen voor Product Segmentation: lezen, voorbeeld bekijken, opslaan
* [Productregels](/docs/nl/cli/commands#productregels): regels die segmenten of prioriteiten overschrijven
* [Feed](/docs/nl/cli/commands#feed): instellingen voor de feedbron en de feed genereren
* [Voorraad](/docs/nl/cli/commands#voorraad): instellingen voor voorraadplanning en de voorraadstatus
* [Webshopgegevens](/docs/nl/cli/commands#webshopgegevens): bestellingen, Business Health, analytics en gegevensopvragingen

## Een commando vinden

De actuele lijst komt altijd van de server:

```bash
# elke handeling: commando, scope, of het gegevens wijzigt
productmetrics capabilities
productmetrics capabilities --search "merchant center"
productmetrics capabilities --scope write --json
# één groep
productmetrics <group> --help
# één commando: verzoek, scope, elke flag, een voorbeeld
productmetrics <group> <command> --help
```

## Zo lees je de tabellen

* **Command** is `productmetrics <group> <command>`. `productmetrics call <capability-id>` voert dezelfde handeling uit: `productmetrics call google_ads.list_accounts` is `productmetrics google-ads list-accounts`.
* **What it does** linkt naar de pagina van de handeling in de [API-referentie](/docs/api/overview), met elk veld.
* **Scope** is de ene scope die je inlog nodig heeft. Zie [Authenticatie](/docs/nl/cli/authentication#scopes).
* **Must pass** vermeldt de flags zonder welke het commando mislukt: de verplichte pad-, query- en bodyvelden, en `--body-file`, `--if-match`, `--auto-idempotency-key` of `--yes` waar de handeling die nodig heeft. Elke andere flag staat in `productmetrics <group> <command> --help`.
* Commando's gemarkeerd met **Deletes** kunnen niet ongedaan worden gemaakt. In een terminal vraagt `productmetrics` je de ID te typen in plaats van `--yes`.

ID's komen uit eerdere resultaten, nooit uit gokken: `property_id` en `company_id` uit `productmetrics whoami`, installatie-, koppelings- en scope-ID's uit `productmetrics tracking get-configuration`, regel-ID's uit `productmetrics product-rules list`.

## Onboarding

Waar je staat in de onboarding van Product Metrics, en die verder brengen.

| Command                                                    | What it does                                                                             | Scope   | Must pass                      |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ------- | ------------------------------ |
| `productmetrics onboarding get-state`                      | [Get onboarding state](/docs/api/account/onboarding-get-state)                                | `read`  |                                |
| `productmetrics onboarding update-step`                    | [Move onboarding to a step](/docs/api/account/onboarding-update-step)                         | `setup` | `--step`                       |
| `productmetrics onboarding set-account-type`               | [Set account type](/docs/api/account/onboarding-set-account-type)                             | `setup` | `--account-type`               |
| `productmetrics onboarding set-google-ads-connection-mode` | [Set Google Ads connection mode](/docs/api/account/onboarding-set-google-ads-connection-mode) | `setup` | `--google-ads-connection-mode` |
| `productmetrics onboarding complete`                       | [Complete onboarding](/docs/api/account/onboarding-complete)                                  | `setup` |                                |
| `productmetrics onboarding skip`                           | [Skip onboarding](/docs/api/account/onboarding-skip)                                          | `setup` |                                |

## Setup

| Command                           | What it does                                      | Scope  | Must pass |
| --------------------------------- | ------------------------------------------------- | ------ | --------- |
| `productmetrics setup get-status` | [Get setup status](/docs/api/account/setup-get-status) | `read` |           |

Het antwoord bevat `journey_stage`, `user.google_grant`, `hub.company.next_action` en `hub.property.next_action`.

## Workspaces en facturering

| Command                                       | What it does                                                        | Scope   | Must pass                                    |
| --------------------------------------------- | ------------------------------------------------------------------- | ------- | -------------------------------------------- |
| `productmetrics properties list`              | [List properties](/docs/api/account/properties-list)                     | `read`  |                                              |
| `productmetrics companies list`               | [List workspaces](/docs/api/account/companies-list)                      | `read`  |                                              |
| `productmetrics companies create`             | [Create workspace](/docs/api/account/companies-create)                   | `setup` | `--name`, `--auto-idempotency-key`           |
| `productmetrics billing create-checkout-link` | [Create a checkout link](/docs/api/account/billing-create-checkout-link) | `setup` | `--company-id`                               |
| `productmetrics invitations send`             | [Invite teammates](/docs/api/account/invitations-send)                   | `write` | `--company-id`, `--invitees`                 |
| `productmetrics usage get-ad-spend`           | [Get ad spend usage](/docs/api/store-data/usage-get-ad-spend)            | `read`  | `--company-id`, `--start-date`, `--end-date` |

`invitations send` neemt de genodigden als JSON in `--invitees` (of de hele body in `--body`). Elke rol is `admin`, `editor` of `viewer`:

```bash
productmetrics invitations send \
  --company-id <company_id> \
  --invitees '[{ "email": "anna@example.com", "role": "editor" }]'
```

## Google Ads

Google-toegang verlenen, Google Ads-accounts koppelen (wat properties aanmaakt), conversieacties en klantenlijsten.

| Command                                                 | What it does                                                                               | Scope   | Must pass                                            |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ------- | ---------------------------------------------------- |
| `productmetrics google get-connect-link`                | [Get the Google connect link](/docs/api/account/google-get-connect-link)                        | `setup` | `--scope`                                            |
| `productmetrics google-ads list-accounts`               | [List reachable Google Ads accounts](/docs/api/google-ads/list-accounts)                        | `read`  |                                                      |
| `productmetrics google-ads list-property-connections`   | [List Google Ads connections](/docs/api/google-ads/list-property-connections)                   | `read`  | `--company-id`                                       |
| `productmetrics google-ads create-property-connection`  | [Connect a Google Ads account](/docs/api/google-ads/create-property-connection)                 | `setup` | `--company-id`, `--connection-mode`, `--customer-id` |
| `productmetrics google-ads list-pending-invites`        | [List pending Google Ads invites](/docs/api/google-ads/list-pending-invites)                    | `read`  | `--company-id`                                       |
| `productmetrics google-ads send-invite`                 | [Invite a Google Ads account](/docs/api/google-ads/send-invite)                                 | `setup` | `--company-id`, `--customer-id`                      |
| `productmetrics google-ads recheck-property-connection` | [Recheck a Google Ads connection](/docs/api/google-ads/recheck-property-connection)             | `setup` | `--property-id`                                      |
| `productmetrics google-ads delete-property-connection`  | **Deletes.** [Disconnect a Google Ads account](/docs/api/google-ads/delete-property-connection) | `setup` | `--property-id`, `--yes`                             |
| `productmetrics google-ads get-setup-status`            | [Get workspace setup status](/docs/api/google-ads/get-setup-status)                             | `read`  | `--company-id`                                       |
| `productmetrics google-ads get-plan-results`            | [Get plan results](/docs/api/google-ads/get-plan-results)                                       | `read`  | `--property-id`                                      |
| `productmetrics google-ads get-conversion-actions`      | [Get conversion action readiness](/docs/api/google-ads/get-conversion-actions)                  | `read`  | `--property-id`                                      |
| `productmetrics google-ads create-conversion-actions`   | [Create conversion actions](/docs/api/google-ads/create-conversion-actions)                     | `setup` | `--property-id`, `--company-id`                      |
| `productmetrics google-ads get-customer-lists`          | [Get customer lists](/docs/api/google-ads/get-customer-lists)                                   | `read`  | `--property-id`, `--company-id`                      |
| `productmetrics google-ads create-customer-lists`       | [Create customer lists](/docs/api/google-ads/create-customer-lists)                             | `setup` | `--property-id`, `--company-id`                      |

## Merchant Center

| Command                                                | What it does                                                                        | Scope   | Must pass                        |
| ------------------------------------------------------ | ----------------------------------------------------------------------------------- | ------- | -------------------------------- |
| `productmetrics merchant-center create-connection`     | [Connect Merchant Center](/docs/api/merchant-center/create-connection)                   | `setup` | `--property-id`, `--merchant-id` |
| `productmetrics merchant-center recheck-connection`    | [Recheck a Merchant Center connection](/docs/api/merchant-center/recheck-connection)     | `setup` | `--property-id`                  |
| `productmetrics merchant-center delete-connection`     | **Deletes.** [Disconnect Merchant Center](/docs/api/merchant-center/delete-connection)   | `setup` | `--property-id`, `--yes`         |
| `productmetrics merchant-center inspect-auto-setup`    | [Inspect Merchant Center auto-setup](/docs/api/merchant-center/inspect-auto-setup)       | `read`  | `--property-id`                  |
| `productmetrics merchant-center get-auto-setup-status` | [Get Merchant Center auto-setup status](/docs/api/merchant-center/get-auto-setup-status) | `read`  | `--property-id`                  |
| `productmetrics merchant-center apply-auto-setup`      | [Apply Merchant Center auto-setup](/docs/api/merchant-center/apply-auto-setup)           | `setup` | `--property-id`                  |

## Webshops en tracking

Een webshop koppelen en controleren of aankopen binnenkomen.

| Command                                                | What it does                                                                                                           | Scope   | Must pass                                                                                                                                                                           |
| ------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `productmetrics stores select-platform`                | [Choose the store platform](/docs/api/stores-and-tracking/stores-select-platform)                                           | `setup` | `--company-id`, `--platform`                                                                                                                                                        |
| `productmetrics stores connect`                        | [Connect a store](/docs/api/stores-and-tracking/stores-connect)                                                             | `setup` | `--company-id`, `--provider`                                                                                                                                                        |
| `productmetrics stores create-woocommerce-setup-claim` | [New WooCommerce setup token](/docs/api/stores-and-tracking/stores-create-woocommerce-setup-claim)                          | `setup` | `--installation-id`                                                                                                                                                                 |
| `productmetrics tracking get-configuration`            | [Get tracking configuration](/docs/api/stores-and-tracking/tracking-get-configuration)                                      | `read`  | `--company-id`, `--property-id`                                                                                                                                                     |
| `productmetrics tracking get-commerce-configuration`   | [Get store connections](/docs/api/stores-and-tracking/tracking-get-commerce-configuration)                                  | `read`  | `--company-id`                                                                                                                                                                      |
| `productmetrics tracking create-website-installation`  | [Track a website](/docs/api/stores-and-tracking/tracking-create-website-installation)                                       | `setup` | `--company-id`, `--verified-domain`                                                                                                                                                 |
| `productmetrics tracking get-last-purchase`            | [Check tracking works](/docs/api/stores-and-tracking/tracking-get-last-purchase)                                            | `read`  | `--company-id`, `--installation-id`                                                                                                                                                 |
| `productmetrics tracking get-shopware6-status`         | [Get Shopware 6 status](/docs/api/stores-and-tracking/tracking-get-shopware6-status)                                        | `read`  | `--company-id`, `--installation-id`                                                                                                                                                 |
| `productmetrics tracking update-installation-features` | [Set the cookie consent manager and tracking features](/docs/api/stores-and-tracking/tracking-update-installation-features) | `setup` | `--company-id`, `--installation-id`, `--identity-discovery`, `--dynamic-checkout-observation`, `--cmp-adapter`, `--expanded-bot-signals`, `--server-authoritative-attribution-mode` |
| `productmetrics tracking update-margin-policy`         | [Set the profit cost fallback and margin costs](/docs/api/stores-and-tracking/tracking-update-margin-policy)                | `setup` | `--company-id`, `--connection-id`, `--expected-revision`, `--policy`, `--auto-idempotency-key`                                                                                      |
| `productmetrics tracking update-scope-dimensions`      | [Set a store's countries and currencies](/docs/api/stores-and-tracking/tracking-update-scope-dimensions)                    | `setup` | `--company-id`, `--scope-id`, `--installation-id`, `--country-codes`, `--path-prefixes`, `--locale-codes`, `--currency-codes`                                                       |
| `productmetrics tracking set-scope-destination`        | [Send a store's purchases to Google Ads](/docs/api/stores-and-tracking/tracking-set-scope-destination)                      | `setup` | `--company-id`, `--scope-id`, `--installation-id`, `--property-id`, `--pageview-destination`, `--consent-policy-version`                                                            |
| `productmetrics tracking assign-property`              | [Assign a store to a property](/docs/api/stores-and-tracking/tracking-assign-property)                                      | `setup` | `--company-id`, `--scope-id`, `--installation-id`, `--property-id`                                                                                                                  |
| `productmetrics tracking get-enhanced-conversions`     | [Get enhanced conversions readiness](/docs/api/stores-and-tracking/tracking-get-enhanced-conversions)                       | `read`  | `--company-id`, `--property-id`                                                                                                                                                     |

`stores connect` antwoordt per platform:

| Platform                                                                                         | Antwoord                                                                                                           | Exit                                    |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | --------------------------------------- |
| **Shopify**                                                                                      | `mode: redirect` en een `authorizationUrl` om goed te keuren in het Shopify-beheercentrum                          | `4`, `next_action.type: "browser"`      |
| **WooCommerce**, **Shopware 6** (`--store-url`)                                                  | `mode: plugin_claim` en een eenmalige setuptoken om vóór `claim.expiresAt` in de Product Metrics-plugin te plakken | `4`, `next_action.type: "store_plugin"` |
| **Lightspeed C-Series** (`--cluster`, `--shop-domain`, `--shop-id`, `--api-key`, `--api-secret`) | `mode: provisioning`: de koppeling wordt ingericht                                                                 |                                         |

Geef ook `--auto-idempotency-key` mee, zodat een nieuwe poging geen tweede koppeling start. `stores connect` en `stores create-woocommerce-setup-claim` verbergen de setuptoken, tenzij je `--show-secrets` meegeeft. Daarna toont `productmetrics tracking get-commerce-configuration` dat de koppeling actief wordt.

Een WooCommerce-webshop op plugin 1.0.12 of later stuurt bij het koppelen zijn land en valuta mee. Stel die voor elke andere webshop in met `tracking update-scope-dimensions` vóór `tracking update-margin-policy`: de standaardmargekosten (`marginDefaultCatalog` in `tracking get-configuration`) vereisen precies één land en één valuta per webshopscope.

## Bestemmingen

Bestemmingen voor de Meta Conversions API en de OpenAI Conversions API (ChatGPT Ads), één per property.

| Command                                     | What it does                                                                                            | Scope   | Must pass                                                                       |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------- | ------------------------------------------------------------------------------- |
| `productmetrics destinations list-meta`     | [List Meta destinations](/docs/api/destinations/list-meta)                                                   | `read`  | `--company-id`                                                                  |
| `productmetrics destinations set-meta`      | [Save Meta destination](/docs/api/destinations/set-meta)                                                     | `setup` | `--company-id`, `--property-id`, `--pixel-id`, `--test-event-code`, `--enabled` |
| `productmetrics destinations test-meta`     | [Send Meta test event](/docs/api/destinations/test-meta)                                                     | `setup` | `--company-id`, `--property-id`                                                 |
| `productmetrics destinations delete-meta`   | **Deletes.** [Delete Meta destination](/docs/api/destinations/delete-meta)                                   | `setup` | `--company-id`, `--property-id`, `--yes`                                        |
| `productmetrics destinations list-openai`   | [List ChatGPT Ads (OpenAI Conversions API) destinations](/docs/api/destinations/list-openai)                 | `read`  | `--company-id`                                                                  |
| `productmetrics destinations set-openai`    | [Save ChatGPT Ads (OpenAI Conversions API) destination](/docs/api/destinations/set-openai)                   | `setup` | `--company-id`, `--property-id`, `--pixel-id`, `--enabled`                      |
| `productmetrics destinations test-openai`   | [Send ChatGPT Ads (OpenAI Conversions API) test event](/docs/api/destinations/test-openai)                   | `setup` | `--company-id`, `--property-id`                                                 |
| `productmetrics destinations delete-openai` | **Deletes.** [Delete ChatGPT Ads (OpenAI Conversions API) destination](/docs/api/destinations/delete-openai) | `setup` | `--company-id`, `--property-id`, `--yes`                                        |

## Instellingen

Instellingen voor Product Segmentation: lezen, een aanbevolen minimum aantal klikken ophalen, een concept bekijken, opslaan. Elk commando neemt `--feed-scope` (een feed-ID, of `all`).

| Command                                        | What it does                                                    | Scope   | Must pass                               |
| ---------------------------------------------- | --------------------------------------------------------------- | ------- | --------------------------------------- |
| `productmetrics settings get`                  | [Get Product Segmentation settings](/docs/api/settings/get)          | `read`  | `--property-id`                         |
| `productmetrics settings recommend-min-clicks` | [Recommend minimum clicks](/docs/api/settings/recommend-min-clicks)  | `read`  | `--property-id`                         |
| `productmetrics settings preview`              | [Preview Product Segmentation settings](/docs/api/settings/preview)  | `read`  | `--property-id`, `--body-file`          |
| `productmetrics settings preview-strategy`     | [Preview segmentation strategy](/docs/api/settings/preview-strategy) | `read`  | `--property-id`, `--body-file`          |
| `productmetrics settings update`               | [Save Product Segmentation settings](/docs/api/settings/update)      | `write` | `--property-id`, `--labelizer-settings` |

```bash
productmetrics settings get --property-id <property_id> --json > settings.json
productmetrics settings recommend-min-clicks --property-id <property_id>
productmetrics settings preview \
  --property-id <property_id> \
  --feed-scope <feed> \
  --body-file draft.json
productmetrics settings update \
  --property-id <property_id> \
  --body-file new-settings.json \
  --if-match '"<settings_version>"'
```

## Productregels

Regels die segmenten of prioriteiten overschrijven voor de producten waarop ze passen. Elk commando neemt `--feed-scope`.

| Command                                   | What it does                                                             | Scope   | Must pass                                                                                                            |
| ----------------------------------------- | ------------------------------------------------------------------------ | ------- | -------------------------------------------------------------------------------------------------------------------- |
| `productmetrics product-rules list`       | [List product rules](/docs/api/settings/product-rules-list)                   | `read`  | `--property-id`                                                                                                      |
| `productmetrics product-rules get-impact` | [Get product rules impact](/docs/api/settings/product-rules-get-impact)       | `read`  | `--property-id`                                                                                                      |
| `productmetrics product-rules preview`    | [Preview product rule conditions](/docs/api/settings/product-rules-preview)   | `read`  | `--property-id`, `--when-cols`, `--when-ops`, `--when-vals`                                                          |
| `productmetrics product-rules create`     | [Create a product rule](/docs/api/settings/product-rules-create)              | `write` | `--property-id`, `--name`, `--when-cols`, `--when-ops`, `--when-vals`, `--target-cols`, `--action`, `--action-value` |
| `productmetrics product-rules reorder`    | [Reorder product rules](/docs/api/settings/product-rules-reorder)             | `write` | `--property-id`, `--rules`                                                                                           |
| `productmetrics product-rules update`     | [Update a product rule](/docs/api/settings/product-rules-update)              | `write` | `--property-id`, `--rule-id`                                                                                         |
| `productmetrics product-rules toggle`     | [Turn a product rule on or off](/docs/api/settings/product-rules-toggle)      | `write` | `--property-id`, `--rule-id`                                                                                         |
| `productmetrics product-rules delete`     | **Deletes.** [Delete a product rule](/docs/api/settings/product-rules-delete) | `write` | `--property-id`, `--rule-id`, `--yes`                                                                                |

## Feed

| Command                                      | What it does                                                           | Scope   | Must pass                                                   |
| -------------------------------------------- | ---------------------------------------------------------------------- | ------- | ----------------------------------------------------------- |
| `productmetrics feed-source-settings get`    | [Get feed source settings](/docs/api/settings/feed-source-settings-get)     | `read`  | `--property-id`                                             |
| `productmetrics feed-source-settings update` | [Save feed source settings](/docs/api/settings/feed-source-settings-update) | `write` | `--property-id`, `--product-segment`, `--category-priority` |
| `productmetrics feed generate`               | [Generate the feed now](/docs/api/settings/feed-generate)                   | `write` | `--property-id`                                             |

## Voorraad

| Command                                    | What it does                                                                  | Scope   | Must pass                                                                                 |
| ------------------------------------------ | ----------------------------------------------------------------------------- | ------- | ----------------------------------------------------------------------------------------- |
| `productmetrics inventory-settings get`    | [Get inventory planning settings](/docs/api/settings/inventory-settings-get)       | `read`  | `--property-id`                                                                           |
| `productmetrics inventory-settings update` | [Save an inventory planning setting](/docs/api/settings/inventory-settings-update) | `write` | `--property-id`, `--store-id`, `--scope-kind`, `--lead-time-days`, `--safety-buffer-days` |
| `productmetrics inventory get-state`       | [Get inventory state](/docs/api/store-data/inventory-get-state)                    | `read`  | `--property-id`                                                                           |

## Webshopgegevens

De eigen gegevens van de webshop. Bestellingen, Business Health en voorraad vereisen Pro.

| Command                                     | What it does                                                                | Scope  | Must pass                                             |
| ------------------------------------------- | --------------------------------------------------------------------------- | ------ | ----------------------------------------------------- |
| `productmetrics orders get-availability`    | [Check orders are available](/docs/api/store-data/orders-get-availability)       | `read` |                                                       |
| `productmetrics orders list`                | [List orders](/docs/api/store-data/orders-list)                                  | `read` | `--company-id`, `--storefront-scope-id`               |
| `productmetrics orders get`                 | [Get an order](/docs/api/store-data/orders-get)                                  | `read` | `--company-id`, `--order-id`, `--storefront-scope-id` |
| `productmetrics store list-shops`           | [List shops](/docs/api/store-data/store-list-shops)                              | `read` | `--property-id`                                       |
| `productmetrics store get-health-slice`     | [Get Business Health](/docs/api/store-data/store-get-health-slice)               | `read` | `--property-id`, `--window-days`, `--compare`         |
| `productmetrics store get-health-series`    | [Get Business Health series](/docs/api/store-data/store-get-health-series)       | `read` | `--property-id`, `--weeks`, `--compare`               |
| `productmetrics store list-health-products` | [List Business Health products](/docs/api/store-data/store-list-health-products) | `read` | `--property-id`, `--window-days`                      |
| `productmetrics analytics get-status`       | [Get analytics status](/docs/api/store-data/analytics-get-status)                | `read` | `--property-id`                                       |
| `productmetrics data query`                 | [Query the lake](/docs/api/store-data/data-query)                                | `read` | `--property-id`, `--sql`                              |
| `productmetrics insights get`               | [Get an insight card](/docs/api/store-data/insights-get)                         | `read` | `--property-id`, `--spot`                             |

```bash
productmetrics tracking get-configuration \
  --company-id <company_id> \
  --property-id <property_id>
productmetrics orders list \
  --company-id <company_id> \
  --storefront-scope-id <scope_id> \
  --limit 20
productmetrics data query \
  --property-id <property_id> \
  --sql "select count(*) from orders" \
  --max-rows 10
```

## Feedback

`productmetrics feedback` stuurt feedback naar het Product Metrics-team via `feedback.send` (scope `read`). Het is geen supportkanaal; laat persoonsgegevens weg. Het bericht kan het argument zijn of `--message`; `--about <capability-id>` vult `--context` en `--feature`, en `--request-id` voegt de request-ID van een mislukte aanroep toe.

```bash
productmetrics feedback \
  --sentiment negative \
  --about settings.update \
  --request-id <request_id> \
  --message "The save answered 500 twice."
```

## Capabilities en call

`productmetrics capabilities` toont elke handeling die de server aanbiedt, met het commando dat die uitvoert, de scope en of ze gegevens wijzigt. Met `--json` heeft elk item ook `command`, `secret_fields` en `browser_step`.

| Flag                         | What it does                                                             |
| ---------------------------- | ------------------------------------------------------------------------ |
| `--search <text>`            | Alleen handelingen waarvan de ID, titel of beschrijving deze tekst bevat |
| `--scope read\|setup\|write` | Alleen handelingen die deze scope vereisen                               |

`productmetrics call <capability-id>` voert een handeling uit op basis van de ID (met `_` of `-`), met dezelfde veldflags als het gegenereerde commando:

```bash
productmetrics call google_ads.list_accounts
productmetrics call settings.get --param propertyId=<property_id> --json
```

## Flags die elk API-commando neemt

Naast de veldflags neemt elk API-commando deze.

| Flag                       | What it does                                                              |
| -------------------------- | ------------------------------------------------------------------------- |
| `--param <key=value>`      | Set a path parameter by its API name (wins over its field flag)           |
| `--query <key=value>`      | Set a query parameter by its API name (wins over its field flag)          |
| `--body <json>`            | The JSON body; its keys win over field flags                              |
| `--body-file <path>`       | Read the JSON body from a file                                            |
| `--body-stdin`             | Read the JSON body from stdin                                             |
| `--idempotency-key <uuid>` | Idempotency-Key header: the same key makes a retry safe                   |
| `--auto-idempotency-key`   | Send a new random Idempotency-Key (a failed call prints it for the retry) |
| `--if-match <version>`     | If-Match header: the version of the resource this change is based on      |
| `--show-secrets`           | Print fields the API marks as secret instead of hiding them               |
| `--yes`                    | Confirm an operation that deletes data, without a prompt                  |
| `--dry-run`                | Print the request that would be sent, and send nothing                    |

Alleen deze commando's nemen een Idempotency-Key; bij elk ander commando is `--auto-idempotency-key` of `--idempotency-key` een gebruiksfout (exitcode 2):

* `productmetrics companies create` (required)
* `productmetrics stores connect`
* `productmetrics tracking update-margin-policy` (required)

## Volgende stappen



* [Voor agents](/docs/nl/cli/for-agents): idempotency, `--if-match`, `--dry-run`
* [JSON en exitcodes](/docs/nl/cli/json-and-exit-codes): de `--json`-envelop, `next_action` en exitcodes
* [API-overzicht](/docs/api/overview): dezelfde handelingen via HTTP
