# Command line interface The Homarr image ships with a built-in recovery tool. This can be useful, if you do not have access to Homarr or if something is not working. Please note that the CLI is an *emergency tool*, not an API tool. :::caution Using the recovery CLi tool can cause problems when requests are being sent to Homarr while the tool is running. \ You should also create a backup of the database, in case you break something. ::: ## Execute CLI with Docker 1. Execute ``docker ps | grep homarr`` on the root system with Docker to find the container ID of your Homarr container. 2. Run ``docker exec -it /bin/bash homarr ``. \ Replace ```` with your container ID from step 1. \ Replace ```` with the command you want to execute (see sub-pages). ## Execute CLI with QNAP 1. Open Container Station in the QNAP Web Interface ![](img/334116069-e7ec4726-3df7-4dc6-a3e0-b745e7eef17f.png) 2. Select Containers in the menu bar on the left ![](img/334116205-aa09ce40-0701-4f7d-b9f9-b431b9d207c5.png) 3. Select your Homarr Container ![](img/334116303-714b5e07-b9de-4ec0-a2bc-def7ee38750f.png) 4. Click "Execute" in the top right of the Window. ![](img/334116411-df1482f9-3aa9-4686-b77f-e0dca09e60b2.png) 5. Select /bin/bash and click Execute ![](img/334116518-e1ddb515-99c7-4159-81bf-76e889d1e808.png) 6. Run the Homarr command and press enter (eg. homarr reset-owner-password) ![](img/334116642-08c4f204-5cd0-4e4e-a785-0142e1b279ca.png)