Skip to main content

Part II · CLI Reference

Almost everything the Administrator Guide describes is done in the web panel. A few actions exist only in the console of the server: the first start of the panel, HTTPS with your own certificate, a tunnel to the panel, the adoption of a classic installation and a few more. They are collected below under “Console procedures”, and the guide links to them. After the procedures comes the help of each dcp command as the program itself prints it. The help is taken from DCP 1.0.21 automatically. Where this document corrects it, a note “Corrected here” under the command says so, and this document is correct.

Commands that change the server run as root (sudo). The commands listed below show a plan first and ask for confirmation. The --yes flag confirms in advance, and the --dry-run flag only shows the plan:

  • adopt, install, remote install, uninstall, cleanup
  • start, stop, restore, revert
  • module add, module remove, module switch, module set
  • firewall open-queue, firewall close-queue, pack prepare
  • upgrade, only with --all-servers

To see the plan of an update of this server alone, run dcp plan <version>.

dcp overview prints what the Overview screen shows. On a main server where a newer recommended version is offered, it adds the line “DerScanner <version> is available for update”.

For dcp install, name the edition with --edition international, or give the country with --country and its two-letter code, and the country decides the edition. With neither flag, the delivery folder, the existing installation or the DerScanner images already on the server decide; when none of them does, the edition is international. On a node (--node) it is not: when nothing on that server tells the edition, the command refuses, and you name it with --edition as dcp status shows it on the main server. An --edition that does not fit the --country is refused.

The --pack flag of dcp remote install is needed to install DerScanner whole on a server. It is not needed when you install only modules on a node with --node and --modules: the server downloads them itself, or this server downloads them for it.

When dcp verify signs in to DerScanner, it uses the account from DCP_API_USER and DCP_API_PASSWORD_FILE if both are set. If neither is set, it uses the administrator account saved with dcp derscanner-admin set, once DerScanner has accepted it. Setting only one of the two variables is an error. When the DerScanner API does not answer, dcp verify repeats the request several times with a pause and then says “API login: no answer at <path> within … (…)”. A service that stopped by itself is named with the last error of its log: “Service <service> unhealthy: …. The last error of its log: <error>”.

dcp registry status only reads the saved registry account and does not ask the registry. To check that the registry accepts the account, run sudo dcp network test, or save the account again with sudo dcp registry login, which checks it. sudo dcp derscanner-admin status shows whether DerScanner has accepted the saved administrator account.

Console procedures​

Start the panel for the first time​

The panel is the dcp program on the server. One command starts it, and it comes from one of three sources.

A server with internet access. Run on the server:

curl -fsSL https://registry.derscanner.com/install | sudo bash

The script downloads the newest release of the panel from the public DerSecur download server and checks its checksums and its signature with the DerSecur release key. Then it installs the program as /usr/local/bin/dcp and starts the setup wizard. The country chosen in the wizard decides the edition.

If the download or a check fails, the script installs nothing and says what to do: check the internet access of the server and run the command again, or, when the signature or a checksum does not match, write to DerSecur support.

A server without internet. Transfer the delivery folder to the server (chapter 4) and run in it:

sudo sh install.sh

The same steps are in the README.txt file at the root of the folder.

A manual start, for example after your security team has checked the download. The program is in the delivery folder as dcp/dcp-linux-amd64. Run at the root of the folder:

sudo install -m 755 dcp/dcp-linux-amd64 /usr/local/bin/dcp
sudo dcp ui

On RHEL, AlmaLinux and Rocky Linux, sudo does not look for programs in /usr/local/bin, so add a link: sudo ln -s /usr/local/bin/dcp /usr/bin/dcp. The install.sh script does it for you.

Each way prints the address of the panel, such as https://<server>:9443, and says which login and password sign in. The panel runs in the background as the dcp-ui service and comes back after a reboot of the server, so you can close the console window. Continue in the panel (chapter 2).

New sign-in link and forgotten panel password​

Starting the panel again does not start a second panel. It asks the running one how to sign in:

sudo dcp ui

While the panel has no account of its own, the command prints a new one-time sign-in link. Once the account exists, sign in with your login and password. Set a forgotten panel password again; the command asks for it twice:

sudo dcp passwd --user <panel login>

SSH tunnel to the panel​

The address the panel prints is the one under which the server sees itself. If it is not reachable from your computer (NAT, SSH access only), open a tunnel on your computer:

ssh -L 9443:localhost:9443 -L 8080:localhost:80 <user>@<server>

Then open https://localhost:9443 in the browser. Through this tunnel DerScanner opens at localhost:8080. The panel prints a similar hint when it starts. Keep the tunnel window open while you work in the panel.

Panel at your own address with HTTPS​

The address, the port and the certificate are parameters of the panel's start, not fields of the Settings screen. On a server with systemd the panel runs as the dcp-ui service. The dcp ui command writes its file /etc/systemd/system/dcp-ui.service with the parameters you started it with, and enables the service. So after a reboot the panel comes back with the same address and certificate.

  1. Make sure that the Operations screen of the panel shows no active operations.

  2. Put the certificate and the key on the server, for example in /etc/dcp/tls/, and keep the key from being read by others: sudo chmod 600 /etc/dcp/tls/panel.key.

  3. Stop the panel. While it runs, starting it again only prints a new sign-in link and does not change the parameters:

    sudo systemctl stop dcp-ui.service
  4. Start the panel with the new parameters:

    sudo dcp ui --listen :9443 --cert /etc/dcp/tls/panel.crt --key /etc/dcp/tls/panel.key

    Give the full paths of the certificate and the key, starting with /. The service does not start in your current directory and does not find the files by a relative path. The command then says that the panel service is stopped and disabled, and the panel does not work until you start it again with full paths.

    --cert and --key go only together. If the key does not match the certificate or the port is wrong, the command refuses before it writes the service, and the panel stays stopped. Fix the files or the port and run the command again, or start the panel with its previous parameters: sudo systemctl start dcp-ui.service. In a running firewalld the panel opens its port itself. It does not close the previous port.

  5. Check that the service keeps the parameters: the ExecStart line holds --cert and --key.

    systemctl cat dcp-ui.service
  6. Open the new address and check that the page opens and that the server presents your certificate. If the panel does not open, dcp ui has already rewritten the service with the new parameters, so systemctl start would start the same ones. Stop the service (sudo systemctl stop dcp-ui.service) and run sudo dcp ui with the previous parameters, as the last paragraph below does for the self-signed certificate.

To go back to the panel's self-signed certificate, stop the service the same way and run sudo dcp ui without --cert and --key.

Restart the panel service​

sudo systemctl restart dcp-ui.service
systemctl status dcp-ui.service

The output of the panel, including sign-in links and start errors, is written to /var/lib/dcp/ui/ui.out. Restart the panel when the Operations screen shows no active operations.

Return the previous version of the panel​

Returning the previous version of DerScanner in the panel does not return the panel itself. After an update the previous program of the panel is kept as /usr/local/bin/dcp.prev. To bring it back, run:

sudo install -m 0755 /usr/local/bin/dcp.prev /usr/local/bin/dcp && sudo systemctl restart dcp-ui.service

dcp version then prints the previous version of the panel.

Do not return the panel while the Operations screen shows an active operation. After an update of the panel, dcp revert prints this command with the paths of your server when it has no update of DerScanner to return, and dcp rollback when no update is unfinished.

Adopt the installation on the main server​

Adoption records a running DerScanner in the state of the panel and changes nothing in the product. Run on the main server:

  1. A dry run. It shows the recognized version, edition, directories and warnings:

    sudo dcp adopt --dry-run
  2. If the result is right, adopt the installation:

    sudo dcp adopt --yes

    Then sudo dcp status shows the version and the modules of the adopted installation, and the panel shows it on the Overview screen. If the command refuses or names a problem, change nothing and send its output to DerSecur support.

  3. If the edition could not be told, stop and send the output of the dry run to DerSecur support. Give the --edition international flag only after support confirms the edition. The command takes the edition in this form. Other names are refused.

