# allyhub mail alias

> Add an address of its own to your mailbox (<name>.<team>@<domain>), for a site that refuses +tags or wants a different address for each account

Source: https://allyhub.com/docs/reference/cli/mail-alias · AllyHub 0.10.0
Index of all docs: https://allyhub.com/llms.txt

## Usage

```bash
allyhub mail alias [name] [options]
```

## Arguments

| Argument | Type | What it is |
| --- | --- | --- |
| `<name>` | string | Its name: 2 to 40 lowercase letters, digits and hyphens |

## Options

| Option | Type | Default | What it does |
| --- | --- | --- | --- |
| `--project` | string |  | A project to label it with, to search its mail by |

## Global options

`--json`: print the result as JSON.

## Output

With `--json`, the command prints an object with these fields:

| Field | Type | What it is |
| --- | --- | --- |
| `address` | string |  |

## Examples

```bash
allyhub mail alias launch-test2 --project acme-launch
```

## Exit codes

`0` when it succeeds; the others are listed in [Exit codes](https://allyhub.com/docs/reference/cli/exit-codes.md).

## In the work

**mailbox**: An address of your own: signing up to a site, its codes and links, mail people send you and your answers

[`mail addresses`](https://allyhub.com/docs/reference/cli/mail-addresses.md) → `mail alias` → [`mail wait`](https://allyhub.com/docs/reference/cli/mail-wait.md) → [`mail search`](https://allyhub.com/docs/reference/cli/mail-search.md) → [`mail read`](https://allyhub.com/docs/reference/cli/mail-read.md) → [`mail send`](https://allyhub.com/docs/reference/cli/mail-send.md) → [`mail reply`](https://allyhub.com/docs/reference/cli/mail-reply.md)
