# How can I generate the join command to add new nodes to a kURL cluster?

**URL:** <https://community.replicated.com/t/how-can-i-generate-the-join-command-to-add-new-nodes-to-a-kurl-cluster/1139>\
**Category:** How do I?\
**Tags:** kurl\
**Created:** [February 28, 2023, 2:39pm UTC](https://community.replicated.com/t/how-can-i-generate-the-join-command-to-add-new-nodes-to-a-kurl-cluster/1139 "2023-02-28T14:39:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![diamon\_w](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.replicated.com/diamon_w/32/150_2.png) [@diamon\_w](https://community.replicated.com/u/diamon_w)\
**Post date:** [February 28, 2023, 2:39pm UTC](https://community.replicated.com/t/how-can-i-generate-the-join-command-to-add-new-nodes-to-a-kurl-cluster/1139/1 "2023-02-28T14:39:13Z")

</div>

Question: The join commands printed at the end of the kURL installation script expire after 24 hours, so what happens if you don’t have access to the KOTS admin console and you need to generate new join commands for nodes you want to add to the cluster?

Answer: To get new commands, run `tasks.sh join_token` with the relevant parameters (`airgap` and `ha` ) on a primary node such as the following examples:

Non-HA Worker

> curl -sSL [https://kurl.sh/latest/tasks.sh](https://kurl.sh/latest/tasks.sh) | sudo bash -s join\_token

HA Primary or Worker

> curl -sSL [https://kurl.sh/latest/tasks.sh](https://kurl.sh/latest/tasks.sh) | sudo bash -s join\_token ha

HA Airgap Primary or Worker

> cat ./tasks.sh | sudo bash -s join\_token ha airgap

[https://kurl.sh/docs/install-with-kurl/adding-nodes#standard-installations](https://kurl.sh/docs/install-with-kurl/adding-nodes#standard-installations)