The dcp adopt command does not recognize a 12.5.x installation. Such an installation is updated only through DerSecur support. The --snapshot-done flag of dcp upgrade applies to classic installations 12.0 to 12.4, whose update has not been verified: make a snapshot of the virtual machine first. An installation 12.6 needs no snapshot, and 12.5 is not recognized.

Adopt a node of a classic installation​

A SAST, DAST or SCA node of a classic installation is adopted on the node itself. Adoption records the node for its main server in the state of the panel and changes nothing in the product.

  1. On the main server, find the exact adoption command. The node must be in the server list of the panel:

    sudo dcp nodes

    For a node that is not adopted yet, the command prints a line with a ready command sudo dcp adopt --node <address> with the version of the main server (--main-version <version>), sometimes also with the --edition flag. Its address is taken from the module settings of the node. The node compares the address character by character: an IP address only with an IP address, a name only with a name. So the command refuses another address of the same server, even one that the node can reach. If an address is connected to the queue but is not named in the list and dcp cannot tell what it is (the task queue has no administrator account), the line says “<address> is connected to the task queue of this server and is not on the list of servers. dcp cannot tell whether it is a server of DerScanner modules (no administrator account of the task queue): if it is, add it to the servers”. Add such a server to the list of the panel. The command sudo dcp nodes --queue prints only the connected addresses that are not on the list and asks no server of the list.

  2. Copy the dcp/dcp-linux-amd64 file from the delivery folder to the node. In the directory you copied it to, install the program:

    sudo install -m 755 dcp-linux-amd64 /usr/local/bin/dcp

    On RHEL, AlmaLinux and Rocky Linux, add a link, or sudo does not find the program: sudo ln -s /usr/local/bin/dcp /usr/bin/dcp.

  3. On the node, run the ready dcp adopt command that dcp nodes printed, with the dry-run flag:

    sudo dcp adopt --node <address> --main-version <version> --dry-run
  4. If the result names a problem, remove it as the line says and make the dry run again. If the result is right, adopt the node with the same command. Keep every flag of the printed command as it is:

    sudo dcp adopt --node <address> --main-version <version> --yes
  5. On the main server check that the node is recorded for it:

    sudo dcp nodes

    Check that the line of the node says “<server>: a node of this server (<modules>), managed by dcp”. If the dry run or the adoption refuses and you cannot remove the cause, stop and send the output to DerSecur support. Nothing of the product changes on the node.

If the result warns “DerScanner <version> was not verified with this update — make a snapshot of the virtual machine before the update”, make a snapshot of the virtual machine before the update.

DAST test scan​

The panel does not check DAST with a test scan, because its site is given only in the console. A DAST scan attacks the site it scans. Do not name a site you are not allowed to scan, or one that is on the server being updated. Run on the main server after the update:

sudo dcp test-scan --modules dast --dast-target https://<site>

A pass prints “DAST: the test scan passed in … min”. Otherwise the line names the reason (the site, the license, the sign-in or no result within the time); fix it and run the command again.

The test scan needs a DerScanner license and the DerScanner administrator account saved in the panel (chapter 32). The test project is deleted after the check. It is made for the test only and none of your projects is touched, so no backup is needed. When you update all servers from the console, the --dast-target flag of dcp upgrade --all-servers gives the same site.

Install Builder from a delivery folder​

The Builder form of the panel takes no delivery folder. Without access to the registry, install Builder from a folder that carries it in the console of the main server. Prepare the folder with builder in --modules, as the procedure Prepare a delivery folder of a given version describes, and put it on the main server.

Before the install, make a backup of the main server (chapter 22): the command makes none of its own. Do not run it on top of a Builder that already works.

  1. Find the id of the Builder server in the list of the panel. Each server has an id and a name there:

    sudo grep -E '"(id|name)"' /var/lib/dcp/targets/targets.json
  2. Make a dry run:

    sudo dcp module add builder --server <id> --pack <folder> --dry-run
  3. If the plan names a problem, remove it as the line says and make the dry run again. If the plan is right, install. The command copies the part of the folder with Builder to that server over SSH and installs it there:

    sudo dcp module add builder --server <id> --pack <folder> --yes

Check that the Builder card in the Settings screen shows the server it runs on. If the plan or the installation refuses, read the line of the result, remove the cause and make the dry run again. If the cause is not clear, send the support archive of the main server to DerSecur support (chapter 31).

Forget a lost Builder server​

Only when the Builder server is lost for good. The panel forgets the Builder on the main server, and DerScanner stops using it. The lost server is not contacted, and its files and service stay. An installation has one Builder, and the command forgets only that one. Run on the main server:

  1. A dry run. It names the server the Builder is recorded on:

    sudo dcp module remove builder --forget --dry-run
  2. If it does not name the lost server, stop and contact DerSecur support. That Builder works, and the command would cut it off from DerScanner. The --server flag does not choose another server: the command accepts only the server the Builder is recorded on.

  3. If it names the lost server, run:

    sudo dcp module remove builder --forget --yes

    The result says “dcp forgot Builder on <server>: DerScanner here no longer uses it. Nothing was changed on <server>: the files and the service of Builder there were left as they were”. Builder can then be installed on another server.

Install DerScanner on a remote server with the modules you choose​

The button of the panel installs on a remote server only the modules that the release takes by default and that the delivery folder carries. DAST, DerAI and DerAI-Lite need this procedure. Builder does not: a main server refuses it, and the dry run does not show this. Install Builder as the procedure Install Builder from a delivery folder describes. The server must be in the list of the panel, with its key confirmed and its check passed (chapter 5). It must have no DerScanner yet. Run on the server where the panel works:

  1. Find the id of the server in the list of the panel. Each server has an id and a name there, and the command takes only the id:

    sudo grep -E '"(id|name)"' /var/lib/dcp/targets/targets.json
  2. Make a dry run. Name the modules you need after --modules:

    sudo dcp remote install <id> <version> --pack <folder> --modules sast,dast,sca --dry-run
  3. If the plan names a problem, remove it as the line says and make the dry run again. If the plan is right, install. The command copies the part of the folder for that server over SSH and installs it there:

    sudo dcp remote install <id> <version> --pack <folder> --modules sast,dast,sca --yes

The result of the command names the line about signing in to DerScanner, as the task Install the whole DerScanner on a remote server describes. Open the Servers screen and check the version and the modules of the server. If the plan or the installation refuses, read the line of the result, fix the cause and make the dry run again.

Remove the installation from a scanner server​

This is how a scanner server is taken out of the installation, and also how the set of modules of a node is changed: neither the panel nor the dcp module remove command removes SAST, DAST or SCA from a node, only the whole installation can be removed.

The removal deletes the containers, volumes and images of DerScanner and moves the product directory aside. The volumes with data are deleted for good, and what was kept for the return to the previous version goes with them. Backups and Docker stay. Run on the server being removed. <name> is the name of this server, as the file /etc/hostname has it:

sudo dcp uninstall --host <name> --dry-run
sudo dcp uninstall --host <name> --backup

Read the result of the command: it says what was removed and where the backup is. Go on only after it reports that the removal is done.

The --host flag confirms the removal with the name of this server, and the --backup flag makes a backup first. What comes next depends on your goal:

  • The server is no longer needed. Remove it from the list in the panel (chapter 14).
  • The server needs another set of modules. Keep its entry in the list and install the new set on this server (chapter 8).

Clean an unfinished installation with a backup​

