# create-join-bundle (Beta)

This topic describes the options available with the Embedded Cluster `create-join-bundle` command. Use this command to produce a bundle that nodes can use to join the cluster with one or more roles.

## Usage

```bash
sudo ./<app-slug> create-join-bundle [flags]
```

## Flags

<table>
  <tr>
    <th width="30%">Flag</th>
    <th width="20%">Type</th>
    <th width="50%">Description</th>
  </tr>
  <tr>
    <td>`--output`</td>
    <td>string</td>
    <td>Output path for the bundle. **Default:** A path of the form `./cli-join-ROLE-TIMESTAMP.tar.gz` (the CLI fills in the first role name and timestamp).</td>
  </tr>
  <tr>
    <td>`--roles`</td>
    <td>strings</td>
    <td>One or more role names to assign to the joining node, comma-separated (for example, `--roles app` or `--roles app,db`). Valid role names are the default controller role and any custom roles declared in the Embedded Cluster Config under [`roles`](embedded-config#roles). **Required.**</td>
  </tr>
  <tr>
    <td>`--ttl`</td>
    <td>string</td>
    <td>Token expiration time (for example, `24h`, `48h`, `168h`). **Default:** `24h`</td>
  </tr>
  <tr>
    <td>`-h`, `--help`</td>
    <td></td>
    <td>Help for `create-join-bundle`.</td>
  </tr>
</table>