# diagrid app update

Update an App

### Description

Update an App in a project.

```
diagrid app update <app> [flags]
```

### Examples

```

  # Set or update the App endpoint
  diagrid app update my-app --project my-project --endpoint https://myapp.myorg.com/ --endpoint-token xxxxxxxx

  # Remove the App endpoint (make it identity-only)
  diagrid app update my-app --project my-project --endpoint ""

  # Stop archiving failed workflows, leaving the other archive settings untouched
  diagrid app update my-app --disable-workflow-archive failed

  # Disable workflow-history archiving
  diagrid app update my-app --archive-binding-name ""

  # Notify on failed and stalled root workflows whose name starts with "billing-"
  diagrid app update my-app --workflow-notifications-name "billing-.*" --enable-workflow-notifications FAILED,STALLED --workflow-notifications-root-only

  # Notify on terminated workflows and stop notifying on stalled ones, leaving the other notification settings untouched
  diagrid app update my-app --enable-workflow-notifications terminated --disable-workflow-notifications stalled

  # Disable workflow notifications
  diagrid app update my-app --disable-workflow-notifications FAILED,TERMINATED,STALLED

  # Load a different Dapr Configuration, or remove the binding with ""
  diagrid app update my-app --app-config tracing-config
  diagrid app update my-app --app-config ""

  # Replace the workload labels and annotations of the App's pod (self-hosted regions only)
  diagrid app update my-app --label team=orders --annotation azure.workload.identity/client-id=00000000-0000-0000-0000-000000000000

```

### Options

```
  -p, --project string                           Name of existing project
  -e, --endpoint string                          Endpoint used to establish outbound connectivity from the App to your external application. Pass an empty value to remove it
  -t, --endpoint-token string                    Token used to secure calls from the App to your provided endpoint
      --endpoint-protocol string                 Protocol used to interact with the endpoint: http (default) or grpc
      --max-body-size string                     Maximum request body size (e.g. "4Mi", "16Mi")
      --app-channel-timeout-seconds int32        Timeout in seconds for the sidecar to connect to the application endpoint
  -c, --app-config string                        Name of the Dapr Configuration the App loads, e.g. for tracing, access control or feature flags. It is the Configuration "diagrid app access" edits, so Apps bound to the same Configuration share its access rules. Pass an empty value to remove it
      --enable-app-health-check                  Enable application-level health probing. Pass =false to disable
      --app-health-check-path string             Health check endpoint path (e.g. /healthz)
      --app-health-probe-interval int32          Health probe interval in seconds
      --app-health-probe-timeout int32           Health probe timeout in milliseconds
      --app-health-threshold int32               Failure threshold before marking unhealthy
      --regenerate-api-token                     Regenerate the API token for this App's backing App ID
  -w, --wait                                     Wait for long-running resource update to finish
      --archive-binding-name string              Output-binding component name to write archived workflow history through. Setting this enables archiving. Pass an empty value to disable archiving
      --archive-binding-type string              Binding component type for the archive destination (e.g., "bindings.aws.s3")
      --enable-workflow-archive strings          Workflow statuses to start archiving: COMPLETED, FAILED, TERMINATED. Comma-separated or repeated. Statuses not listed keep their current setting
      --disable-workflow-archive strings         Workflow statuses to stop archiving: COMPLETED, FAILED, TERMINATED. Comma-separated or repeated. Statuses not listed keep their current setting
      --workflow-notifications-name string       Regular expression the workflow name must match in full for a notification to be raised. Pass an empty value to notify for every workflow
      --enable-workflow-notifications strings    Workflow statuses to start raising a notification for: FAILED, TERMINATED, STALLED. Comma-separated or repeated. Statuses not listed keep their current setting
      --disable-workflow-notifications strings   Workflow statuses to stop raising a notification for: FAILED, TERMINATED, STALLED. Comma-separated or repeated. Statuses not listed keep their current setting
      --workflow-notifications-root-only         Only raise notifications for workflows with no parent. Pass =false to notify for child workflows too
      --label stringToString                     Label (key=value) applied to the App's workload pod and service account. Repeatable. Setting --label or --annotation replaces all existing workload labels and annotations. Only supported in self-hosted regions (default [])
      --annotation stringToString                Annotation (key=value) applied to the App's workload pod and service account, e.g. for managed identity. Repeatable. Setting --label or --annotation replaces all existing workload labels and annotations. Only supported in self-hosted regions (default [])
  -h, --help                                     help for update
```

### Options inherited from parent commands

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

### SEE ALSO

- [diagrid app](./app.md)	 - Manage Apps