An installation that stopped midway is not recorded as installed, so dcp backup refuses to work on it. The Remove what it left button of the panel makes no backup either. This procedure removes what the interrupted installation left and makes a backup of the customer data first. The removal deletes the containers, volumes and images of DerScanner, every data volume included, and moves the product directory aside. The volumes with data are deleted for good. Backups and Docker stay. Run on the server with the interrupted installation:

  1. Make a dry run. <name> is the name of this server, as the file /etc/hostname has it:

    sudo dcp uninstall --host <name> --backup --dry-run

    The plan says that an installation stopped midway is removed and how many containers, volumes and images are removed. If the plan names a problem with the backup (the place or the free space), remove it and make the dry run again. Nothing is removed until the run without --dry-run. The folder of the backup is named after the run, in the result of step 2.

  2. If the plan is right, run it. The --host flag confirms the removal with the name of the server, and the --backup flag makes the backup before anything is removed:

    sudo dcp uninstall --host <name> --backup --yes

Success is seen in two lines of the result. First “Backup finished: <folder> (<n> databases)”: the backup is in a folder of the backup directory, /var/lib/dcp/backups by default (chapter 22). Then “DerScanner <version> is removed; its directory is at <folder>”. After the second line you can install again.

If the name does not match, the command asks you to type the name of this server in --host and removes nothing. If the backup fails, nothing is removed: read the line of the result, free the place or the space, and run the command again. If the removal stopped after the backup, do not start a new installation. Keep the backup folder that the first run named: it holds your data. Run the command again without --backup and read its result: a second backup would copy only the databases left on the server and may be empty. If the cause is not clear, send the support archive of the server to DerSecur support (chapter 31).

Limit access to the task queue​

Nodes connect to the task queue of the main server through port 61616. Docker publishes this port past the rules of firewalld and ufw, so their rules do not close it. The panel limits the port itself: when you place a module on a node or remove a server from the list, it opens or closes the port for that node. In an installation where the panel does not know the nodes yet, limit the port on the main server:

sudo dcp firewall open-queue --node <node address>
sudo dcp firewall close-queue

Run the first command for each node. Right after the first of them, the queue is reachable only from the nodes the command has been run for, and the other nodes lose it until their own command. So make the full list of nodes in advance. sudo dcp nodes shows the servers of the panel's server list. A server that is connected to the queue now but is not on the list it shows as one that may be a node of this server. If dcp cannot read what the connection is, because it has no administrator account of the task queue, it says “<address> is connected to the task queue of this server and is not on the list of servers. dcp cannot tell whether it is a server of DerScanner modules (no administrator account of the task queue): if it is, add it to the servers”. Such an address may be a server of DerScanner modules, so add it to the server list if it is one. sudo dcp nodes --queue shows only these addresses and asks no server of the list, so it is quick. A node that is not connected now and not on the list is not shown. Add every node to the server list first. Run the commands for all nodes one after another, in one maintenance window. Run the second command when there are no nodes: the queue is then reachable on this server only. sudo dcp firewall close-queue --node <node address> closes the queue to one node. The --dry-run flag shows the plan without changes.

Check the result: the command prints the addresses that now reach the queue. Later you can read them in the field nodes of the file /var/lib/dcp/queue-nodes.json, with sudo cat /var/lib/dcp/queue-nodes.json. An empty list means that the queue is reachable on this server only.

The command sudo dcp firewall open-queue without --node is a different action. It only opens port 61616 in firewalld, for every address, on RHEL, AlmaLinux and Rocky Linux. On other systems, Ubuntu with ufw among them, it changes nothing and asks you to allow the port yourself. To limit the queue to chosen nodes, use --node.

When the queue changes from access on this server only to access from nodes, or back, the command recreates the container of the task queue. While it restarts, the queue is not available to the main server and the nodes. So run these commands when no scans are running or waiting in the queue.

Confirm a queue address that is not a server of modules​

The update of all servers refuses when an address that is not on the list of servers is connected to the task queue and dcp cannot tell what it is. A server of modules that was left out would stay on the old version. Nothing is changed by the refusal. Run on the main server:

  1. Find the addresses that the refusal named. The command prints the queue addresses that are not on the list:

    sudo dcp nodes --queue
  2. If the address belongs to a server of DerScanner modules, add this server to the list of the panel (chapter 8), adopt it and repeat the update. Do not confirm such an address.

  3. If the address is not a server of DerScanner modules, confirm it in the update command. Run the dry run first and read the plan:

    sudo dcp upgrade <version> --all-servers --accept-remote <address> --dry-run
  4. If the plan is right, run the update with the same flag. The command asks for the confirmation, and --yes gives it in advance. The confirmation goes into the journal:

    sudo dcp upgrade <version> --all-servers --accept-remote <address> --yes

Name in --accept-remote only an address that you checked: a confirmed server of modules would stay on the old version. Write several addresses with commas. Add the other flags you use for the update. With --all-servers the command does not take --registry-user: it uses the registry account kept in the panel, or --registry-auth FILE, or the delivery folder --pack DIR. The result prints a line for every server of the plan, and dcp status after the update names the new version. If the command refuses again, read the addresses it names and remove the cause, and do not change the --accept-remote flag at random.

Prepare a delivery folder of a given version​

The wizard prepares a folder of the newest version only. A folder of another version, for example the version you update a server without internet to, is prepared in the console on a server with internet.

For a newer DerScanner, first save the registry account in the panel of the server with internet: the Settings screen, the Registry account card (chapter 32). The command checks the right to these versions with the account of --registry-user, or with the saved account when the flag is not given.

  1. On the server to update, find the edition of the installation and its modules. The version line names the edition, international. Give it in this form in the pack prepare commands below:

    sudo dcp status
  2. On the server with internet, see the versions that can be prepared:

    sudo dcp releases
  3. Make a dry run. Give the target version, the edition from dcp status and every module installed on the server to update:

    sudo dcp pack prepare --release <version> --edition <edition> --modules sast,dast,sca --registry-user <login> --dry-run

    The command asks for the registry password itself. The plan shows the modules, the download size and the free space. To carry Builder in the folder, add builder to --modules, for a version that includes Builder.

  4. If the plan names a problem, remove it as the line says and make the dry run again. If the plan is right, prepare the folder:

    sudo dcp pack prepare --release <version> --edition <edition> --modules sast,dast,sca --registry-user <login>
  5. The command prints the path and the fingerprint of the folder: write them down. The folder derscanner-<version>-<edition> appears in your home directory: under sudo the home directory of the user who ran sudo, /root only in a root shell, and the --out <directory> flag chooses another one. The fingerprint is also written to the file ending in .FINGERPRINT.txt next to the folder.

If the plan refuses or the preparation fails, remove the cause as the line says and run the same command again.

The same command continues an interrupted preparation, and what was downloaded is not downloaded again. Transfer the whole folder to the server without internet (chapter 20).

Restore a backup by its path​

The Backups screen shows backups from the backup directory only. The Settings screen shows its path in the Files and directories section, by default /var/lib/dcp/backups. If the backup is in another directory, name the directory:

sudo dcp restore <backup directory> --dry-run
sudo dcp restore <backup directory>

The restore replaces the current data with the backup: scans and projects made after the backup are lost. The backup must be of the same DerScanner version. The command makes a safety backup before the restore. Read the plan and the confirmation. When the restore is done, the result says “Restored from <backup directory>”. A backup of another version is refused: to go back to the version before the last update, use the return of the previous version, not a restore.

Return the previous version on all servers​

