summaryrefslogtreecommitdiff
path: root/content/install/using-the-cli.md
blob: 4c023c5df63d5f70f31408edf567b0482dd25888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: "Using the CLI"
date: 2023-01-10T17:55:41-03:00
draft: false
weight: 3
summary: YAMS comes with a very handy CLI to manage all your media server. Here's where you'll learn how to use it.
---

YAMS comes with a very handy CLI to manage your media server. Here's where you'll learn how to use it.

On your server, you can type: 
```bash
yams --help
```

And you'll get the following message:

```bash
yams - Yet Another Media Server

Usage: yams [--help|restart|stop|start]
options:
--help     displays this help message
restart    restarts yams services
stop       stops all yams services
start      starts yams services
destroy    destroy yams services so you can start from scratch
check-vpn  checks if the VPN is working as expected
```

Everything is very self-explanatory, but I'll go in more detail here:

- `restart`: Restarts all the services. It stops them gracefully and starts them again.
- `stop`: Stops all the services gracefully.
- `start`: Starts all the services.
- `destroy`: Destroys all the services so you can start the configuration from scratch. ⚠️ Be careful! ⚠️ There's no going back after this!
- `check-vpn`: Checks the IP of the qBittorrent service and compares it to your own IP. If they are the same, it's going to warn you.


If you get a `docker` permission error trying to use the CLI, go [here](/faqs/) to fix it.