# diagrid call state transaction

Execute a KV store transaction

### Description

Execute a transaction with multiple operations (upsert, delete) using an existing state component

```
diagrid call state transaction [flags]
```

### Examples

```

  # Perform a transaction with upsert and delete operations using the state component
  diagrid call state transaction --component my-kvstore --id my-id --operations upsert:key1:value,delete:key2

```

### Options

```
  -c, --component string     Component name for target kv store
  -a, --id string            id used for the transaction
      --operations strings   List of operations (e.g., upsert:key1:value,delete:key2)
  -p, --project string       Name of existing project
  -o, --output string        Output format, supported [table, yaml, json] (default "table")
      --verbose              Include verbose output such as curl command and response body
  -h, --help                 help for transaction
```

### Options inherited from parent commands

```
      --api-key string   Diagrid Cloud API key
```

### SEE ALSO

- [diagrid call state](./state.md)	 - Read and write state store entries via the Dapr State API