If the return to the previous version on all servers failed in the panel, return the whole installation from the main server.

  1. Make a dry run and read the plan:

    sudo dcp revert --all-servers --dry-run

    The return brings back the data as at the update: projects, scans, users and settings made after the update disappear, as the plan says. A safety backup of the current data stays on the server.

    If the main server has too little disk space for the return, the dry run is refused with “The main server <main server> cannot go back: <reason>. Nothing was changed”, and the reason names the space needed and free. Free space on the main server and make the dry run again. The return checks the space again before any server goes back.

  2. If the plan says nothing about scans, run the return:

    sudo dcp revert --all-servers
  3. If scans are running or waiting in the queue, the command refuses without a choice. Add one of the flags. --drain waits for the scans to end, and its value sets how long, for example --drain=2h. Without a value it waits 60 minutes. If the scans have not ended by then, nothing is changed: run the command again later, with a longer --drain, or with --stop-scans. --stop-scans goes on at once: running DAST and SCA scans end with an error, and SAST scans return to the queue.

    sudo dcp revert --all-servers --drain
  4. If the plan says that it is not known whether scans are running, the command cannot wait for them. Save the DerScanner administrator account in the panel (chapter 32) and make the dry run again. If the product does not respond, go on with --stop-scans.

During the return the panel stops the scanners of the nodes until the main server is back at their version, and then starts them itself. Do not start these scanners by hand.

The result has a line for every server. Then check the version with sudo dcp status on the main server, and the nodes on the Overview screen of the panel.

Record a finished update​

Use this when an update finished and passed its checks, but the panel could not write the new version into its state, for example because the disk was full. Free the space first, then run on the server:

sudo dcp rollback --record

The command shows a plan: it records the new version and takes nothing back. Read it and confirm, or add --yes. Then sudo dcp status names the new version. If the update did not finish, the command refuses and changes nothing: finish such an update with sudo dcp rollback without the flag.

Identity of a cloned server​

The panel marks every backup with the id of the server from the file /var/lib/dcp/server-id. If the clone got a system id of its own (/etc/machine-id), the panel makes a new id for it by itself. If the backups of the clone and of the original server still look like backups of one server, delete this file on the clone:

sudo rm /var/lib/dcp/server-id

This is the only file of the panel that is deleted by hand. The new id appears with the next backup.

Support archive of a remote server​

The panel collects the archive only for the server it runs on. Collect the archive of a remote server on that server:

  1. Connect to the server over SSH and collect the archive for the period you need into your home directory. The --out flag takes a directory, as here, or the name of a new file; without it, the archive goes to the current directory:

    sudo dcp support-bundle --since 7d --out ~

    The command shows the full path of the ZIP file and its password once. Keep the password apart from the file.

  2. The file belongs to root. Still on the server, give it to your user:

    sudo chown <user> <full path of the archive>
  3. On your computer, copy the file from the server with the path that the command showed:

    scp <user>@<server>:<full path of the archive> .

Check that the file is on your computer and is not empty. If the copy fails, check the path that the command showed and your access to the server, and run it again.

The archive holds no passwords, tokens or keys. Scans and tasks go into it only as ids, states, dates and errors.

dcp​

DerSecur Control Panel 1.0.21 (dcp): installs, checks, serves and upgrades DerScanner.

Usage: dcp [global flags] <command> [flags]

Read only (nothing on the host is changed):
check [--modules m,..] [--target V] [--edition E] [--registry-user LOGIN] can this host run DerScanner
adopt --dry-run [--edition E] [--node ADDRESS]
recognise the installed version
plan <version> [--edition <edition>] [--pack DIR] [--modules m,..] [--add m,..] [--without-rules]
upgrade steps, disk space, downtime, risks; executes nothing
status version, line, modules, containers, data versions
overview the Overview screen: modules, license, backups, updates
verify [--stable 3m] health, volumes, database schema, rules, SCA database, API, license
releases versions that can be installed (line, edition, modules)
api-changes [--from V --to V]
changes of the DerScanner REST API between two versions (operations added, removed, changed)
versions [--check]
installed and latest of the panel, DerScanner and its modules (registry, else the delivery folder); --check asks the registry now
nodes
What each server of the list is to this server: a node of it, of another main server, or none — read only
logs [--module m] [--level l] [--since 2h] [--kind k] [--services]
dcp journal and service logs
support-bundle [--since 7d] [--out DIR|FILE]
archive for support without secrets
languages | version
languages of dcp; dcp version

Changing the host (a plan first, then confirmation or --yes):
adopt --yes [--edition E] [--node ADDRESS]
--yes records it in the state
install <version> [--edition international | --country CC] [--modules m,..] (--registry-user LOGIN | --offline | --pack DIR) [--license FILE] [--trial] [--dry-run]
clean installation from the registry or a delivery folder; --trial marks a trial installation
install <version> [--edition international] --node ADDRESS --modules sast[,dast,sca] (--registry-user LOGIN | --offline | --pack DIR) [--dry-run]
SAST, DAST or SCA on this server for the main server at ADDRESS (this server reaches its port 61616); no Core here
network show|set|test|rollback|ca|docker
How this server reaches the DerScanner registry: proxy, corporate certificates, tests
license load FILE load a license into the product
license id the Installation ID of the product (what a license is issued for)
rules load | upgrade <version> load the rules of the installed release through the API
test-scan [--modules sast,dast,sca] [--timeout 20m] [--dast-target URL]
a small scan of each scanner type through DerScanner, waited for; the test projects are deleted afterwards
start|stop <module> [--dry-run] stop or start a module; data stay
module add|remove|switch <module> [--dry-run]
add, remove or switch a module (DerAI and DerAI-Lite); a plan first
module get|components [<module> [<setting>]]
the settings of a module; components: the optional parts of the installation
module set <module> <setting>=<value> [--dry-run]
change a setting of a module (SAST: threads — scans at the same time); only that module restarts
boot [enable] after a reboot: the product as the administrator left it; enable: the unit
docker install the pinned Docker on its own
backup [list] backup of customer data; list: the backups of this host
restore <dir> [--dry-run] [--stable 3m] restore a backup of the same version (a safety backup first)
uninstall --host NAME [--backup] [--dry-run]
remove the product (not Docker), confirmed with the host name
firewall open-queue [--dry-run]
on the main server (RHEL, AlmaLinux, Rocky): open port 61616/tcp in firewalld for the modules on other servers
firewall open-queue --node ADDRESS | close-queue [--node ADDRESS]
the task queue (61616) reachable from the scanner servers given only, or on this server only
pack build|prepare|dcp|verify|import|list|keygen delivery folders: images, Docker, release.json, checksums, signature
upgrade <version> [--edition E] (--registry-user LOGIN | --offline | --pack DIR) [--allow-draft] [--force-low-disk] [--without-rules] [--modules m,..] [--add m,..]; all servers: upgrade <version> --all-servers [--pack DIR] [--edition E] [--dry-run] (no --pack: the registry with the account kept in the panel)
upgrade to a newer version: images, backup, new version with the old data, verify; a failure rolls back
rollback [--record] finish the rollback of an upgrade dcp did not finish; --record only records a finished update
revert [--dry-run] [--stable 3m] return to the version before the last update, from what it kept on this server (its data as at the update)
cleanup [--dry-run] remove what upgrades kept (old files, SCA volume, backup, images)
self-update [--check] [--pack DIR | --online] replace this dcp with the newer dcp of a signed delivery folder (the old one comes back if the new one does not run)
sign verify [--catalog] FILE
check a signature, or the signatures built into this dcp

Web interface:
ui [--listen :9443] [--cert C --key K]
the web interface (prints its address and how to sign in)
setup [finish] the setup wizard; finish: the trial becomes an ordinary installation
registry login --user LOGIN | status | logout | reach
the account of the DerScanner registry (the password is asked, or read from stdin); reach: whether the registry answers from this server
registry mirror set auto|main|mirror|ADDRESS | mirror status
the registry server: automatic (main server, then mirror), main, mirror, or an address of your own
derscanner-admin set [--user LOGIN] | status
the DerScanner administrator account dcp signs in with (the password is asked, or read from stdin)
remote run <server> -- <command>
run a command of the control panel on a server of the list (as root, its journal comes here)
remote trust <server> [--fingerprint SHA256:...]
show the key of a server of the list, and confirm it once compared with the server (dcp signs in only to a server whose key is confirmed)
remote install <server> <version> [--pack DIR] [--modules M] [--node ADDRESS] [--yes]
install DerScanner on a server of the list from a pack here (its part for that server is copied there); with --node only the modules, for the main server at ADDRESS
passwd [--user NAME] [--password-file FILE]
change the password of a panel account (twice on stdin or from a file)

