---
title: "Rest PKI Core - Command-line tool"
description: "Command-line tool of on-premises Rest PKI Core instances for administrative tasks: how to run a command from the installation directory or on Docker."
canonical: "https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/tool"
locale: "en"
product: "Rest PKI Core"
last_updated: "2026-09-15"
---

# Rest PKI Core - Command-line tool

[On-premises instances](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises) of [Rest PKI Core](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core) provide a command-line tool that can be
used to perform certain administrative tasks.

## Running a command

Open a terminal and navigate into the installation directory, which depends on the installation plataform
(the actual directory could be different if you chose a custom directory during the setup):

* Windows Server: `cd C:\inetpub\RestPkiCore`
* Linux: `cd /usr/share/restpkicore`

Then, run:

```sh
dotnet Lacuna.RestPki.Site.dll [settings] -- command [command-options]
```

Or, on Docker, simply run the following on any directory:

```sh
docker run -i lacunasoftware/restpkicore:5.0 [settings] -- command [command-options]
```

The `settings` arguments are additional settings to overwrite settings from configuration files and environment variables,
for instance `--Section1:Name1=value1 --Section2:Name2=value2`.

The `command-options` arguments depend on each command, see the command's specific documentation.

Available commands:

* [gen-enc-key](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/tool/gen-enc-key)
* [hash-root-pass](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/tool/hash-root-pass)
* [update-db](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/tool/update-db)
* [test-email](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises/tool/test-email)

## See also

* [Rest PKI Core on-premises](https://docs.lacunasoftware.com/en-us/articles/rest-pki/core/on-premises)
