---
# System prepended metadata

title: Bee clef export method 2 (swarm cli)

---

# Method 2 with Swarm Cli

Become root

```bash
sudo su -
```
Stop both services

```bash
systemctl stop bee-clef.service
systemctl stop bee.service
```

Re-encrypt clef's keys with bee's password
First get both passwords

```bash
cat /var/lib/bee-clef/passwords/bee-0_*
cat /var/lib/bee/password
```

Re-encrypt clef's key with bee's password

```bash
swarm-cli utility lock /var/lib/bee-clef/keystore/UTC--*
```

Input clef's password, later input bee's password, command will output new key

Set that output to /var/lib/bee/keys/swarm.key

Start bee

```bash
systemctl start bee
```
Inspect logs that all is good

```bash
journalctl -f -u bee
```
Uninstall and purge bee-clef

```bash
apt-get remove --purge bee-clef
```