# diagrid pubsub update

Update a Diagrid pub/sub broker

### Description

Update the scopes of a Diagrid pub/sub broker.

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

### Examples

```

  # Restrict a pub/sub broker to a specific set of ids
  diagrid pubsub update my-pubsub --project my-project --scopes app-a,app-b

  # Remove all scope restrictions (accessible to every id)
  diagrid pubsub update my-pubsub --project my-project --scopes ""
  
```

### Options

```
  -p, --project string   Name of existing project
      --scopes strings   Comma-separated list of ids that may access this pub/sub broker. Pass an empty value to allow all ids.
  -w, --wait             Wait for long-running resource update to finish
  -h, --help             help for update
```

### Options inherited from parent commands

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

### SEE ALSO

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