# dflow invites:create

> Invite an email address and print the one-time invite token.

Web page: /docs/cli/workspace/invites-create/

This invites an email address into the current workspace and prints a one-time invite token. The default role is `developer`. The token is printed once, including when a copy was also emailed, because you need it when mail is off.

```bash
dflow invites:create EMAIL --role ROLE
```

## Flags

`--role`, default `developer`. Globals.

## What you see

The terminal prints `id`, `email`, `role`, and `token`. The token is printed once, followed by `The invite token will not be shown again.` When the API includes `delivery`, the output also names `log` or `smtp`. `log` means a copy was written to the API log. `smtp` means a copy was sent by email. The token is still printed because the creator needs it when mail is off. The exit code is 0. A saved workspace name is resolved to its id before the invite is created. A saved id is used as given.
