From f5132b1de14f1b4c3455b19f4ad808f1210b6690 Mon Sep 17 00:00:00 2001 From: Davide Principi Date: Mon, 8 Apr 2024 08:51:25 +0200 Subject: [PATCH] crowdsec. Use runagent for cscli (#85) Separate section for the CLI --- crowdsec.rst | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/crowdsec.rst b/crowdsec.rst index 1a9bcf0b..f0deeb57 100644 --- a/crowdsec.rst +++ b/crowdsec.rst @@ -13,12 +13,6 @@ Configuration ============= Once installed, CrowdSec is already fully functional and protect many NS8 applications. - -To get a list of protected applications, access the server using SSH and type: - -:: - - cscli collection list From the web interface you can configure: @@ -36,3 +30,22 @@ disabling the ``Enable central API`` option under the ``Advanced`` section. You can also connect your instance to `CrowdSec console `_ by filling the ``Enroll the CrowdSec instance`` field. + + +Command-line interface +====================== + +The ``cscli`` command is a powerful command-line interface to access +advanced Crowdsec functions. To run ``cscli``, you have to enter the +application environment first. Type in a root shell the following command + +:: + + runagent -m crowdsec1 bash + +Then the ``cscli`` command becomes available. For instance, print the help +message with + +:: + + cscli --help