Global flags:
--json machine-readable output with message codes
--lang CODE en, de, es, it, ar, hi, zh, ru, kk (default: DCP_LANG, LANG, then en)
--product NAME product (default derscanner)
--root DIR product root (default /opt/derscanner)
--state FILE state file (default /var/lib/dcp/state.json)
--log-dir DIR journal directory (default /var/lib/dcp/log)
--settings FILE settings (default /var/lib/dcp/settings.json)
--backups DIR backups (default /var/lib/dcp/backups)

API login for verify: DCP_API_USER and DCP_API_PASSWORD_FILE (a file with the password).
Exit codes: 0 success, 1 error (nothing changed), 2 error that needs a human.

Corrected here: the dcp upgrade line; the commands DerSecur uses to sign and publish releases, and the flags for its own test builds, are left out. The help that dcp 1.0.21 prints says otherwise; this document is correct.

dcp adopt​

Usage: dcp adopt [flags]
Recognise the installed DerScanner; --yes records it in the state of dcp

Flags:
--dry-run Show the plan; change nothing
--edition VALUE Edition of the installation, as your delivery or contract names it
--main-version VALUE the version of the main server at --node, as dcp recorded it there: tells a node of a classic 12.0-12.4, whose images do not (the panel passes it)
--node VALUE a server of modules (SAST, DAST, SCA) of a classic installation: record it for the main server at this address; nothing of the product changes
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the --main-version line. The help that dcp 1.0.21 prints says otherwise; this document is correct.

dcp api-changes​

Usage: dcp api-changes [flags]
Changes of the DerScanner REST API between two versions: operations added, removed and changed, and calls whose behaviour changed; without --from and --to, the versions it knows. Read only

Flags:
--from VALUE The version the changes are counted from (the installed one, for example)
--to VALUE The version the changes are counted to

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp backup​

Usage: dcp backup [flags]
Back up the customer data of the product (databases, files, settings)

Subcommands:
dcp backup list The backups of this server and what upgrades kept

Flags:
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp backup list​

Usage: dcp backup list [flags]
The backups of this server and what upgrades kept

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp boot​

Usage: dcp boot [flags]
After a reboot: bring the product back as the administrator left it

Subcommands:
dcp boot enable Run dcp boot at every start of the server

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp boot enable​

Usage: dcp boot enable [flags]
Run dcp boot at every start of the server

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp check​

Usage: dcp check [flags]
Can this server run DerScanner: system, resources, Docker, network, registry

Flags:
--edition VALUE Edition of the installation, as your delivery or contract names it
--modules VALUE Optional modules, comma separated (sast,dast,sca,derai); the required ones are always taken
--registry-auth VALUE File with the registry account (JSON: username and password or token; registry optional)
--registry-user VALUE Registry login; the password is asked or read from stdin
--target VALUE The version to check for (default: the newest)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp cleanup​

Usage: dcp cleanup [flags]
Remove what upgrades kept for the way back (old files, SCA volume, backup, images)

Flags:
--all-servers With --leftover: this main server and each of its nodes on the list of servers
--dry-run Show the plan; change nothing
--expired For the timer of an older dcp: deletes nothing and says so
--leftover Remove only what a newer version left after a return: its images that no container uses and its data volumes; the way back and the backups stay
--orphans Remove what earlier operations of dcp put aside and the state no longer records (old folders, old SCA database); listed first, removed after the confirmation
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp derscanner-admin​

Usage: dcp derscanner-admin <set|status>
The DerScanner administrator account dcp signs in with (rules, license, servers, test scan)

Subcommands:
dcp derscanner-admin set Check the account with DerScanner and save it (the password is asked, or read from stdin)
dcp derscanner-admin status Whether the account is verified, not set or refused (the password is never shown)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp derscanner-admin set​

Usage: dcp derscanner-admin set [flags]
Check the account with DerScanner and save it (the password is asked, or read from stdin)

Flags:
--user VALUE Login of the DerScanner administrator (default: admin)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp derscanner-admin status​

Usage: dcp derscanner-admin status [flags]
Whether the account is verified, not set or refused (the password is never shown)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp docker​

Usage: dcp docker <install>
The Docker of the product

Subcommands:
dcp docker install Install the pinned Docker on its own (online or from a delivery folder)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp docker install​

Usage: dcp docker install [flags]
Install the pinned Docker on its own (online or from a delivery folder)

Flags:
--allow-downgrade Install the folder's matching packages with a downgrade when the server has newer libraries than the folder carries and no iptables (apt simulates it first; nothing may be removed)
--edition VALUE Edition of the installation, as your delivery or contract names it (default: international)
--pack VALUE A delivery folder to install from
--version VALUE The DerScanner version whose pinned Docker is installed (default: the newest)
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp firewall​

Usage: dcp firewall <open-queue|close-queue>
The firewall of the main server for the modules on other servers

Subcommands:
dcp firewall open-queue On the main server (RHEL, AlmaLinux, Rocky): open the port of its queue in firewalld for the modules on other servers
dcp firewall close-queue On the main server: the queue reachable no more from the scanner server --node ADDRESS (open-queue --node opens it to one), or, without --node, on this server only

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp firewall close-queue​

Usage: dcp firewall close-queue [flags]
On the main server: the queue reachable no more from the scanner server --node ADDRESS (open-queue --node opens it to one), or, without --node, on this server only

Flags:
--dry-run Show the plan; change nothing
--node VALUE the address of the scanner server the queue closes to; without it, to all
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp firewall open-queue​

Usage: dcp firewall open-queue [flags]
On the main server (RHEL, AlmaLinux, Rocky): open the port of its queue in firewalld for the modules on other servers

Flags:
--dry-run Show the plan; change nothing
--node VALUE the address of the scanner server the queue opens to (that server only)
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp install​

Usage: dcp install [flags] VERSION
Clean installation of DerScanner from the registry or a delivery folder

Flags:
--allow-draft Allow a release that is not published yet (journaled)
--country VALUE the country where DerScanner will be used, by its two-letter code (DE, US...): it decides the edition and is recorded with the installation
--dry-run Show the plan; change nothing
--edition VALUE Edition of the installation, as your delivery or contract names it (the country decides it: --country)
--http-port N On a Mac: publish DerScanner on this port instead of 80 (when 80 is taken)
--https-port N On a Mac: publish DerScanner on this port instead of 443 (when 443 is taken)
--license VALUE License file loaded after the installation
--modules VALUE Optional modules, comma separated (sast,dast,sca,derai); the required ones are always taken
--node VALUE only the modules on this server, for the main server at this address (its queue port must be reachable)
--offline Take the images already loaded on this server (dcp pack import), not the registry
--pack VALUE A delivery folder to install from
--registry-auth VALUE File with the registry account (JSON: username and password or token; registry optional)
--registry-user VALUE Registry login; the password is asked or read from stdin
--stable DURATION How long verify watches the services stay healthy (3m)
--trial Mark a trial installation
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp languages​

Usage: dcp languages [flags]
The languages of dcp and how complete each is

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp license​

Usage: dcp license <id|load>
The license of the product

Subcommands:
dcp license id Print the installation ID the license is bound to
dcp license load Load a license file into the product

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp license id​

Usage: dcp license id [flags]
Print the installation ID the license is bound to

Flags:
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp license load​

Usage: dcp license load [flags] FILE
Load a license file into the product

Flags:
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp logs​

Usage: dcp logs [flags]
The journal of dcp and the logs of the product services

