# diagrid app access grant

Grant a caller access to invoke an App

```
diagrid app access grant <app> [flags]
```

### Examples

```

  # Allow order-api to invoke my-app.
  diagrid app access grant my-app --project my-project --caller order-api

  # Allow multiple callers at once.
  diagrid app access grant my-app --project my-project --callers order-api,payment-svc,inventory

  # Set the default action to deny (lock the app down; only granted callers get in).
  diagrid app access grant my-app --project my-project --caller '*' --action deny

  # Explicitly deny one caller while the default action is allow.
  diagrid app access grant my-app --project my-project --caller bad-app --action deny

```

### Options

```
  -p, --project string    Name of existing project
      --caller string     ID of a single caller to grant access to (use '*' to set the default action)
      --callers strings   Comma-separated caller IDs to grant access to
      --action string     Action for the caller(s): allow or deny (default "allow")
  -w, --wait              Wait for long-running resource update to finish
  -h, --help              help for grant
```

### Options inherited from parent commands

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

### SEE ALSO

- [diagrid app access](./access.md)	 - Manage which callers may invoke an App
