# diagrid app create

Create an App

### Description

Create an App in a project.

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

### Examples

```

  # Create an identity-only App (no endpoint)
  diagrid app create my-app --project my-project

  # Create an App with an endpoint
  diagrid app create my-app --project my-project --endpoint https://myapp.myorg.com/ --endpoint-token xxxxxxxx

  # Create an App with workflow-history archiving enabled
  diagrid app create my-app --project my-project --archive-binding-name archive-store --archive-binding-type bindings.aws.s3 --archive-completed

```

### Options

```
  -p, --project string                       Name of existing project
  -e, --endpoint string                      Endpoint used to establish outbound connectivity from the App to your external application
  -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
      --enable-app-health-check              Enable application-level health probing
      --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
  -w, --wait                                 Wait for long-running resource creation to finish
      --ignore-if-exists                     Exit with success if the App already exists instead of returning an error
      --archive-binding-name string          Output-binding component name to write archived workflow history through. Setting this enables archiving
      --archive-binding-type string          Binding component type for the archive destination (e.g., "bindings.aws.s3")
      --archive-completed                    Archive workflows that reach the Completed terminal state
      --archive-failed                       Archive workflows that reach the Failed terminal state
      --archive-terminated                   Archive workflows that reach the Terminated terminal state
      --workflow-notifications-name string   Regular expression the workflow name must match in full for a notification to be raised. Empty matches every workflow
      --workflow-notifications-failed        Raise a notification for workflows that reach the Failed terminal state
      --workflow-notifications-terminated    Raise a notification for workflows that reach the Terminated terminal state
      --workflow-notifications-stalled       Raise a notification for workflows that reach the Stalled state
      --workflow-notifications-root-only     Only raise notifications for workflows with no parent
  -h, --help                                 help for create
```

### Options inherited from parent commands

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

### SEE ALSO

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