Flags:
--kind VALUE Only entries of this kind
--level VALUE Only entries of this level and above
--lines N Lines of each service log (default: 200)
--module VALUE Only this module
--services Also the logs of the product services
--since VALUE Only entries newer than this (2h, 30m)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp module​

Usage: dcp module <get|set|add|remove|switch|cleanup|connect|components>
Read and change the settings of a module (SAST: how many scans run at the same time), add or remove an optional module, switch between DerAI and DerAI-Lite

Subcommands:
dcp module get Show the settings of a module, their values on this server and the limit of the license
dcp module set Change a setting of a module; only that module restarts
dcp module add Add a module of the installed version (SAST, DAST, SCA, DerAI, DerAI-Lite) on this main server: a backup first; a failure puts the server back as it was
dcp module remove Remove one optional module from this server (a backup first); --keep-data keeps its volumes. Main server: sast, dast, sca, derai, derai-lite (not core, not a module others need); builder: from the main server with --server; on a scanner server: derai, derai-lite, builder only
dcp module switch Put a module in the place of the installed one it cannot run beside (DerAI and DerAI-Lite): a backup first, the old one back on any failure
dcp module cleanup Remove the old build folders of an optional component on this server (what its daily timer runs)
dcp module connect On the main server: tell DerScanner where its optional component runs (after a license was loaded, or when DerScanner did not answer)
dcp module components On the main server: the optional components of the installed version and the server each runs on

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp module add​

Usage: dcp module add [flags] MODULE
Add a module of the installed version (SAST, DAST, SCA, DerAI, DerAI-Lite) on this main server: a backup first; a failure puts the server back as it was

Flags:
--core VALUE With --server: the address of this main server that server reaches (default: its first address)
--dry-run Show the plan; change nothing
--offline Take the images already loaded on this server (dcp pack import), not the registry
--pack VALUE A delivery folder to install from
--registry-auth VALUE File with the registry account (JSON: username and password or token; registry optional)
--registry-user VALUE Registry login; the password is asked or read from stdin
--server VALUE An optional component: put it on this server of the list (its id) for this main server
--stable DURATION How long verify watches the services stay healthy (3m)
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp module cleanup​

Usage: dcp module cleanup [flags] COMPONENT
Remove the old build folders of an optional component on this server (what its daily timer runs)

Flags:
--days N Remove the build folders older than this many days (default: 7)
--max-gb N The most the build folders may take in all, in GB (the oldest go first) (default: 20)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp module components​

Usage: dcp module components [flags]
On the main server: the optional components of the installed version and the server each runs on

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp module connect​

Usage: dcp module connect [flags] COMPONENT
On the main server: tell DerScanner where its optional component runs (after a license was loaded, or when DerScanner did not answer)

Flags:
--server VALUE The server of the list it runs on (default: the one recorded)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp module get​

Usage: dcp module get [flags] MODULE [SETTING]
Show the settings of a module, their values on this server and the limit of the license

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp module remove​

Usage: dcp module remove [flags] MODULE
Remove one optional module from this server (a backup first); --keep-data keeps its volumes. Main server: sast, dast, sca, derai, derai-lite (not core, not a module others need); builder: from the main server with --server; on a scanner server: derai, derai-lite, builder only

Flags:
--abandon End a removal of the module that was interrupted and cannot be finished: the module leaves the state, what is left of it stays (with --yes)
--dry-run Show the plan; change nothing
--forget Builder: its server is gone for good — dcp forgets it here and DerScanner stops using it; that server is not asked, nothing is changed there
--keep-data Keep the volumes of the module (its data stays for when it is installed again)
--server VALUE Builder: the server of the list it runs on, removed there (default: the one recorded)
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp module set​

Usage: dcp module set [flags] MODULE SETTING=VALUE
Change a setting of a module; only that module restarts

Flags:
--dry-run Show the plan; change nothing
--stable DURATION How long verify watches the services stay healthy (3m)
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp module switch​

Usage: dcp module switch [flags] MODULE
Put a module in the place of the installed one it cannot run beside (DerAI and DerAI-Lite): a backup first, the old one back on any failure

Flags:
--dry-run Show the plan; change nothing
--offline Take the images already loaded on this server (dcp pack import), not the registry
--pack VALUE A delivery folder to install from
--registry-auth VALUE File with the registry account (JSON: username and password or token; registry optional)
--registry-user VALUE Registry login; the password is asked or read from stdin
--stable DURATION How long verify watches the services stay healthy (3m)
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp network​

Usage: dcp network <show|set|test|rollback|ca|docker>
How this server reaches the DerScanner registry: proxy, corporate certificates, tests

Subcommands:
dcp network show The settings and what is in effect now (no password is ever shown)
dcp network set Choose the proxy of this server; tested first, kept only if the registry answers
dcp network test Test the connection and the saved registry account; nothing is changed
dcp network rollback Go back to the settings before the last save
dcp network ca Corporate certificates dcp trusts on this server: list, add FILE, remove FINGERPRINT
dcp network docker The network of Docker on this server: status, test, apply and remove (a change restarts Docker, only with --yes)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp network ca​

Usage: dcp network ca [flags]
Corporate certificates dcp trusts on this server: list, add FILE, remove FINGERPRINT

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp network docker​

Usage: dcp network docker [flags]
The network of Docker on this server: status, test, apply and remove (a change restarts Docker, only with --yes)

Flags:
--yes Do it: without this flag nothing changes

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp network rollback​

Usage: dcp network rollback [flags]
Go back to the settings before the last save

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp network set​

Usage: dcp network set [flags]
Choose the proxy of this server; tested first, kept only if the registry answers

Flags:
--force Save even if the test does not reach the registry
--mode VALUE environment, manual or direct
--no-proxy VALUE Addresses that do not go through the proxy, separated by commas
--password-stdin Read the password of the proxy from stdin
--proxy VALUE The address of the proxy: http://host:port (no credentials in it)
--user VALUE The login of the proxy

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp network show​

Usage: dcp network show [flags]
The settings and what is in effect now (no password is ever shown)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp network test​

Usage: dcp network test [flags]
Test the connection and the saved registry account; nothing is changed

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp nodes​

Usage: dcp nodes [flags]
What each server of the list is to this server: a node of it, of another main server, or none — read only

Flags:
--queue Only what is connected to the task queue of this server and is not on the list; the servers of the list are not asked

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp overview​

Usage: dcp overview [flags]
The Overview screen: modules, license, backups, updates

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp pack​

Usage: dcp pack <build|prepare|verify|import|list|keygen|dcp>
Delivery folders: images, Docker, release.json, checksums, signature

Subcommands:
dcp pack build Build a signed delivery folder of the installed release or of --release
dcp pack prepare On a computer with the Internet, prepare a delivery folder for a server without it
dcp pack verify Check the signature and every checksum of a delivery folder; the Docker packages of a prepared folder are also compared with the list built into dcp
dcp pack import Verify a delivery folder and load its images into Docker
dcp pack list List the delivery folders of a directory
dcp pack keygen Make a key pair for signing delivery folders
dcp pack dcp Build a signed folder with dcp alone (self-update on a closed network)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp pack build​

Usage: dcp pack build [flags]
Build a signed delivery folder of the installed release or of --release

Flags:
--base-pack VALUE A delivery folder of the same release: its images and Docker packages are reused
--edition VALUE Edition of the installation, as your delivery or contract names it
--key VALUE Signing key file (PEM)
--manager VALUE The folder of the dcp files DerSecur signed (install.sh at the top of the folder)
--modules VALUE Modules of the folder, comma separated (sast,dast,sca,derai). On an installed server only these are packed, without Core, rules and docs: a folder for a scanner server (install --node) or to add a module. With --release the required modules are added. None given: every installed module
--out VALUE Where the result is written (default: /var/lib/dcp/packs)
--registry VALUE A registry mirror to take the images from
--registry-auth VALUE File with the registry account (JSON: username and password or token; registry optional)
--registry-auth-env VALUE Name of the variable with the registry account (JSON)
--registry-user VALUE Registry login; the password is asked or read from stdin
--release VALUE Release version
--release-manifest VALUE The release.json of the release: every digest is checked against it
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp pack dcp​

