# How to acces CLI on Qnap server

**URL:** <https://forum.mattermost.com/t/how-to-acces-cli-on-qnap-server/8402>\
**Category:** Command Line Interface\
**Created:** [November 5, 2019, 11:56am UTC](https://forum.mattermost.com/t/how-to-acces-cli-on-qnap-server/8402 "2019-11-05T11:56:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aszostak](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@aszostak](https://forum.mattermost.com/u/aszostak)\
**Post date:** [November 5, 2019, 11:56am UTC](https://forum.mattermost.com/t/how-to-acces-cli-on-qnap-server/8402/1 "2019-11-05T11:56:24Z")

</div>

Hello  
I have Mattermost installed on company Qnap server, how can I access mattermost CLI from it?

---

<div class="post-metadata">

**Author:** ![joewai.tye](https://avatars.discourse-cdn.com/v4/letter/j/3e96dc/32.png) [@joewai.tye](https://forum.mattermost.com/u/joewai.tye)\
**Post date:** [November 5, 2019, 11:01pm UTC](https://forum.mattermost.com/t/how-to-acces-cli-on-qnap-server/8402/2 "2019-11-05T23:01:28Z")

</div>

Hey @aszostak, you will need to be in the directory of the Mattermost executable. From there, you should be able to run the CLI commands. For a full list of commands, feel free to check out this documentation : [https://docs.mattermost.com/administration/command-line-tools.html#using-the-cli](https://docs.mattermost.com/administration/command-line-tools.html#using-the-cli)

---

<div class="post-metadata">

**Author:** ![aszostak](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@aszostak](https://forum.mattermost.com/u/aszostak)\
**Post date:** [November 6, 2019, 9:13am UTC](https://forum.mattermost.com/t/how-to-acces-cli-on-qnap-server/8402/3 "2019-11-06T09:13:46Z")

</div>

edit/  
@joewai.tye Thanks a lot!  
It seems that I was in the wrong directory also  
Found full solution here:

> [@Admin locked out with no email enabled](https://forum.mattermost.com/t/admin-locked-out-with-no-email-enabled/7836/9):
>
> docker ps returns Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? if I run the docker daemon using the command dockerd in thse same directory and then docker ps I get the following empty list: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
