# Jottacloud CLI for Linux - RPM packages

## Installation

Save the following to /etc/yum.repos.d/JottaCLI.repo :

```
[jotta-cli]
name=Jottacloud CLI
baseurl=https://repo.jotta.cloud/redhat
gpgcheck=1
gpgkey=https://repo.jotta.cloud/jotta.gpg
```

Install the package `jotta-cli` :

```
sudo yum install jotta-cli
```

We supply init script for running `jotta-cli` in systemd user slice
After installation (and on upgrade) you can start and restart the CLI-daemon with:

```
run_jottad
```

This will also make sure the daemon starts upon user login

To get started:

```
jotta-cli help
```

## Update gpg key

If the key has expired you can purge the old one and import the new one by running the following:

```
curl -fsSL https://repo.jotta.cloud/jotta.gpg | gpg --import && gpg --export --armor | sudo rpm --import -
```

# Starting at boot

As jottad is now running in a user slice it will not start at boottime unless you also create a usersession at boot time.

You can use `loginctl enable-linger USERNAME` to start a usersession for USERNAME at boottime and jottad will start in that session.

more info here: <https://wiki.archlinux.org/title/systemd/User#Automatic_start-up_of_systemd_user_instances>