Usage: dcp pack dcp [flags]
Build a signed folder with dcp alone (self-update on a closed network)

Flags:
--arch VALUE Architecture of the dcp binary (default: amd64)
--dcp-version VALUE Version of the dcp binary
--edition VALUE Edition of the installation, as your delivery or contract names it
--key VALUE Signing key file (PEM)
--out VALUE Where the result is written (default: /var/lib/dcp/packs)
--panel VALUE The dcp binary put into the folder
--release VALUE Release version

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp pack import​

Usage: dcp pack import [flags] DIR
Verify a delivery folder and load its images into Docker

Flags:
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp pack keygen​

Usage: dcp pack keygen [flags] DIR
Make a key pair for signing delivery folders

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp pack list​

Usage: dcp pack list [flags]
List the delivery folders of a directory

Flags:
--dir VALUE Directory of the delivery folders (default: /var/lib/dcp/packs)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp pack prepare​

Usage: dcp pack prepare [flags]
On a computer with the Internet, prepare a delivery folder for a server without it

Flags:
--dist-url VALUE Where the dcp files of the folder are taken (an https address or a folder); else the published ones
--dry-run Show the plan; change nothing
--edition VALUE Edition of the installation, as your delivery or contract names it
--modules VALUE Optional modules, comma separated; none given: those the setup wizard takes (sast,dast,sca); "": the required ones only; any other optional module of the release by name, builder among them
--out VALUE Where the folder is made (default: the home directory of the user who ran sudo; /root only in a root shell)
--registry VALUE A registry mirror to take the images from
--registry-auth VALUE File with the registry account (JSON: username and password or token; registry optional)
--registry-auth-env VALUE Name of the variable with the registry account (JSON)
--registry-user VALUE Registry login; the password is asked or read from stdin
--release VALUE Release version
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp pack verify​

Usage: dcp pack verify [flags] DIR
Check the signature and every checksum of a delivery folder; the Docker packages of a prepared folder are also compared with the list built into dcp

Flags:
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp passwd​

Usage: dcp passwd [flags]
Change the password of a panel account

Flags:
--password-file VALUE Read the new password from this file (else twice from stdin)
--user VALUE Account name

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp plan​

Usage: dcp plan [flags] VERSION
Upgrade steps, disk space, downtime and risks; nothing is executed

Flags:
--accept-remote VALUE Servers (IP addresses, or none) whose modules are upgraded by hand; confirmed and journaled
--add VALUE Optional modules added with the update on this main server, comma separated (derai-lite)
--edition VALUE Edition of the installation, as your delivery or contract names it
--modules VALUE The modules to update, comma separated (installed 13.2 or newer); the others stay on their current versions. Below 13.2 all modules are updated together
--pack VALUE A delivery folder to check against the plan: its version, edition and the images of every module the update takes; nothing is copied
--without-rules Keep the installed rules
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp registry​

Usage: dcp registry <login|status|logout|reach|mirror>
The account of the DerScanner registry

Subcommands:
dcp registry login Save the account of the registry (the password is asked, or read from stdin)
dcp registry status Whether an account is saved on this server (read from its file; the registry is not asked: dcp registry login checks the account)
dcp registry logout Forget the saved account of the registry
dcp registry reach Whether the registry answers from this server (the panel asks a server of the list so before it installs modules there)
dcp registry mirror The registry server: automatic (main server, then mirror), main, mirror, or an address of your own; the certificate of the registry name is always checked

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp registry login​

Usage: dcp registry login [flags]
Save the account of the registry (the password is asked, or read from stdin)

Flags:
--edition VALUE Edition of the installation, as your delivery or contract names it (default: international)
--user VALUE Registry login

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp registry logout​

Usage: dcp registry logout [flags]
Forget the saved account of the registry

Flags:
--edition VALUE Edition of the installation, as your delivery or contract names it (default: international)
--user VALUE Account name

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp registry mirror​

Usage: dcp registry mirror [flags] set auto|main|mirror|ADDRESS | status
The registry server: automatic (main server, then mirror), main, mirror, or an address of your own; the certificate of the registry name is always checked

Flags:
--check With status: measure each server (answer, download speed)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp registry reach​

Usage: dcp registry reach [flags]
Whether the registry answers from this server (the panel asks a server of the list so before it installs modules there)

Flags:
--edition VALUE Edition of the installation, as your delivery or contract names it (default: international)
--registry VALUE The registry to probe (default: the registry of DerScanner)
--user VALUE Account name

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp registry status​

Usage: dcp registry status [flags]
Whether an account is saved on this server (read from its file; the registry is not asked: dcp registry login checks the account)

Flags:
--edition VALUE Edition of the installation, as your delivery or contract names it (default: international)
--user VALUE Account name

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp releases​

Usage: dcp releases [flags]
The versions that can be installed (edition, modules)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp remote​

Usage: dcp remote <run|install|trust>
The servers of the list: run the control panel there, install DerScanner there

Subcommands:
dcp remote run Run a command of the control panel on a server of the list, as root; its journal comes here
dcp remote install Install DerScanner on a server of the list from a delivery folder here: its part for that server is copied there and installed
dcp remote trust Confirm the key of a server of the list, compared with the server itself: the control panel signs in only to a server whose key is confirmed

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp remote install​

Usage: dcp remote install [flags] SERVER VERSION
Install DerScanner on a server of the list from a delivery folder here: its part for that server is copied there and installed

Flags:
--dry-run Show the plan of the installation on that server, and for a scanner server how its modules would come (the server itself, this server, or neither); install nothing
--edition VALUE Edition of the installation, as your delivery or contract names it
--modules VALUE Optional modules, comma separated (sast,dast,sca,derai); the required ones are always taken
--node VALUE only the modules on this server, for the main server at this address (its queue port must be reachable)
--offline The modules of a node (--node, --modules) from the images loaded on this server: checked against the release, copied there over SSH and installed without the registry
--pack VALUE A delivery folder here to install from; the modules of a node (--node, --modules) come without it: the server downloads them from the registry itself, or this server downloads them for it
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp remote run​

Usage: dcp remote run [flags] SERVER -- COMMAND...
Run a command of the control panel on a server of the list, as root; its journal comes here

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp remote trust​

Usage: dcp remote trust [flags] SERVER
Confirm the key of a server of the list, compared with the server itself: the control panel signs in only to a server whose key is confirmed

Flags:
--fingerprint VALUE The fingerprint of the key of the server (SHA256:...), as ssh-keygen -l shows it on that server

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp restore​

Usage: dcp restore [flags] DIR
Restore a backup of the same version (a safety backup first)

Flags:
--dry-run Show the plan; change nothing
--stable DURATION How long verify watches the services stay healthy (3m)
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp revert​

Usage: dcp revert [flags]
Return to the version before the last update, from what it kept on this server

Flags:
--all-servers Each node of this main server at the same version, then this main server, back to the version before the update; the way back of every node is checked first
--batch N With --all-servers: how many scanner servers change at the same time (3); 1 — one by one (default: 3)
--drain With --all-servers: before anything changes, wait until no scan runs or waits in the queue — at most the time given (--drain=90m; 60 minutes without it); past it nothing is changed
--dry-run Show the plan; change nothing
--stable DURATION How long verify watches the services stay healthy (3m)
--stop-scans With --all-servers: go on although scans run — running DAST and SCA scans end with an error, SAST scans go back to the queue
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the --all-servers line. The help that dcp 1.0.21 prints says otherwise; this document is correct.

dcp rollback​

