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

# Befehle der CLI (/docs/de/cli/commands)

<!-- agent-signals: reading_time_min: 13 · est_tokens: 8968 · updated: 2026-12-02 -->
Related: [Product Metrics CLI](/docs/de/cli/overview.md), [Schnellstart für Entwickler und Agents](/docs/de/cli/quickstart.md), [Authentifizierung der CLI](/docs/de/cli/authentication.md), [Die CLI aus einem KI-Agent nutzen](/docs/de/cli/for-agents.md), [JSON-Ausgabe und Exit-Codes](/docs/de/cli/json-and-exit-codes.md)

> Jede Befehlsgruppe von productmetrics mit ihren Befehlen, dem Scope, den jeder braucht, und den wichtigsten Flags, dazu productmetrics capabilities und productmetrics call.

`productmetrics` hat einen Befehl pro Operation der öffentlichen API, gruppiert nach dem Teil vor dem Punkt in ihrer Capability-ID.



* [Onboarding](/docs/de/cli/commands#onboarding): wo Sie im Onboarding stehen, und wie es weitergeht
* [Einrichtung](/docs/de/cli/commands#einrichtung): der Einrichtungsstatus und der nächste offene Schritt
* [Workspaces und Abrechnung](/docs/de/cli/commands#workspaces-und-abrechnung): Properties, Workspaces, Checkout, Einladungen und Werbeausgaben
* [Google Ads](/docs/de/cli/commands#google-ads): Google-Zugriff, Konten, Conversion-Aktionen und Kundenlisten
* [Merchant Center](/docs/de/cli/commands#merchant-center): Merchant Center verbinden und seine automatische Einrichtung anwenden
* [Shops und Tracking](/docs/de/cli/commands#shops-und-tracking): einen Shop verbinden und prüfen, ob Käufe ankommen
* [Destinations](/docs/de/cli/commands#destinations): Meta Conversions API und ChatGPT Ads (OpenAI Conversions API)
* [Einstellungen](/docs/de/cli/commands#einstellungen): Einstellungen von Product Segmentation: lesen, Vorschau, speichern
* [Produktregeln](/docs/de/cli/commands#produktregeln): Regeln, die Segmente oder Prioritäten überschreiben
* [Feed](/docs/de/cli/commands#feed): Einstellungen der Feed-Quelle und das Erzeugen des Feeds
* [Lagerbestand](/docs/de/cli/commands#lagerbestand): Einstellungen der Bestandsplanung und Lagerstatus
* [Shopdaten](/docs/de/cli/commands#shopdaten): Bestellungen, Business Health, Analysen und Datenabfragen

## Einen Befehl finden

Die aktuelle Liste kommt immer vom Server:

```bash
# alle Operationen: Befehl, Scope, ob sie Daten ändert
productmetrics capabilities
productmetrics capabilities --search "merchant center"
productmetrics capabilities --scope write --json
# eine Gruppe
productmetrics <group> --help
# ein Befehl: Request, Scope, alle Flags, ein Beispiel
productmetrics <group> <command> --help
```

## So lesen Sie die Tabellen

* **Command** ist `productmetrics <group> <command>`. `productmetrics call <capability-id>` führt dieselbe Operation aus: `productmetrics call google_ads.list_accounts` ist `productmetrics google-ads list-accounts`.
* **What it does** verlinkt die Seite der Operation in der [API-Referenz](/docs/api/overview), mit jedem Feld.
* **Scope** ist der eine Scope, den Ihre Anmeldung braucht. Siehe [Authentifizierung](/docs/de/cli/authentication#scopes).
* **Must pass** listet die Flags, ohne die der Befehl fehlschlägt: seine Pflichtfelder in Pfad, Query und Body sowie `--body-file`, `--if-match`, `--auto-idempotency-key` oder `--yes`, wo die Operation sie braucht. Alle anderen Flags stehen in `productmetrics <group> <command> --help`.
* Mit **Deletes** markierte Befehle lassen sich nicht rückgängig machen. In einem Terminal bittet `productmetrics` Sie, statt `--yes` die ID einzutippen.

IDs stammen aus früheren Ergebnissen, nie aus Vermutungen: `property_id` und `company_id` aus `productmetrics whoami`, Installations-, Verbindungs- und Scope-IDs aus `productmetrics tracking get-configuration`, Regel-IDs aus `productmetrics product-rules list`.

## Onboarding

Wo Sie im Onboarding von Product Metrics stehen, und wie es weitergeht.

| 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` |                                |

## Einrichtung

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

Die Antwort enthält `journey_stage`, `user.google_grant`, `hub.company.next_action` und `hub.property.next_action`.

## Workspaces und Abrechnung

| 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` nimmt die eingeladenen Personen als JSON in `--invitees` (oder den ganzen Body in `--body`). Jede Rolle ist `admin`, `editor` oder `viewer`:

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

## Google Ads

Google-Zugriff gewähren, Google-Ads-Konten verbinden (das legt Properties an), Conversion-Aktionen und Kundenlisten.

| 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`                  |

## Shops und Tracking

Einen Shop verbinden und prüfen, ob Käufe ankommen.

| 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` antwortet je nach Plattform:

| Plattform                                                                                        | Antwort                                                                                                                     | Exit-Code                               |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| **Shopify**                                                                                      | `mode: redirect` und eine `authorizationUrl` zum Genehmigen im Shopify-Admin                                                | `4`, `next_action.type: "browser"`      |
| **WooCommerce**, **Shopware 6** (`--store-url`)                                                  | `mode: plugin_claim` und ein einmaliges Setup-Token, das vor `claim.expiresAt` in das Product-Metrics-Plugin eingefügt wird | `4`, `next_action.type: "store_plugin"` |
| **Lightspeed C-Series** (`--cluster`, `--shop-domain`, `--shop-id`, `--api-key`, `--api-secret`) | `mode: provisioning`: Die Verbindung wird eingerichtet                                                                      |                                         |

Übergeben Sie auch `--auto-idempotency-key`, damit eine Wiederholung keine zweite Verbindung startet. `stores connect` und `stores create-woocommerce-setup-claim` verbergen das Setup-Token, es sei denn, Sie übergeben `--show-secrets`. Danach zeigt `productmetrics tracking get-commerce-configuration`, wie die Verbindung aktiv wird.

Ein WooCommerce-Shop mit Plugin 1.0.12 oder neuer sendet beim Koppeln sein Land und seine Währung. Für jeden anderen Shop setzen Sie sie mit `tracking update-scope-dimensions` vor `tracking update-margin-policy`: Die Standard-Margenkosten (`marginDefaultCatalog` in `tracking get-configuration`) brauchen genau ein Land und eine Währung pro Shop-Scope.

## Destinations

Destinations für die Meta Conversions API und die OpenAI Conversions API (ChatGPT Ads), eine pro 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`                                        |

## Einstellungen

Einstellungen von Product Segmentation: lesen, eine empfohlene Mindestzahl an Klicks abrufen, einen Entwurf in der Vorschau ansehen, speichern. Jeder Befehl nimmt `--feed-scope` (eine Feed-ID oder `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>"'
```

## Produktregeln

Regeln, die Segmente oder Prioritäten für die Produkte überschreiben, auf die sie zutreffen. Jeder Befehl nimmt `--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`                                             |

## Lagerbestand

| 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`                                                                           |

## Shopdaten

Die eigenen Daten des Shops. Bestellungen, Business Health und Lagerbestand brauchen 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` sendet Feedback über `feedback.send` (Scope `read`) an das Team von Product Metrics. Es ist kein Support-Kanal; lassen Sie personenbezogene Daten weg. Die Nachricht kann das Argument oder `--message` sein; `--about <capability-id>` füllt `--context` und `--feature`, und `--request-id` fügt die Request-ID eines fehlgeschlagenen Aufrufs hinzu.

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

## Capabilities und call

`productmetrics capabilities` listet jede Operation, die der Server anbietet, mit dem Befehl, der sie ausführt, ihrem Scope und ob sie Daten ändert. Mit `--json` hat jeder Eintrag außerdem `command`, `secret_fields` und `browser_step`.

| Flag                         | Was es tut                                                             |
| ---------------------------- | ---------------------------------------------------------------------- |
| `--search <text>`            | Nur Operationen, deren ID, Titel oder Beschreibung diesen Text enthält |
| `--scope read\|setup\|write` | Nur Operationen, die diesen Scope brauchen                             |

`productmetrics call <capability-id>` führt eine Operation über ihre ID aus (mit `_` oder `-`), mit denselben Feld-Flags wie der generierte Befehl:

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

## Flags, die jeder API-Befehl nimmt

Neben seinen Feld-Flags nimmt jeder API-Befehl diese.

| 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                    |

Nur diese Befehle nehmen einen Idempotency-Key; bei jedem anderen ist `--auto-idempotency-key` oder `--idempotency-key` ein Verwendungsfehler (Exit-Code 2):

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

## Wie geht es weiter?



* [Für Agents](/docs/de/cli/for-agents): Idempotenz, `--if-match`, `--dry-run`
* [JSON und Exit-Codes](/docs/de/cli/json-and-exit-codes): das `--json`-Envelope, `next_action` und die Exit-Codes
* [API-Übersicht](/docs/api/overview): dieselben Operationen über HTTP
