diagrid project create
Create a project
Description
Create new project in an existing organization
With --duplicate, the new project is a copy of an existing project's configuration: its settings and resources, such as App IDs, components, subscriptions and HTTP endpoints. Runtime data is not copied. State, key/value data, pub/sub messages and workflow history stay in the source project, and the copy starts empty.
Where the region supports workflows, a new project gets a Diagrid-managed workflow store by default. Pass --disable-managed-workflow to create the project without it and bring your own actor state store for workflows.
diagrid project create <project-name> [flags]
Examples
# Create a project in the default region with a Diagrid Pub/Sub Broker and Diagrid Key/Value store
diagrid project create my-project --deploy-managed-pubsub --deploy-managed-kv
# Create a project in a specific region
diagrid project create my-project --region aws-us-west
# Create a project across every region of a region group
diagrid project create my-project --region-group prod-us
# Create a project without the Diagrid-managed workflow store
diagrid project create my-project --disable-managed-workflow
# Create a project with a custom max body size for all ids
diagrid project create my-project --global-id-max-body-size 8Mi
# Create a project whose Apps raise a notification for failed and stalled root workflows, unless an App sets its own policy
diagrid project create my-project --enable-workflow-notifications FAILED,STALLED --workflow-notifications-root-only
# Create a project whose Apps archive the history of completed and failed workflows to an S3 binding, unless an App sets its own policy
diagrid project create my-project --archive-binding-name archive-store --archive-binding-type bindings.aws.s3 --enable-workflow-archive COMPLETED,FAILED
# Create a project with workflow history signing enabled
diagrid project create my-project --enable-workflow-history-signing
# Create a copy of an existing project, with its settings and resources
diagrid project create my-copy --duplicate my-project
# Copy a project into another region and wait until all its resources are copied
diagrid project create my-copy --duplicate my-project --region aws-eu-west --wait
Options
-r, --region string Region ID where the project will be deployed
--deploy-managed-pubsub Deploy a Diagrid Pub/Sub Broker for use with the Pub/Sub API
--deploy-managed-kv Deploy a Diagrid Key/Value Store for use with the Key/Value API
--disable-managed-workflow Create the project without the Diagrid-managed workflow store, which is on by default where the region supports workflows
--enable-workflow-history-signing Enable workflow history signing for this project. Can only be set at creation time
-w, --wait Wait for long-running resource creation to finish
--use Set the created project as the default project for the current context
--disable-app-tunnels Disable app tunnels for this project
--global-id-max-body-size string Maximum body size for HTTP and gRPC requests across all ids in this project (e.g., "4Mi", "8Mi", "16Mi"). Can be overridden at the individual id level
--enable-workflow-notifications strings Workflow statuses to raise a notification for in every App of this project that sets no notification policy of its own. Agents and MCP servers do not use it: FAILED, TERMINATED, STALLED. Comma-separated or repeated. Statuses not listed raise no notification
--workflow-notifications-name string Regular expression the workflow name must match in full for the project's notification policy to raise a notification. Empty matches every workflow
--workflow-notifications-root-only Only raise the project's notifications for workflows with no parent
--archive-binding-name string Output-binding component name that every App of this project with no archive policy of its own writes archived workflow history through. Agents and MCP servers do not use it. Setting this enables archiving
--archive-binding-type string Binding component type for the project's archive destination (e.g., "bindings.aws.s3")
--enable-workflow-archive strings Workflow statuses to archive in every App of this project that sets no archive policy of its own: COMPLETED, FAILED, TERMINATED. Comma-separated or repeated. Statuses not listed are not archived
--ignore-if-exists Exit with success if the project already exists instead of returning an error
--region-group string Region group to place the project across, instead of a single region. Mutually exclusive with --region, and immutable once the project exists.
--duplicate string Create the project as a copy of this existing project's settings and resources. Runtime data such as state, messages and workflow history is not copied. Use --region or --region-group to place the copy somewhere other than the source
-h, --help help for create
Options inherited from parent commands
--api-key string Diagrid Cloud API key
SEE ALSO
- diagrid project - Manage projects