# diagrid pubsub create

Create a Diagrid pub/sub broker

### Description

Create a Diagrid pub/sub broker to send and receive messages without managing infrastructure.

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

### Examples

```

  # Create a pub/sub broker in a project
  diagrid pubsub create my-pubsub --project my-project
  
```

### Options

```
  -p, --project string     Name of existing project
      --scopes strings     Component scopes, list of ids which will have access to the component created to this Pubsub. Leave empty for giving access to all ids.
  -w, --wait               Wait for long-running resource creation to finish
      --ignore-if-exists   Exit with success if the Pub/Sub Broker already exists instead of returning an error
  -h, --help               help for create
```

### Options inherited from parent commands

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

### SEE ALSO

- [diagrid pubsub](./pubsub.md)	 - Manage Diagrid pub/sub brokers