Usage: dcp rollback [flags]
Finish the rollback of an upgrade that did not finish

Flags:
--record Only record an update that finished and was verified; refuse whatever would roll back
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp rules​

Usage: dcp rules <load|upgrade>
The rules of DerScanner

Subcommands:
dcp rules load Load the rules of the installed release through the API
dcp rules upgrade Upgrade the rules to those of another version

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp rules load​

Usage: dcp rules load [flags]
Load the rules of the installed release through the API

Flags:
--offline Take the images already loaded on this server (dcp pack import), not the registry
--registry-user VALUE Registry login; the password is asked or read from stdin
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp rules upgrade​

Usage: dcp rules upgrade [flags] VERSION
Upgrade the rules to those of another version

Flags:
--offline Take the images already loaded on this server (dcp pack import), not the registry
--registry-user VALUE Registry login; the password is asked or read from stdin
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp self-update​

Usage: dcp self-update [flags]
Replace this dcp with a newer signed one (the old one comes back if the new one does not run)

Flags:
--allow-downgrade Install the dcp of the folder even when it is older than this one (its own version is checked)
--check Only say whether a newer dcp is there
--from VALUE The registry repository of the newer dcp (default: registry.derscanner.com/dcp/dcp)
--online Take the newer dcp from the public DerSecur registry (no account)
--pack VALUE A delivery folder to take the newer dcp from
--registry-auth VALUE File with the registry account (JSON: username and password or token; registry optional)
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp setup​

Usage: dcp setup [flags]
Open the setup wizard in the web interface

Subcommands:
dcp setup finish Turn the trial installation into an ordinary one; projects and findings stay

Flags:
--cert VALUE TLS certificate file (with --key)
--edition VALUE Edition of the installation, as your delivery or contract names it
--foreground Run in the foreground, not as a service
--key VALUE TLS key file (with --cert)
--listen VALUE Address and port to listen on (default: :9443)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

The older name dcp poc still works.

dcp setup finish​

Usage: dcp setup finish [flags]
Turn the trial installation into an ordinary one; projects and findings stay

Flags:
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

The older name dcp poc finish still works.

dcp sign verify​

Usage: dcp sign verify [flags] FILE
Check a signature, or the signatures built into this dcp

Flags:
--catalog Check the signatures built into this dcp

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp start​

Usage: dcp start [flags] MODULE
Start a module; its data stay

Flags:
--dry-run Show the plan; change nothing
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp status​

Usage: dcp status [flags]
Version, modules, containers, data versions

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp stop​

Usage: dcp stop [flags] MODULE
Stop a module; its data stay

Flags:
--dry-run Show the plan; change nothing
--excluded VALUE Set by the update of all servers on a node it excludes: the module stays stopped, after a reboot too, until the next update of the node
--held VALUE Set by an operation of all servers: the module stays stopped, after a reboot too, while this node and the main server are at different versions; the update of the node starts it again
--keep-databases Keep the databases of the module running (the update of all servers stops the scanners of a node this way until its turn)
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp support-bundle​

Usage: dcp support-bundle [flags]
An archive for support, without secrets

Flags:
--days N The scans and tasks of the last days (default: 14)
--full-db-rows Put the whole rows of the scans and tasks into the archive (names of projects, logins, repository addresses); without it only their ids, statuses, dates and errors
--out VALUE A directory, or the name of a new file (an existing file is never overwritten); default: the current directory
--since VALUE The period of the logs in the archive: 7d, 48h, a date (2026-10-12) or a time (2026-10-12T08:00:00Z), UTC (default: 7d)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.

dcp test-scan​

Usage: dcp test-scan [flags]
A small test scan of each scanner type (SAST, DAST, SCA) through the DerScanner API, waited for; the test projects are deleted afterwards

Flags:
--dast-target VALUE The address of a site the DAST servers may scan (a DAST scan attacks it); without it DAST is not checked
--modules VALUE Scanner types to test, comma separated (sast,dast,sca); default: those of the installation
--timeout DURATION How long to wait for the result of each test scan (default: 20m0s)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp ui​

Usage: dcp ui [flags]
The web interface (prints its address and how to sign in)

Flags:
--cert VALUE TLS certificate file (with --key)
--edition VALUE Edition of the installation, as your delivery or contract names it
--foreground Run in the foreground, not as a service
--key VALUE TLS key file (with --cert)
--listen VALUE Address and port to listen on (default: :9443)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp uninstall​

Usage: dcp uninstall [flags]
Remove the product (not Docker), confirmed with the server name

Flags:
--backup Make a backup before the removal
--dry-run Show the plan; change nothing
--host VALUE The name of this server, to confirm the removal
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp upgrade​

Usage: dcp upgrade [flags] VERSION
Upgrade to a newer version: images, backup, the new version with the old data, verify; a failure rolls back. From 13.2 the modules may be updated one by one (--modules)

Flags:
--accept-mixed Agree to a partial update: your modules will run on different versions (needed when --modules leaves modules out); journaled
--accept-remote VALUE Servers (IP addresses, or none) whose modules are upgraded by hand; confirmed and journaled
--accept-sca-loss Go on although the SCA scan log cannot be kept (its volume is unreadable); journaled
--add VALUE Optional modules added with the update on this main server, comma separated (derai-lite)
--all-servers This main server, then each of its nodes on the list of servers, from the registry or the one delivery folder (--pack); if a server is not updated, every server goes back to the version before the update — the nodes first, then the main server
--allow-draft Allow a release that is not published yet (journaled)
--batch N With --all-servers: how many scanner servers change at the same time (3); 1 — one by one (default: 3)
--dast-target VALUE With --all-servers: the address of a site the DAST servers may scan (a DAST scan attacks it); without it DAST is not checked
--drain With --all-servers: before anything changes, wait until no scan runs or waits in the queue — at most the time given (--drain=90m; 60 minutes without it); past it nothing is changed
--dry-run With --all-servers: show the plan of every server; change nothing (this server alone: dcp plan VERSION)
--edition VALUE Edition of the installation: taken from it; when given, it must match it (an update never changes the edition)
--exclude-failed With --all-servers: a scanner server that is not updated is excluded and stopped instead of returning every server; the main server never is (audited)
--force-low-disk Go on short of disk space (journaled)
--modules VALUE The modules to update, comma separated (installed 13.2 or newer); the others stay on their current versions. Below 13.2 all modules are updated together
--no-test-scan With --all-servers: no test scan after each batch (audited)
--offline Take the images already loaded on this server (dcp pack import), not the registry
--pack VALUE A delivery folder to install from
--registry-auth VALUE File with the registry account (JSON: username and password or token; registry optional)
--registry-user VALUE Registry login; the password is asked or read from stdin
--snapshot-done A snapshot of the virtual machine is made: needed for an update from 12.0 to 12.4, not verified (12.5 is not recognized); journaled
--stable DURATION How long verify watches the services stay healthy (3m)
--stop-scans With --all-servers: go on although scans run — running DAST and SCA scans end with an error, SAST scans go back to the queue
--without-rules Keep the installed rules
--yes Go on without asking for confirmation

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the --all-servers line; the flags for DerSecur's own test builds are left out. The help that dcp 1.0.21 prints says otherwise; this document is correct.

dcp verify​

Usage: dcp verify [flags]
Health, volumes, database schema, rules, SCA database, API, license

Flags:
--stable DURATION How long verify watches the services stay healthy (3m)

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp version​

Usage: dcp version [flags]
The version of dcp

Flags:
--keys Print the release key built in

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

dcp versions​

Usage: dcp versions [flags]
Installed and latest versions of the panel, DerScanner and its modules; with no answer of the registry kept on this server, the registry is asked once (no account) and its answer kept

Flags:
--check Ask the registry now

Global flags (--json, --lang, --root and others) go before the command: dcp --help.

Corrected here: the flags for DerSecur's own test builds are left out.